mwdb-core icon indicating copy to clipboard operation
mwdb-core copied to clipboard

Passing tags to karton.

Open aBUDmdBQ opened this issue 9 months ago • 0 comments

Passing tags to karton can be extremly useful in some scenarios.

Your checklist for this pull request

  • [x] I've read the contributing guideline.
  • [x] I've tested my changes by building and running the project, and testing changed functionality (if applicable)
  • [ ] I've added automated tests for my change (if applicable, optional)
  • [ ] I've updated documentation to reflect my change (if applicable)

What is the current behaviour? When a Task object is created for karton, currently only attributes and a Resource object are passed.

What is the new behaviour? In addition tags will now be passed (as strings) to enable conditional processing by karton based on file tags.

Test plan From within karton modules you should be able to access file tags by task.get_payload("tags").

aBUDmdBQ avatar May 06 '24 07:05 aBUDmdBQ