-
Notifications
You must be signed in to change notification settings - Fork 4
WAL-170-automatically-add-wallaby-runs-to-the-relevant-survey-components-based-on-name #27
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
Conversation
…survey-components-based-on-name' of https://github.com/AusSRC/SoFiAX_services into WAL-170-automatically-add-wallaby-runs-to-the-relevant-survey-components-based-on-name
…-the-relevant-survey-components-based-on-name
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.
Is there a reason we don't replace get_survey_component_by_name with just SurveyComponent.objects.get(name=in_name)?
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.
because I didn't know you can do that. I'll update this too.
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.
Actually using filter avoids getting a "DoesNotExist" exception and it will change the way I handle displaying error messages
web/survey/admin.py
Outdated
| def _auto_assign_to_component(self, request, queryset): | ||
| try: | ||
| self.auto_assign_run_to_component(request, queryset) | ||
| return redirect('/admin/survey/run/') |
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 are we redirecting to the run page? The user starts at the survey component run page, and then this would take the user to a different page right?
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.
Yep thanks, I have removed the redirect.
…nts-based-on-name (#27) * Update README.md * Update README.md * Add function to auto assign survey runs to components * Add description for auto-assign action * Make sure user messages work for auto-assign * Update lint.yml * Linting fixes * Update README.md with wallaby version * Linting fixes * Austin feedback * Fix wrong name pattern for quality check --------- Co-authored-by: Austin Shen <austin.shen@csiro.au>
Added new menu in Runs:

Results and errors after run:
