-
Notifications
You must be signed in to change notification settings - Fork 59
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 reports with orginization tags #3790
Conversation
Quality Gate passedIssues Measures |
@@ -90,7 +90,7 @@ def save_report_data( | |||
report_id=uuid4(), | |||
organization_code=organization.code, | |||
organization_name=organization.name, | |||
organization_tags=list(organization.tags.all()), | |||
organization_tags=[tag.name for tag in organization.tags.all()], |
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 helper function on the organization object that returns just the names would be useful, seeing that we already use this same loop in 4 places, and this will probably grow.
Checklist for QA:
What works:When generating the report no error message is thrown. What doesn't work:n/a Bug or feature?:Identified bug: #3794 but it appears to be on main. |
Weird, this bug should then also exist in main I'm afraid. |
* main: Fix reports with organization tags (#3790) Update README.rst - Fix guidelines URLs (#3789) Exclude Report from ooi list (#3768) Update `croniter` (#3767) Fixes for dropdowns (#3732) Fix scheduled Aggregate Report naming (#3748) Make systemctl call for kat-rocky-worker conditional (#3782) Fix vulnerability chapters in Aggregate table of content (#3780) Fix auth token middleware with wrong format header (#3755) Add rocky REST API for report recipes (#3746) Add exception handling to the rest api (#3708) Refactor Multi Report to comply to the new report flow (#3705) Fix report names for scheduled reports (#3726) Fix Multi Report recursion error (#3714) Bump waitress from 3.0.0 to 3.0.1 in /octopoes (#3760) Docs/add muted findings (#3699) Edit report recipe (#3690) Add start date to report schedule (#3701) Add REST API to list report and download pdf report (#3689) Fixes in Report Overview (#3707)
Changes
Fixes #3750
Issue link
Closes #3750
QA notes
Follow steps in #3750, see that it has been solved.
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.