Skip to content
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

1034 replace staffaccount #1039

Merged
merged 31 commits into from
Oct 20, 2024
Merged

1034 replace staffaccount #1039

merged 31 commits into from
Oct 20, 2024

Conversation

mononoken
Copy link
Collaborator

@mononoken mononoken commented Oct 7, 2024

🔗 Issue

#1034

✍️ Description

This finishes up the Person refactorings from the conference, and it finishes the removal of the "accounts" objects. It changes all logic that was using StaffAccounts to use the authorization layer instead (which uses roles, permissions, and ActionPolicy).

I did a few refactorings to simplify logic while removing the account logic, but otherwise most behavior should be the same.

I did change:

  • On the adoptable pets show page, for staff, instead of not showing anything at all in the adopt button section, I added a link to go to the staff pet page for that pet. Simple QOL change. See screenshot below.
  • I made Person required for User now. I think all the User records should already have Person IDs so hopefully no problems will occur.

This may cause some conflicts with other open PRs like @MooseCowBear's #997, so we may want to hold off merging this until the former PRs get merged.

📷 Screenshots/Demos

Embedded link for staff on adoptable pet page to get to the pet's staff page
image

Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good @mononoken just a couple comments!

@mononoken
Copy link
Collaborator Author

Thanks for the comments, y'all! I just worked through all the conflicts from the rebase and will get to your comments hopefully tomorrow.

@mononoken
Copy link
Collaborator Author

Think I got all the comments addressed and resolved new merge conflicts. Lmk if I missed anything.

Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mononoken ! lgmt.

@kasugaijin kasugaijin merged commit 6966f22 into main Oct 20, 2024
5 checks passed
@kasugaijin kasugaijin deleted the 1034-replace-staffaccount branch October 20, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants