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

verify derivatives for importer batches #3032

Closed
lsat12357 opened this issue Feb 2, 2024 · 2 comments · Fixed by #3064
Closed

verify derivatives for importer batches #3032

lsat12357 opened this issue Feb 2, 2024 · 2 comments · Fixed by #3064

Comments

@lsat12357
Copy link
Contributor

Descriptive summary

This will be a reworking of the verify derivatives service used by the migrator.
Very few changes expected.

Expected behavior

Related work

Link to related tickets or prior related work here.

Accessibility Concerns

Add any information here to indicate any known or suspected accessibility issues for this ticket

@lsat12357
Copy link
Contributor Author

For QA (and covers #3030 and #3053)
Note, I have deleted the fileset f09c67wm855
Open rails console session
pids = ['9c67wm855', 'bn999674d']
bws = OregonDigital::BatchVerificationService.new(pids)
bws.verify
#let it run
item = ActiveFedora::Base.find(pids[0])
item.all_errors #should return {:derivatives=>["no file set"]}
item2 = ActiveFedora::Base.find(pids[1])
item2.all_errors #should return {}

@wickr
Copy link
Member

wickr commented Apr 16, 2024

QA Pass.

irb(main):001:0> pids = ['9c67wm855', 'bn999674d']
=> ["9c67wm855", "bn999674d"]
irb(main):002:0> bws = OregonDigital::BatchVerificationService.new(pids)
=> #<OregonDigital::BatchVerificationService:0x00007f208357f4b8 @pids=["9c67wm855", "bn999674d"], @options={}>
irb(main):003:0> bws.verify
I, [2024-04-16T08:49:20.249982 #231545]  INFO -- : [ActiveJob] Enqueued OregonDigital::VerifyWorkJob (Job ID: c6539e6d-744b-407a-a33f-05c06356a353) to Sidekiq(default) with arguments: {:pid=>"9c67wm855"}
I, [2024-04-16T08:49:20.251518 #231545]  INFO -- : [ActiveJob] Enqueued OregonDigital::VerifyWorkJob (Job ID: 7c3c7f4c-a19e-4d07-8fbb-2ba22694d1c0) to Sidekiq(default) with arguments: {:pid=>"bn999674d"}
=> ["9c67wm855", "bn999674d"]
irb(main):004:0> item = ActiveFedora::Base.find(pids[0])
I, [2024-04-16T08:49:48.452104 #231545]  INFO -- : Attempted to init base path `prod`, but it already exists
D, [2024-04-16T08:49:48.500048 #231545] DEBUG -- :   Load LDP (40.3ms) http://fcrepo.od2-test.svc.cluster.local.:8080/fcrepo/rest/prod/9c/67/wm/85/9c67wm855 Service: 598560
=> #<Image id: "9c67wm855", head: [#<ActiveTriples::Resource:0x92680 ID:<http://fcrepo.od2-test.svc.cluster.local.:8080/fcrepo/rest/prod/9c/67/wm/85/9c67wm855/list_source#g55712680>>], tail: [#<A...

irb(main):005:0> item.all_errors
=> {:derivatives=>["no file set"]}

irb(main):006:0> item2 = ActiveFedora::Base.find(pids[1])
D, [2024-04-16T08:50:13.310061 #231545] DEBUG -- :   Load LDP (32.9ms) http://fcrepo.od2-test.svc.cluster.local.:8080/fcrepo/rest/prod/bn/99/96/74/bn999674d Service: 598560
=> #<Image id: "bn999674d", head: [#<ActiveTriples::Resource:0x92b6c ID:<http://fcrepo.od2-test.svc.cluster.local.:8080/fcrepo/rest/prod/bn/99/96/74/bn999674d/list_source#g55712520>>], tail: [#<A...
irb(main):007:0> item2.all_errors
=> {}

@wickr wickr moved this from QA to Done/Deployed to Production in Enhancement Workcycle 5 Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Enhancement Workcycle 5
Done/Deployed to Production
Development

Successfully merging a pull request may close this issue.

2 participants