Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Generator check / Install IiifPrint into Hyku #40

Closed
2 tasks
ShanaLMoore opened this issue Dec 15, 2022 · 8 comments
Closed
2 tasks

Generator check / Install IiifPrint into Hyku #40

ShanaLMoore opened this issue Dec 15, 2022 · 8 comments

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Dec 15, 2022

THIS SHOULD BE TESTED LOCALLY

This ticket is meant to be done towards the end of the iiif_print epic

We want to confirm that the generator does everything it needs to, when installing iiif_print onto a hyrax/hyku project.

  • Test generator by installing iiifprint on hyku main
  • We ultimately will be merging iiif_print into hyku so this ticket can be treated as a 2 for 1. (as in tested generator locally and confirm all is good, but also make a PR out of it).

NOTES:

#121 Generator Refactor

Screenshots / Video

Tested on https://demo.hyku-iiif.notch8.cloud

Sample Files:

Expected Behavior

User should be able to perform all that's listed in the features list's user story tab

Testing Instructions

A user should perform all that is defined in the user story tab of the Features List

@ShanaLMoore ShanaLMoore converted this from a draft issue Dec 15, 2022
@jillpe
Copy link

jillpe commented Jan 3, 2023

@jillpe jillpe moved this to Ready for Development in utk-hyku Jan 3, 2023
@ShanaLMoore ShanaLMoore changed the title Generator check SPIKE: Generator check Jan 3, 2023
@jillpe
Copy link

jillpe commented Feb 2, 2023

To Do:

  • verify that running the generators gets you all the needed adjustments for iiif search found in lousiville app/controller/catalog_controller.rb
  • Determine if the generator made changes to app/views/hyrax/file_sets
    IF SO...
    IF NOT...

Notes:
Implementation suggestion:

run the generator from iiif print main on a clean hyku and then compare the CatalogController of each spot and take note of the diff.

i ran the generator and saw a lot of tiny differences that didn’t seem like it was noteworthy, but this one stuck out to me, https://github.com/scientist-softserv/louisville-hyku/blob/main/app/controllers/catalog_controller.rb#L484-L503
this whole method is missing from the generator, does it look like something we want?

Alisha said these came from hyrax 3
notch8/louisville-hyku@f8d98d8

check if exists in hyku

check if they are apart of Lea Ann's plan for PALS, if not make a ticket to add

@jillpe
Copy link

jillpe commented Feb 2, 2023

Referenc #33 and #29

@jillpe jillpe added the Phase 2 label Feb 2, 2023
@laritakr laritakr removed this from utk-hyku Feb 2, 2023
jeremyf added a commit that referenced this issue Feb 8, 2023
Apologies in advance oh intrepid folk.  This commit contains quite a bit
of conceptual change.

The driving purpose is to look at how to reduce the fragility of our
generator process while also exposing configurable approaches.

First, I am removing generators for each work type and their
corresponding indexer.  This is precarious, in that as folks add new
work types we don't have a mechanism to propagate that.  Second, we were
previously matching files by work_type, which can work, but we can
instead include/prepend logic into those models directly during the
`to_prepare` cycle of the IiifPrint engine.

Second, instead of having a mixin, I'm looking to create configuration
points where you could register a different lineage service.  This helps
create a more crisp separation of concern.

Third, I suspect that some of these "decorations" we do not want to do
unless we configure the model for IiifPrint.  By removing the generator,
we are in greater control of that decision.

All of this because I was trying to figure out how to test the prior
`ancestor_ids` method.

Related to:

- #43
- #40
jeremyf added a commit that referenced this issue Feb 8, 2023
Prior to this commit, we were generating this decorator into the
downstream application.  Thus this engine cedes control to the
downstream application.

However, based on discussions, the `is_child_bsi` may not be in all
implementations.  Which would mean we want this decoration to be
configurable.

With this commit, we favor keeping the decorator inside the engine thus
allowing for future configurability.

Related to:

- #40
@ShanaLMoore
Copy link
Contributor Author

cut a new hyku branch w a fresh install after Jeremy's #121 , and test

@ShanaLMoore ShanaLMoore moved this to Ready for Development in IIIF_Print Feb 14, 2023
@jillpe jillpe changed the title SPIKE: Generator check Generator check Feb 14, 2023
@ShanaLMoore ShanaLMoore removed the status in IIIF_Print Feb 14, 2023
@ShanaLMoore ShanaLMoore moved this to Ready for Development in IIIF_Print Feb 14, 2023
@laritakr laritakr self-assigned this Feb 16, 2023
@github-project-automation github-project-automation bot moved this from Ready for Development to Done in IIIF_Print Feb 16, 2023
@laritakr laritakr reopened this Feb 16, 2023
@laritakr laritakr moved this from Done to In Development in IIIF_Print Feb 16, 2023
@ShanaLMoore ShanaLMoore changed the title Generator check Generator check / Install IiifPrint into Hyku Feb 24, 2023
@ShanaLMoore ShanaLMoore moved this from In Development to Code Review in IIIF_Print Feb 24, 2023
@kirkkwang kirkkwang moved this from Code Review to In Development in IIIF_Print Feb 25, 2023
@kirkkwang kirkkwang moved this from In Development to Code Review in IIIF_Print Feb 25, 2023
@jillpe
Copy link

jillpe commented Feb 27, 2023

Blocked

@ShanaLMoore
Copy link
Contributor Author

Rob is working on Hyku samvera/hyku#1925

@ShanaLMoore
Copy link
Contributor Author

Resolved pipeline issues and verified basic tests on https://demo.hyku-iiif.notch8.cloud/dashboard/my/works?locale=en

@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented Mar 15, 2023

I'll create a configuration ticket to wrap up this work. Then it can be QA'd.

ref configure ticket: #184
ref QA ticket: #185

@github-project-automation github-project-automation bot moved this from Code Review to Done in IIIF_Print Mar 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants