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

The Job system allows Jinja templates but the UI doesn't #40

Open
wgresshoff opened this issue Jul 1, 2024 · 0 comments
Open

The Job system allows Jinja templates but the UI doesn't #40

wgresshoff opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wgresshoff
Copy link
Contributor

Package version (if known): v0.3.0

Describe the bug

The "default arguments" component in the administrations "Job Edit" view will only accept Json content. There is Jinja templating support for this in the job system which is blocked by this in the UI.

Steps to Reproduce

  1. Create a new Job.
  2. Add a title.
  3. Choose "Default" queue.
  4. Choose task: invenio_vocabularies.services.tasks.process_datastream
  5. Add this to default args:
    {"config":{"readers":[{"args":{"set":"authorities:sachbegriff","verb":"ListRecords","base_url":"https://services.dnb.de/oai/repository","from_date":"2024-06-01T00:00:00Z","until_date":"2024-06-10T00:00:00Z","metadata_prefix":"MARC21-xml"},"type":"oai-pmh"}],"writers":[{"args":{"identity":{{ system_identity }}},"type":"subjects-service"}],"transformers":[{"type":"gndsubjects"}]}}
  6. Press "Save" button.

Expected behavior

Job is saved.

Screenshots (if applicable)

grafik

Additional context

This special job should run every 10 minutes with "from_date" and "until_date" adjusted accordingly, which should be generally possible with Jinja templates.

@wgresshoff wgresshoff added the bug Something isn't working label Jul 1, 2024
@carlinmack carlinmack changed the title The Jobystem allows Jinja templates but the UI doesn't The Job system allows Jinja templates but the UI doesn't Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant