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

5575 item actions edit #6090

Merged
merged 7 commits into from Jun 13, 2023
Merged

5575 item actions edit #6090

merged 7 commits into from Jun 13, 2023

Conversation

alishaevn
Copy link
Contributor

@alishaevn alishaevn commented Jun 7, 2023

Fixes

Summary

fix the ability to edit valkyrie backed file sets

Guidance for testing, such as acceptance criteria or new user interface behaviors:

  • create/find a file set on a work
  • click actions >> edit
  • try to edit the title and save the edit

Type of change (for release notes)

  • Bug Fixes
  • Valkyrie Progress

Detailed Description

there was an error because #representative_id= did not exist. refer to https://github.com/samvera/hyrax/issues/5575\#issuecomment-1581512555 for more details

@samvera/hyrax-code-reviewers

there was an error because `#representative_id=` did not exist. refer to #5575 for more details.

co-authored-by: braydon <braydon.justice@1268456bcltd.ca>
alishaevn and others added 2 commits June 7, 2023 16:18
the license attribute is not required in Hyrax::Forms::WorkForm and is not even available as an editable field on the Hyrax::Forms::FileSetForm. so it feels unnecessary to require it on file sets.

co-authored-by: braydon <braydon.justice@1268456bcltd.ca>
@@ -16,7 +16,7 @@ attributes:
type: string
multiple: true
form:
required: true
required: false
Copy link
Contributor Author

@alishaevn alishaevn Jun 8, 2023

Choose a reason for hiding this comment

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

the license attribute is not required in Hyrax::Forms::WorkForm and isn't even available as an editable field on the Hyrax::Forms::FileSetForm, so @sephirothkod and I decided it was unnecessary to require for file sets. removing that requirement allowed change_set.validate(attributes) in Hyrax::FileSetsController#update_metadata to work.

ref: (two different comments)

@@ -6,7 +6,7 @@ class FileSetEditForm

delegate :depositor, :permissions, :human_readable_type, to: :model

self.required_fields = [:title, :creator, :license]
self.required_fields = [:title, :creator]
Copy link
Contributor Author

@alishaevn alishaevn Jun 8, 2023

Choose a reason for hiding this comment

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

the license attribute is not required in Hyrax::Forms::WorkForm and isn't even available as an editable field on the Hyrax::Forms::FileSetForm, so @sephirothkod and I decided it was unnecessary to require for file sets. removing that requirement allowed change_set.validate(attributes) in Hyrax::FileSetsController#update_metadata to work.

ref: (two different comments)

@alishaevn
Copy link
Contributor Author

the ruby3-0 pipeline is the only one failing now and is not required for merging.

@alishaevn alishaevn requested a review from dlpierce June 13, 2023 20:53
@alishaevn alishaevn merged commit 014fe61 into main Jun 13, 2023
13 of 14 checks passed
@alishaevn alishaevn deleted the 5575-item-actions-edit branch June 13, 2023 21:28
@dlpierce dlpierce added the notes-valkyrie Release Notes: Valkyrie specific label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-valkyrie Release Notes: Valkyrie specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants