-
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 Multi Report recursion error #3714
Conversation
@@ -63,11 +62,6 @@ class OOISelectionMultiReportView(MultiReportStepsMixin, BreadcrumbsMultiReportV | |||
current_step = 1 | |||
ooi_types = MultiOrganizationReport.input_ooi_types | |||
|
|||
def get(self, request, *args, **kwargs): |
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.
Removed all get
from MultiReport views as we use now post
requests.
messages.error(request, self.NONE_OOI_SELECTION_MESSAGE) | ||
return redirect(self.get_previous()) | ||
return self.get(request, *args, **kwargs) | ||
ooi_types = MultiOrganizationReport.input_ooi_types |
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.
ooi_types must be present otherwise when selecting all oois it will fetch all ooi types. We want specific ooi types stored in the report types. I have refactor this part in #3705 which is done more efficiently in a get function.
@@ -314,7 +314,7 @@ def get_context_data(self, **kwargs): | |||
return context | |||
|
|||
|
|||
class ReportTypeSelectionView(BaseReportView, ReportBreadcrumbs, TemplateView): |
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.
TemplateView is removed, it clashes with ListView from the BaseOOILIst. use it in specific views where needed.
Checklist for QA:
What works:No more RecursionError What doesn't work:Cant generate multi-report. Will test other PR now. |
Quality Gate passedIssues Measures |
Changes
Issue link
#3623
Closes #3623
Demo
QA notes
The last step will give you a 405 error as this last flow must be refactored see the refactor branch.
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.