Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update task api #16

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Update task api #16

merged 2 commits into from
Nov 26, 2024

Conversation

sduenas
Copy link
Member

@sduenas sduenas commented Nov 25, 2024

This PR introduces two changes in the API:

  • Parameters backend and category have been renamed to 'datasource_type' and datasource_category on add_task endpoint.
  • Data returned by the task list includes the new field last_jobs, which includes the data of the last 10 jobs run by a task.

Renames 'backend' and 'category' parameters to 'datasource_type'
and 'datasource_category'.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
@sduenas sduenas requested a review from evamillan November 25, 2024 13:57
@sduenas sduenas mentioned this pull request Nov 25, 2024
The field 'last_jobs' is included when the data about
a task is requested. This field lists the last 10 jobs
run by the task.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
Copy link
Collaborator

@evamillan evamillan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sduenas sduenas merged commit f4dcb78 into grimoirelab:main Nov 26, 2024
2 checks passed
@sduenas sduenas deleted the update-task-api branch November 26, 2024 10:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants