Code Monkey home page Code Monkey logo

ddd-playground's Introduction

I do things, I break things.

stats

I live inside Grafana. I've built, managed and contribute to Docker and Kubernetes ecosystem since 2015.

Observability centric.

Links

Contact

ddd-playground's People

Contributors

1ma avatar ismael-benitez avatar jorge07 avatar mablae avatar pascal08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ddd-playground's Issues

[Identifier] serializer group not being used for User

The [Identifier] serializer group not being used for User.
In fact AggregatedRootId is also not using it:

Leos\Domain\Common\ValueObject\AggregateRootId:
    properties:
        uuid:
            expose: true
            groups: [Basic]

It is being used by the transition id, but the user is not using that ;)

Nelmio's api/doc is inaccessible without authentication

Authentication is required to view Nelmio's Documentation @ api/doc:

{
code: 401,
message: "JWT Token not found"
}

Even though a api:doc:dump is being made by the build.xml it would be a good idea to allow access to the the docs without authentication.

No such file or directory

docker-compose -f etc/infrastructure/dev/docker-compose.yml exec fpm bin/console rabbitmq:multiple-consumer events
ERROR: .IOError: [Errno 2] No such file or directory: u'.\\etc/infrastructure/dev/docker-compose.yml'

User's Auth Roles not persisted

The User's Auth Roles are not persisted.
To fix that, we should add:
Infrastructure/SecurityBundle/Resources/config/persistence/ValueObject/AuthUser.orm.yml

    roles:
      type: json_array
      nullable: false

The UI/Controller tests check for an array in the role attribute response but do not check the content.
The Domain/User/testGetters doesn't test it at all, but testing it there will always pass, as it is set in the User entity.
Maybe it could be tested on the Infrastructure/Persistence level?

Empty response upon user registration

The auth/register (in the SecurityController) redirects and returns the response from get_user (in the UserController) [- Shouldn't this be decoupled?]

But the response is empty:
image

{version} not used/validated

When try to call any API Endpoint that requires {version} it is not being validated and in fact you could use any value.

I.e GET /api/{version}/user/fc03e3ec-c3a1-11e6-a4a6-cec0c932ce01.json (empty/null value)
image

but also: GET /api/wrong_version/user/fc03e3ec-c3a1-11e6-a4a6-cec0c932ce01.json
image

User model uses ArrayCollection

I noticed that User domain model has aggregation with Doctrine Array Collections, does not it violates DDD principles? We should create interface for collection in domain common bundle and the adapter for ArrayCollection in infrastrucutre layer, should not we?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.