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

Permit librarians to move editions to a new work #9459

Conversation

Freso
Copy link
Contributor

@Freso Freso commented Jun 21, 2024

Closes #9235

fix

Technical

Adds a new page-local variable is_librarian which is then checked for in the call that decides whether to add the “-- Move to a new work” option in the Work move dropdown list.

Testing

NOTE: I have not run tests or manually tested this in a working environment, as I haven’t set one up (yet?), and the pre-commit hook failed due to an Error getting the version from source vcs which seems unrelated to this PR.

  1. Edit an edition with a librarian account which is neither super librarian nor admin.
  2. The “-- Move to new work” option should be available.

I didn’t find anywhere where the existing behaviour was tested in automated tests, and thus also haven’t edited or added any such tests.

Screenshot

Stakeholders

@seabelis

Adds a new local variable `is_librarian` which is then checked for in
the call that decides whether to add the “-- Move to a new work” option
in the Work move dropdown list.

Fixes internetarchive#9235
@mekarpeles mekarpeles self-assigned this Jul 9, 2024
@cdrini cdrini assigned jimchamp and unassigned mekarpeles and seabelis Jul 15, 2024
@seabelis seabelis self-requested a review July 19, 2024 13:15
Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks, @Freso!

@jimchamp jimchamp merged commit f7b418f into internetarchive:master Jul 22, 2024
2 checks passed
@Freso Freso deleted the issue/9235/allow-librarians-to-move-to-new-work branch July 23, 2024 16:34
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.

Expand "-- Move to a new work" option to Open Librarians
4 participants