scientist-softserv / palni_palci_knapsack

Apache License 2.0
1 stars 0 forks source link

Iiif Print is not splitting for Pals Knapsack #102

Open ShanaLMoore opened 4 months ago

ShanaLMoore commented 4 months ago

Summary

Iiif Print is not splitting.

PS. This is working for Hyku.

ref :thread:

This is blocking us from pushing the embargo SOW to the client.

Acceptance Criteria

Screenshots or Video

Testing Instructions

TBD

Notes

Bulkrax SAMPLE - split-embargo-pals.zip

STAGING

ShanaLMoore commented 4 months ago

WIP PR: https://github.com/scientist-softserv/palni_palci_knapsack/pull/103

laritakr commented 4 months ago

Blocked by failing specs on https://github.com/samvera/hyku/pull/2260

ShanaLMoore commented 2 months ago

Reopening because I just noticed This PR + comment is outstanding. I obviously forgot about it 🙃 Are the specs passing yet or has hyku been updated for pals submodule, to unblock this from moving forward?

cc @kirkkwang @sjproctor if you're working on pals bugs this week, could you take a moment to confirm that if this is still an issue, and whether or not the PR needs to get closed to merged?

Thanks!

kirkkwang commented 2 months ago

Tested on staging and it did not work all the way, the work gets split (I think) but the child work isn't being attached to the parent work.

2024-08-08T20:38:26.451Z pid=1 tid=c5vd class=IiifPrint::Jobs::CreateRelationshipsJob jid=829d6d66f08c40a517d42bae INFO: start
D, [2024-08-08T20:38:26.549918 #1] DEBUG -- :   Account Load (0.9ms)  SELECT "public"."accounts".* FROM "public"."accounts" WHERE "public"."accounts"."tenant" = $1 LIMIT $2  [["tenant", "eb8f518a-06c3-462a-bf50-32fdda40b021"], ["LIMIT", 1]]
D, [2024-08-08T20:38:26.552250 #1] DEBUG -- :   SolrEndpoint Load (0.5ms)  SELECT "public"."endpoints".* FROM "public"."endpoints" WHERE "public"."endpoints"."type" = $1 AND "public"."endpoints"."id" = $2 LIMIT $3  [["type", "SolrEndpoint"], ["id", 283], ["LIMIT", 1]]
D, [2024-08-08T20:38:26.554079 #1] DEBUG -- :   FcrepoEndpoint Load (0.4ms)  SELECT "public"."endpoints".* FROM "public"."endpoints" WHERE "public"."endpoints"."type" = $1 AND "public"."endpoints"."id" = $2 LIMIT $3  [["type", "FcrepoEndpoint"], ["id", 284], ["LIMIT", 1]]
D, [2024-08-08T20:38:26.555281 #1] DEBUG -- :   RedisEndpoint Load (0.3ms)  SELECT "public"."endpoints".* FROM "public"."endpoints" WHERE "public"."endpoints"."type" = $1 AND "public"."endpoints"."id" = $2 LIMIT $3  [["type", "RedisEndpoint"], ["id", 285], ["LIMIT", 1]]
I, [2024-08-08T20:38:26.555982 #1]  INFO -- : [ActiveJob] [IiifPrint::Jobs::CreateRelationshipsJob] [5ae3a5e5-53e3-4960-a7d7-fac43301acda] Performing IiifPrint::Jobs::CreateRelationshipsJob (Job ID: 5ae3a5e5-53e3-4960-a7d7-fac43301acda) from Sidekiq(default) enqueued at 2024-08-08T20:30:24Z with arguments: {:parent_id=>"2a775b63-db52-4162-ad43-d26aded489b3", :parent_model=>"GenericWorkResource", :child_model=>"GenericWorkResource", :retries=>3}
D, [2024-08-08T20:38:26.557415 #1] DEBUG -- : [ActiveJob] [IiifPrint::Jobs::CreateRelationshipsJob] [5ae3a5e5-53e3-4960-a7d7-fac43301acda]   IiifPrint::PendingRelationship Load (0.8ms)  SELECT "iiif_print_pending_relationships".* FROM "iiif_print_pending_relationships" WHERE "iiif_print_pending_relationships"."parent_id" = $1 ORDER BY child_order asc  [["parent_id", "2a775b63-db52-4162-ad43-d26aded489b3"]]
D, [2024-08-08T20:38:26.558734 #1] DEBUG -- : [ActiveJob] [IiifPrint::Jobs::CreateRelationshipsJob] [5ae3a5e5-53e3-4960-a7d7-fac43301acda]   Valkyrie::Persistence::Postgres::ORM::Resource Load (0.9ms)            SELECT * FROM orm_resources
          WHERE internal_resource = 'GenericWork' AND metadata -> 'title' ->> 0 = '2a775b63-db52-4162-ad43-d26aded489b3 - iiif-print-test.pdf Page 1'
          LIMIT 1;

I, [2024-08-08T20:38:26.586210 #1]  INFO -- : [ActiveJob] [IiifPrint::Jobs::CreateRelationshipsJob] [5ae3a5e5-53e3-4960-a7d7-fac43301acda] Enqueued IiifPrint::Jobs::CreateRelationshipsJob (Job ID: aba8c591-7678-4fd9-8312-b82de6dba4d7) to Sidekiq(default) at 2024-08-08 20:48:26 UTC with arguments: {:parent_id=>"2a775b63-db52-4162-ad43-d26aded489b3", :parent_model=>"GenericWorkResource", :child_model=>"GenericWorkResource", :retries=>4}
I, [2024-08-08T20:38:26.586317 #1]  INFO -- : [ActiveJob] [IiifPrint::Jobs::CreateRelationshipsJob] [5ae3a5e5-53e3-4960-a7d7-fac43301acda] Performed IiifPrint::Jobs::CreateRelationshipsJob (Job ID: 5ae3a5e5-53e3-4960-a7d7-fac43301acda) from Sidekiq(default) in 30.23ms
D, [2024-08-08T20:38:26.588073 #1] DEBUG -- :   Account Load (0.4ms)  SELECT "public"."accounts".* FROM "public"."accounts" WHERE "public"."accounts"."tenant" = $1 LIMIT $2  [["tenant", "public"], ["LIMIT", 1]]
2024-08-08T20:38:26.588Z pid=1 tid=c5vd class=IiifPrint::Jobs::CreateRelationshipsJob jid=829d6d66f08c40a517d42bae elapsed=0.137 INFO: done
jillpe commented 2 months ago

SoftServ QA: ✅

Bulkrax Import

Importer Work 1 Work 2

UI Creation

Work

jillpe commented 2 months ago

THis will be part of the Valkyrie Deploy