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

Backport improvements to FileSet controllers and views #5898

Merged
merged 3 commits into from
Oct 12, 2022

Conversation

marrus-sh
Copy link
Collaborator

This backports the changes in #5889, #5892 & #5895, which improve the controllers and views pertaining to FileSet editing in preparation for Valkyrization. (Note #5895 had minor conflicts.)

marrus-sh and others added 3 commits October 12, 2022 12:34
These definitions date back to commit
eb9d5cb in May 2015, before the
adoption of `hyrax/base/form_permission` for actually rendering this
form out (by a different name, in commit
f77f4d4, Dec 2015). They don’t appear
to do anything now and are incompatible with the newer Hyrax
permission model.

The need for `depositor` was removed somewhat later, in commit
70ff2ee (Feb 2021).
The “visibility component” form used on the Edit Work page is much
nicer and more robust than the “form permission” component used by the
Edit File(Set) page. This commit substitutes the former for the latter
to make keeping these components in sync easier.

Notes:

- The `hyrax/base/form_permission` component is still used for batch
  editing; I’m not as familiar with that part of the codebase but
  presumably a similar substitution could be made there.

- Not all permissions tabs include a “Visibility” section; the
  Edit Work page puts Visibility not in the tab but in the Save Work
  component. Consequently, in the Javascript it is an option when
  constructing a `PermissionControl` whether to include a
  `VisibilityComponent` or not.

- The “Edit Work” page displays the “Visibility” legend slightly
  differently from the FileSet Permissions tab; this behaviour is now
  toggleable in the partial by setting `save_work` when rendering.
@no-reply no-reply merged commit 2f8575f into 3.x-stable Oct 12, 2022
@no-reply no-reply deleted the backport-fileset-controller branch October 12, 2022 20:12
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.

None yet

3 participants