Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Add task list params #89

Merged
merged 24 commits into from
Jan 11, 2023
Merged

Add task list params #89

merged 24 commits into from
Jan 11, 2023

Conversation

jpbruinsslot
Copy link
Contributor

@jpbruinsslot jpbruinsslot commented Dec 20, 2022

This PR implements a partial scans/tasks lists view, that (according to designs) can be used on: ooi detail page, boefje detail page, and task/scans page. Since, the designs show that the functionality is the same across these pages, it made sense to create one partial and include these in the templates. At the moment in this PR it is implemented on the ooi detail and plugin detail page.

Open questions:

  • Since there are different strategies for implementing forms/pagination throughout rocky the main question is if this implementation and location of files etc. is the way forward and correct for the future. With this PR I don't want to introduce yet another new implementation.

  • In the designs, the table's first column is the object name. It might not make sense in the context of an ooi detail page, since the name is already present. Additionally, there is a search field for an object name, in the context of a ooi detail this would make not much sense.

  • Now form fields are being passed to the template context. This is done to make a differentiation between fields in the filter form fields that need to remain as query parameters when submitting the filter form. This could potentially be a django form, the question is if this is desirable.

How to test/view:

  • In mula checkout [Feature] task list filters nl-kat-mula#16
  • Go through the onboarding
  • Add an url and do a regular scan
  • Choose an object, and scroll down to see the scan history
  • Go to kat-alogus
  • Select plugin dns-records

@jpbruinsslot jpbruinsslot marked this pull request as ready for review December 29, 2022 16:08
@jpbruinsslot jpbruinsslot requested a review from a team as a code owner December 29, 2022 16:08
@Lisser
Copy link
Contributor

Lisser commented Jan 6, 2023

For some reason, the first column remains empty for me. Even after starting from scratch with make kat
Screenshot 2023-01-06 at 14 36 45

Also, the tasks list seems to be empty now 🤔
Screenshot 2023-01-06 at 14 37 41

Problem seems to be that I'm getting normalizer jobs instead of Boefje jobs when requesting boefje-_dev tasks
Screenshot 2023-01-06 at 16 53 59

@jpbruinsslot
Copy link
Contributor Author

@Lisser commit in the mula branch should fix this problem

@Lisser
Copy link
Contributor

Lisser commented Jan 9, 2023

Awesome. Works for me now!

@Lisser
Copy link
Contributor

Lisser commented Jan 9, 2023

Can we use a lazy Paginator object here to apply pagination in the same style as the OOIList paginator?

https://github.com/minvws/nl-kat-rocky/blob/main/rocky/views/mixins.py#L153

@underdarknl underdarknl merged commit f0cdf38 into main Jan 11, 2023
@underdarknl underdarknl deleted the feature/add-task-list-params branch January 11, 2023 13:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants