Skip to content
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

289 - Change :new to :edit upon failed update for PublicationsController #290

Merged

Conversation

Janell-Huyck
Copy link
Contributor

@Janell-Huyck Janell-Huyck commented Nov 16, 2023

Fixes #289

When an update to the publication fails, it will now correctly redirect the user back to the :edit page rather than the :new page. This is in line with standard Ruby practices and would have been the expected redirection.

This bug hadn't been caught before because we didn't check what page was rendered, only that there was a "success" response. I've added this check to our publication-type update tests.

@Janell-Huyck Janell-Huyck added the bug Something isn't working label Nov 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@Janell-Huyck Janell-Huyck force-pushed the bug-289-correct-failed-update-publications-controller-redirect branch from a63970e to 7aa09df Compare December 1, 2023 17:58
Copy link
Contributor

@haitzlm haitzlm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested. Working as expected now.

@haitzlm haitzlm merged commit 4c64819 into qa Dec 5, 2023
@Janell-Huyck Janell-Huyck deleted the bug-289-correct-failed-update-publications-controller-redirect branch February 26, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct redirect for failed update in PublicationsController
2 participants