-
Notifications
You must be signed in to change notification settings - Fork 0
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
🎁 Valkyrize Models: Convert Models into resources #687
Labels
Comments
ShanaLMoore
changed the title
Convert Models (drop dog biscuits)
Valkyrize Models: Convert Models
Jul 12, 2024
ShanaLMoore
changed the title
Valkyrize Models: Convert Models
🎁 Valkyrize Models: Convert Models
Jul 12, 2024
ShanaLMoore
changed the title
🎁 Valkyrize Models: Convert Models
☄️ Valkyrize Models: Convert Models
Jul 12, 2024
ShanaLMoore
changed the title
☄️ Valkyrize Models: Convert Models
🎁 Valkyrize Models: Convert Models
Jul 12, 2024
ShanaLMoore
changed the title
🎁 Valkyrize Models: Convert Models
🎁 Valkyrize Models: Convert Models into resources
Jul 12, 2024
List of files:
|
Merged
Merged
laritakr
added a commit
that referenced
this issue
Jul 23, 2024
# Story Creates remaining resources for existing models. (Conference item was already created) Refs - #687
ShanaLMoore
pushed a commit
that referenced
this issue
Jul 23, 2024
# Story A dev was unable to edit a resource without receiving an error from the partial. This PR updates the partials to handle resources and dog biscuit records. Refs - #687 # Expected Behavior Before Changes ![image](https://github.com/user-attachments/assets/86ee18b6-0f3e-4f07-af84-a771ababf81b) # Expected Behavior After Changes ![image](https://github.com/user-attachments/assets/3bb6c57d-f295-4117-8f86-3178fbc796ef)
laritakr
added a commit
that referenced
this issue
Jul 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Review the following models files to determine what needs to get converted into valkyrie resources. When you pick up a model, please include its entirety.
rails generate hyrax:work_resource GenericWorkResource
edit: use the knapsack generator, so the files go in the right locations.
Steps for each work type:
bundle exec rails generate hyku_knapsack:work_resource WorkTypeResource
Hyrax::ArResource
&Hyrax::NestedWorks
< Hyrax::Forms::ResourceForm(
< Hyrax::Forms::ResourceForm
include Hyku::WorksControllerBehavior
curation_concern_type
to xxxResourceself.work_form_service = Hyrax::FormFactory.new
config/initializers/wings.rb
and register each model.IE: converting the model Journal Article should also include its valkyrized Indexers, Forms, etc.
Models to convert:
Acceptance Criteria
Screenshots or Video
TBD
Testing Instructions
TBD
Notes
A tenant created after the new work types will get all of the work types into its site configuration. In the admin settings to select work type it weeds out the duplicates but the modal includes all of them.
The text was updated successfully, but these errors were encountered: