Skip to content

Ensure full view reload after submitting 'Microorganism Identification' analysis #45

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

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

xispa
Copy link
Member

@xispa xispa commented Jun 19, 2025

Description of the issue/feature this PR addresses

This Pull Request ensures the sample view fully reloads after submitting the "Microorganism Identification" analysis.

The introduction of the Sequential Ajax Transitions feature allows transitions to be processed asynchronously via AJAX without requiring a full view reload. When the "submit" transition is configured as an "Active Ajax Transition," the full view is not reloaded after submitting results. While this behavior is acceptable in most cases, it creates an issue for the "Microorganism Identification" analysis. Without a full reload, users must manually refresh the page to render the AST Panel selector, which is essential for choosing panels that align with the microorganisms reported in the analysis.

This Pull Request eliminates the need for manual page refreshes. Now, the view automatically reloads after submitting the "Microorganism Identification" analysis, ensuring the AST Panel selector is properly displayed, regardless of the "Ajax Transition" configuration.

Current behavior before PR

User has to manually reload the view to display the AST Panels selector

Desired behavior after PR is merged

The AST panels selector is displayed automatically after submit of "Microorganism Identification" analysis

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@xispa xispa marked this pull request as ready for review June 19, 2025 17:54
@xispa xispa requested a review from ramonski June 19, 2025 17:55
@ramonski ramonski merged commit 249d337 into master Jun 19, 2025
0 of 2 checks passed
@ramonski ramonski deleted the render-panel-selector-on-submit branch June 19, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants