-
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
Add bulk actions on report overview #3777
base: main
Are you sure you want to change the base?
Conversation
…vws/nl-kat-coordination into feat/bulk-actions-on-report-overview
…vws/nl-kat-coordination into feat/bulk-actions-on-report-overview
for subreport in subreports: | ||
self.recreate_report(subreport, parent_ooi) | ||
|
||
def rename_reports(self, report_references: list[str]) -> None: |
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.
A few things:
- The messages here are a bit misleading, because there's no way to find out what message belongs to what report reference?
- On success you would spam a few "Report names changed successfully." messages on the view, you probably want to do that only once when it actually succeeds?
Also, the message "Report names changed successfully." is misleading
|
||
observed_at = datetime.now(timezone.utc) | ||
|
||
bytes_data = self.get_report_data_from_bytes(report_ooi) |
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.
bytes_data = self.get_report_data_from_bytes(report_ooi) | |
report_data = self.get_report_data_from_bytes(report_ooi) |
|
||
bytes_data = self.get_report_data_from_bytes(report_ooi) | ||
|
||
new_bytes_id = self.bytes_client.upload_raw( |
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.
new_bytes_id = self.bytes_client.upload_raw( | |
raw_id = self.bytes_client.upload_raw( |
def delete_reports(self, report_references: list[str]) -> None: | ||
reports_selected = self.request.GET.get("report", "") | ||
if reports_selected == "all": | ||
all_reports = self.get_queryset()[:] # must be sliced |
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.
Why does it need to be sliced?
all_reports = self.get_queryset()[:] # must be sliced | |
all_reports = list(self.get_queryset()) |
Quality Gate failedFailed conditions |
Changes
This adds a drop down button with several actions on the report history page. The user needs to make a selection from the list of reports first, using the checkboxes.
Issue link
Closes #3379 and #3388
QA notes
Select one or more reports from the list using the checkboxes in front. In addition, also use the "select all" for testing purposes. And then select either delete or rename from the "actions" drop down and preform the action in the modal and submit the modal.
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.