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

modify rake task for "workflow:step" to only operate on the current version of a druid #783

Open
andrewjbtw opened this issue Jun 5, 2024 · 0 comments

Comments

@andrewjbtw
Copy link

andrewjbtw commented Jun 5, 2024

There's a rake task for setting specific workflow steps to specific statuses. It currently requires:

  • druid
  • workflow name
  • workflow step
  • version
  • status

Example: bin/rake workflow:step[druid:nt586gf9125,accessionWF,sdr-ingest-transfer,1,waiting]

I would like to modify the task to only operate on the current version of a druid - whichever version happens to be in the process of going through the workflow. That would allow us to take the version parameter out of the command.

Why? I've only used this task to resolve workflow errors when a druid is currently in a workflow. If there's an issue with a previous version of a workflow, I use the rails console. Having to specify the version in a parameter means:

  • if there's a batch of druids with the same problem, you can't loop through a list and run the same task on all the druids without looking up their current versions
  • if you get the version number wrong, the rake task will modify a step on a previous version whether you wanted it to or not. That can cause issues, such as a druid having a workflow error that isn't immediately visible because it's attached to a previous version.
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

No branches or pull requests

1 participant