-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC-4942 - authorization reference service #4413
Conversation
…r merge from main.
…moving auf ressource load calls to UCs.
authorization/domain/rules/* is ok I personally would not expect the rules to lie in the services |
apps/server/src/modules/sharing/controller/api-test/sharing-create-token.api.spec.ts
Outdated
Show resolved
Hide resolved
I also wondered about the placement of the rules-folder. I was a bit surprised at first to find it in the service-folder and would have expected it one level up. But it shouldn't be outside of the domain-folder because the rules are part of the domain. |
I move the folder to domain/rules but after thinking about it, the really correct place are domain/uc. The rules are part of the domain. The domain include 2 layers with clear dependency order, the service and the uc. The rules are part of the UC and should unknown in service layer. Edit: interessting point is ..they should unknown in service layer. But the rules manager is places in service layer. It is interessting to think about it. :D |
Regarding the layer question: I see no contradiction to our concept. The service is exported by the module and can be used in other modules' UCs. That's just like the services in other modules. Or in other words: The rules can be known by the service of the authorization module, but the authorization service (and thus the rules) shouldn't be known to other modules' services, but only to the UCs. |
apps/server/src/modules/video-conference/uc/video-conference-create.uc.ts
Show resolved
Hide resolved
Questions should be resolve
Kudos, SonarCloud Quality Gate passed! 0 Bugs 100.0% Coverage The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Description
Links to Tickets or other pull requests
https://ticketsystem.dbildungscloud.de/browse/BC-4942
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.