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

Allow CreateDerivativesJob to receive either an AF object or a Valkyrie resource #4191

Closed
randalldfloyd opened this issue Jan 22, 2020 · 5 comments
Labels

Comments

@randalldfloyd
Copy link
Contributor

randalldfloyd commented Jan 22, 2020

Allow CreateDerivativesJob to receive either an ActiveFedora object or a Valkyrie resource

Descriptive summary

Convert CreateDerivativesJob to allow it to receive either an ActiveFedora based object or a Valkyrie::Resource equivalent object.

Rationale

Allow jobs to execute correctly with existing AF implementation or the Wings Valkyrie implementation.

Expected behavior

CreateDerivativesJob receives a Valkyrie::Resource and performs the action.

Actual behavior

CreateDerivativesJob raises an exception when passed a Valkyrie::Resource.

Approach for Conversion

See Pattern for Jobs Receiving Parameter that may be an AF Object or a Valkyrie Resource

Related work

These have all be modified to support AF object or Valkyrie resource using the established pattern.

@mjgiarlo
Copy link
Member

May be blocked by #4060.

@hackartisan
Copy link
Contributor

related work: #5540

@hackartisan
Copy link
Contributor

I don't think we need to update the existing job, since currently valkyrie derivatives creation is triggered directly in the valkyrie ingest job. However, there is a discrepancy between the way derivatives and characterization are triggered that I wonder if we should align.

#5321 adds characterization via an object.file.uploaded event published by the ValkyrieIngestJob.

That was later moved to an extracted class in #5628. Note that the PR description references derivative creation, as though there's an implementation intention.

Then derivatives generation was added for valkyrie, by enqueuing a job from the ingest job, in #5540.

Was there an intention during the work on #5628 that was not fulfilled in #5540? Should the derivatives job be kicked off by a published event rather than enqueued directly? If so, there may be something to do here around negotiating which derivatives job to invoke.

@no-reply
Copy link
Contributor

no-reply commented Aug 22, 2023

some discussion occurred in Slack https://samvera.slack.com/archives/CDRHAMUTV/p1692716666450449.

I don't think we need to update the existing job

i agree with this, and think it's safe to close this

@hackartisan
Copy link
Contributor

Created #6162 and closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants