-
Notifications
You must be signed in to change notification settings - Fork 38
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 batch determination different forms issue #4304
base: main
Are you sure you want to change the base?
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: hypha/apply/determinations/views.py
Did you find this useful? React with a 👍 or 👎 |
hypha/apply/funds/views_all.py
Outdated
) | ||
if redirect: | ||
return HttpResponseClientRedirect(redirect.url) | ||
# should redirect |
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.
Moved should_redirect
method directly in here to avoid raising an Error, instead showing the error to the user without performing the batch action.
It is hard to find all the cases at once so I guess it is a better way to avoid 500. We can include the cases to validation as soon as it is reported.
This comment was marked as outdated.
This comment was marked as outdated.
7aea2b5
to
3744288
Compare
d5ea79a
to
5743656
Compare
@@ -317,6 +320,13 @@ def sub_menu_update_status(request: HttpRequest) -> HttpResponse: | |||
else [] | |||
) | |||
|
|||
# hide determination actions if submissions have different forms | |||
if not allow_determination: | |||
determination_actions = ["Dismiss", "Request More Information", "Accept"] |
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.
@sandeepsajan0 Will this work with translations?
In testing this definitely was a lot smoother! @sandeepsajan0 I noticed when I selected a couple of lab submissions they all gave me the option to bulk dismiss, and the same with when I selected fund submissions, but combining them removed that option - is this because of the difference in determination forms? if so I think this is ready |
Fixes #4290
Test Steps