-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix for task id as valid UUID #3744
base: main
Are you sure you want to change the base?
Conversation
@@ -299,14 +299,15 @@ def list_tasks(self, **kwargs) -> PaginatedTasksResponse: | |||
filter_key = "filters" | |||
params = {k: v for k, v in kwargs.items() if v is not None if k != filter_key} # filter Nones from kwargs | |||
endpoint = "/tasks" | |||
res = self._client.post(endpoint, params=params, json=kwargs.get(filter_key, None)) | |||
res = self._client.post(endpoint, params=params, json=kwargs.get(filter_key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is automatically removed and is not part of this PR. None is already a default return value.
…nation into fix/task-id-as-uuid
We should exclude tests from covarage |
@@ -57,6 +57,7 @@ def get_context_data(self, **kwargs): | |||
class NormalizerTaskJSONView(TaskDetailView): | |||
task_type = "normalizer" | |||
plugin_type = "normalizer" | |||
template_name = "tasks/normalizer_task_detail.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My test failed on this part, because it was missing the template name
…nation into fix/task-id-as-uuid
Quality Gate failedFailed conditions |
Changes
Issue link
#3743
Closes #3743
Demo
QA notes
Please add some information for QA on how to test the newly created code.
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.