Skip to content

AO3-7435 Fix bug where saving changes on unsorted canonical tag gives 500 error. - #5872

Open
nightlight521 wants to merge 3 commits into
otwcode:masterfrom
nightlight521:AO3-7435
Open

AO3-7435 Fix bug where saving changes on unsorted canonical tag gives 500 error.#5872
nightlight521 wants to merge 3 commits into
otwcode:masterfrom
nightlight521:AO3-7435

Conversation

@nightlight521

@nightlight521 nightlight521 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Issue

https://otwarchive.atlassian.net/browse/AO3-7435

Purpose

Ignores missing tag hash which occurs when an empty update happens on an unsorted canonical tag, fixes undefined call on nil.

References

Should unblock AO3-7436

@nightlight521
nightlight521 marked this pull request as ready for review June 11, 2026 17:56
it "does not raise and redirects to success message" do
expect do
put :update, params: { id: unsorted_tag, commit: "Save changes" }
end.not_to raise_error

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You don't need this check for no errors raised. If this put raises an error, the tests will fail.

@redsummernight redsummernight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants