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

Replace: Cleanup use of is_usergroup_member('/usergroup/librarians') #9123

Merged
merged 2 commits into from
May 13, 2024

Conversation

QuantuM410
Copy link
Contributor

Closes #9087

Replaces the existing is_usergroup_member('/usergroup/librarians') with is_librarian()

Technical

Testing

Screenshot

Stakeholders

@RayBB

Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

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

Fantastic! Want to make a separate issue for cleaning up the super librarians version of this? (And if there are others we can probably do them too)

Now need staff sign off

@QuantuM410
Copy link
Contributor Author

QuantuM410 commented Apr 19, 2024

Fantastic! Want to make a separate issue for cleaning up the super librarians version of this? (And if there are others we can probably do them too)

Now need staff sign off

Sure! I m up for it :) I looked into other usergroups being used like the old is_usergroup method and it seems like its only with the case of super-librarians with an exception being is_usergroup_member('/usergroup/ia'). It also doesn't seem to have a method in User class in models.py

@mekarpeles mekarpeles self-assigned this Apr 22, 2024
@mekarpeles mekarpeles added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 22, 2024
@mekarpeles
Copy link
Member

Thank you @RayBB and @QuantuM410 -- staging on testing and then we can merge once it succeeds.

@cdrini cdrini removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 23, 2024
@RayBB RayBB added Needs: Staff Decision Issues that are blocked on a staff member's decision Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. and removed Needs: Staff Decision Issues that are blocked on a staff member's decision labels Apr 23, 2024
@RayBB
Copy link
Collaborator

RayBB commented Apr 23, 2024

@mekarpeles do you consider it successful now? Not sure if that's why it was removed from testing.

@mekarpeles mekarpeles removed the Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. label Apr 29, 2024
@RayBB
Copy link
Collaborator

RayBB commented May 8, 2024

@mekarpeles can this be merged now?

@mekarpeles mekarpeles merged commit d012947 into internetarchive:master May 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants