-
Notifications
You must be signed in to change notification settings - Fork 26
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
Replace "User" role with "Partner" role #1628
Replace "User" role with "Partner" role #1628
Conversation
…abbiefarr-user-role-for-partners
👷 Deploy request for dev-bloom pending review. 🔨 Explore the source changes: 7163ef7 |
👷 Deploy request for jovial-davinci-1d67a0 pending review. 🔨 Explore the source changes: 9988dc3 |
👷 Deploy request for dev-partners-bloom pending review. 🔨 Explore the source changes: 7163ef7 |
✔️ Deploy Preview for dev-storybook-bloom ready! 🔨 Explore the source changes: 7163ef7 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/61151bfea1dce40008f89267 😎 Browse the preview: https://deploy-preview-1628--dev-storybook-bloom.netlify.app |
…abbiefarr-user-role-for-partners
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.
Hey @abbiefarr ,
I like your solution as it's a small departure from the current logic and meets the immediate need that the issue calls out. I'm not sure on how well this solution will scale to support more roles or roles with more attributes. At the same time, I don't think we have enough information to layout a proper proposal for a role manager that wouldn't potentially be overkill or create more technical debt, so I'm inclined to continue with this. Does Detroit have more complex needs further down the roadmap?
Please see my comment on the migration script, I think we can assign the partner role up front based off of data in the db.
…abbiefarr-user-role-for-partners
…com:CityOfDetroit/bloom into contribute/abbiefarr-user-role-for-partners
Thanks for pointing me to the Re: Detroit's future access control, I don't think they'll need anything more advanced than what would exist after this PR. |
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.
Thanks, @abbiefarr , this looks good and the mirgration script works well! Can you resolve the merge conflict with the changelog, then I can get this in.
It looks like @abbiefarr did a merge from upstream yesterday in CityOfDetroit#408. I assume that had everything that changed in #1673. |
Issue
#1616
Also CityOfDetroit#57
Addresses # (issue)
Description
user_roles
table, which holds user ids and their partner/admin permissions.listings_leasing_agents_user_accounts
to the new table as partners, as well as any admins from theuser_accounts
table.Type of change
How Can This Be Tested/Reviewed?
Features manually tested:
Checklist: