-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cleanup Identity #443
Cleanup Identity #443
Conversation
* re-design permissions * consistency * rename IIdentityService to IProfileService * rename StatsController to DashboardController * remove roleclaimscontroller * add personalController and move myauditlogs and mypermissions there * move FSHRoles to shared project * remove isdefault from roledto
* clear cache from RoleService.UpdatePermissions * also remove roleclaimservice and further cleanup
also clear permissioncahe on assignroles
profile service cleanup
and clearuserpemissioncachehandler which handles those events
Think I'm almost there... Still not sure about the whole "Profile" name thing... still feels like it should all go into one "userservice"... but that might get a bit bloated... maybe using partial classes in different files? I've created some events I have now only added the publishing of these events in the places where it's relevant for that specific handler... we should probably add all the event types and send them everywhere where it's necessary... |
Probably the street of the partial classes could be a less bloated road. |
Could you please update the postman collections too? since there are a couple of controller changes that I can see, Also, do we need to re-generate migrations ? |
Concerning migration: only some fields been removed, so in theory it's not needed (but the database will contain some unused fields)... But I suppose they will have to be re-generated anyways for a release... That should actually be part of the build process I think... I have never done postman updates before... is that simply exporting again? I'll have a look later... |
about postman we can regenerate after ... (maybe exist import nswag.json file present in swagger) |
Ok, the postman collection has been updated... |
I think they are well organized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_context is very general
as suggested using variables with full
like _applicationDbContext or some like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is more sensible.
This looks neat. But wouldn't it be better to merge user and profile controller into a single user controller Create a new user sounds better than create a new profile. |
Jep... thinking GET /api/profile goes to personal (GET /api/personal/profile) and the rest go to users... I'll have a looksie later ;-) |
Hmm... the PUT /profile doesn't really fit under users, as that's also only for the currently logged on user... |
I've used partial class to separate UserService into several files now... I'm wondering if we can't just create RequestHandlers like we do in the applicationProject but then in the infrastructure project... that would be the best solution I think... Now that I've already added |
It seems to me a breakthrough in terms of the development and separation it is taking. As for the events from infrastructure I consider viable but must be in another PR, the mixture of several ideas confuses the update of projects in progress |
I started working on #385
An accompanying PR is following on the blazor repo...
Will update this PR with more cleanup, but please review already!