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

Knapsack pals #15

Merged
merged 61 commits into from
May 17, 2024
Merged

Knapsack pals #15

merged 61 commits into from
May 17, 2024

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented May 17, 2024

Branched off of Jeremy's original knapsack PR, sha: 6313387

Even though the specs and lint fail, at this point we are able to build and spin up the application. This is before we run any generators to start valkyrizing.

Main's pipeline is already failing, and so is Pals' original repo (so we didn't start with a green pipeline either way).

Issue:

🚧 Add files from PALs Hyku not in other repos

3595d6f

This is a first pass of the PALs work. There was a lot of head
scratching and copying things into Hyku Prime. Together this is a
rough process.

🚧 Partial port of PALs Hyku entries

fac9882

Move functionality to Hyku prime

c0a37d5

Review and override file_set_helper.rb

a274a65

Favor pushing views down into Hyku Prime

0a34b07

Ongoing review of files that were different in 3 or more repositories

1357812

Blank out rendering of Generic Work title

63b6b6b

Adding collections/show as this is unique to PALs

183fdd7

Add custom catalog controller for PALs

de326b4

🎁 Decorate ApplicationController based on PALs criteria

b3e8bda

kirkkwang and others added 30 commits March 14, 2024 16:19
This is a quality of life improvement.  Use this generator to create a
new work type in the Knapsack because using the Hyrax work generator
will create files in the submodule and we don't want that.

```sh
rails generate hyku_knapsack:work WorkType
```
This decorator needs to be in play for the work types to load their
respective yaml files.
🎁 Add SimpleSchemaLoaderDecorator for work types
This commit will fix a bug where the controller template was not being
found as well as the model spec.  The path was corrected to match the
path found in Hyrax.  Lastly, the generator now includes adding Hyku
specific includes to the controller and model files that were generated.
Update `HykuKnapsack::WorkResourceGenerator`
These files are what we changed in HykuUp Knapsack to get the build,
test, and lint workflows working.  Also, updating the Hyku submodule to
bring in the Valkyrie work.
Attempt to resolve error on pipeline: mv: cannot stat 'rspec.xml': No such file or directory
Ultimately the actions step needs to updated to not run if rspec.xml doesn't exist. We've added specs but there isn't enough to satisfy the pipeline since its processes splits into three test tasks. We'd need at least three separate spec files.
🎁 Contribute back from HykuUp Knapsack
This is a first pass of the PALs work.  There was a lot of head
scratching and copying things into Hyku Prime.  Together this is a
rough process.
jeremyf and others added 26 commits April 18, 2024 11:45
NoMethodError: undefined method `solr_name' for main:Object (NoMethodError)
=> config.add_index_field solr_name("title", :stored_searchable), label: "Title", itemprop: 'name', if: false
13.69 NoMethodError: undefined method `to_sym' for [:database_authenticatable, {}]:Array (NoMethodError)
13.69
13.69       selected_modules = modules.map(&:to_sym).uniq.sort_by do |s|
13.69                                 ^^^^
13.69 Did you mean?  to_s
13.69                to_set
13.69 /usr/local/bundle/gems/devise-4.9.3/lib/devise/models.rb:82:in `map'
13.69 /usr/local/bundle/gems/devise-4.9.3/lib/devise/models.rb:82:in `devise'
13.69 /app/samvera/hyrax-webapp/app/models/user.rb:16:in `<class:User>'
This commit will:
- update Hyku (temporarily on a branch) so WillowSword's initializer
doesn't break loading the schema
- update SimpleSchemaLoaderDecorator and engine to load earlier
- update css locations and imports
- update docker-compose.yml to go to pals.test instead of hyku.test
This commit will change the included do to a prended do so the
properties are loaded properly.
@ShanaLMoore ShanaLMoore requested a review from laritakr May 17, 2024 14:54
@ShanaLMoore ShanaLMoore merged commit 8a24429 into main May 17, 2024
3 of 11 checks passed
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.

3 participants