Replies: 8 comments 10 replies
-
|
The proposed associations look good to me. We might want to make the There has been a lot of historical discussion on the domains of
Given the optional association, I am of the opinon we de-couple
Maybe I am not interpreting this properly, but it might be mixing authentication with authorization? I think we can still have an authenticated user who does not have a Person for a given tenant context, they are just missing a role that grants them authorizations. That's why they will need to Join a new org. I think we can flesh out Step 3 above more once we finalize the preparation work for steps 1 and 2 here. I think step 3 is going to touch the most files to update what we have done in the first 2 steps. So, will be important to plan ahead and probably a good thing for us to work closer on. I am happy to help with that. |
Beta Was this translation helpful? Give feedback.
-
Conceptually, is it accurate to think of a Person as being 1:1 with an organization (sort of like a profile) such that a user could have different personas depending on the organization? I was just thinking that if this is the case it might make sense to tie roles to people rather than users. That said, the existing model works fine and its probably not worth re-visiting this.
I'm aligned on moving them to Person. Agree on the rationale.
I think we are saying the same thing. Was just referring to the fact that permissions (authorization) for authenticated users without a person are the same as an unauthenticated users (hence should be easy to implement) -> "If I registered on Org A and visit Org B I should not be able to access any private routes (dashboard) until I join the org (have a Person)".
Makes sense. If needed (depending on complexity) this can be deprecated incrementally with the callback running as fallback until it is no longer used. |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure we want I think the rest of the proposed associations look good. Thanks for thinking on this one! |
Beta Was this translation helpful? Give feedback.
-
|
Looks like a solid plan! Not a priority in any way but there was a discussion on adding a system admin role in the future. I'm assuming that would be easier with keeping roles on user. I'm not ever sure what this role's abilities would entail (maybe creating orgs on the frontend or debugging issues). Just thought I'd mention in case it would reduce any headache's in the future. |
Beta Was this translation helpful? Give feedback.
-
|
@BurkeMtn how's this going? |
Beta Was this translation helpful? Give feedback.
-
|
Deactivations We are thinking that in order to deactivate a user, we should:
Model associations We have to make sure we set the Group on a Person whenever we add a role to a User under an org (invitations for staff/fosterers, and upon new adopter sign ups) There's probably better names to use than this. And alternative ideas to acheiving the same/similar also welcome. |
Beta Was this translation helpful? Give feedback.
-
|
These have been moved to the Kanban board |
Beta Was this translation helpful? Give feedback.
-
|
@kasugaijin I think this is at the point where we can merge into main. The last couple of things required aren't major and we could open issues for contributions if you think that is appropriate. I believe all that is left from this discussion and the initial issue are the following: Verify Omniauth flow I have a few other minor issues I can put up as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[In Progress]
Step 1: Update User, Person, Organization models and associations
Model Changes
Existing Model Associations
Proposed Model Associations
Step 2: Migrate first_name and last_name from User to Person
Questions:
April 2025 Update: we will remove first name and last name from User, and when a User accesses a new Org, and we ask them to join, we will look up the User's other person records and pull one and grab its first and last name to pre populate the Join this Org form. Update User sign up form to accept first and last name for Person.
Step 3: Move to context-aware Person creation
April 2025 - double check this is all completed.
Step 4: Authorization
Beta Was this translation helpful? Give feedback.
All reactions