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

ui: the host detailed view should include tasks that were delegated to it #313

Open
dmsimard opened this issue Jul 30, 2021 · 0 comments
Open
Labels
enhancement UI Related to the built-in user interface

Comments

@dmsimard
Copy link
Contributor

What is the issue ?

Sometimes hosts are recorded without apparent results:
Screenshot from 2021-07-30 11-47-51

Screenshot from 2021-07-30 11-48-31

This is because the host did not run any tasks directly on it's own but was rather delegated tasks from another host.

What should be happening ?

We have access to these results via the API (/api/v1/results?delegated_to=<id>) so we should be able to include these when we recover the results for the host:

ara/ara/ui/views.py

Lines 222 to 223 in e5ec563

result_queryset = models.Result.objects.filter(host=host_serializer.data["id"]).order_by(order).all()
result_filter = filters.ResultFilter(request.GET, queryset=result_queryset)

@dmsimard dmsimard added enhancement UI Related to the built-in user interface labels Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement UI Related to the built-in user interface
Projects
None yet
Development

No branches or pull requests

1 participant