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

WIP: catch "route already exists in Publishing API" error #1211

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChrisBAshton
Copy link
Contributor

We had a situation earlier whereby Short URL Manager tried and failed to apply a redirect to an existing route, despite the 'override existing' field set to 'no'. The response was a 422 and no error message, which meant the user had to get in touch with support.

We should investigate and fix the 'override existing' check, as well as do a better job at surfacing errors.

I tried and failed to recreate the scenario here in several different test files, but it may be useful as a starting point for whoever picks up the card.

Trello: https://trello.com/c/PVcAt5Ll/3178-surface-path-reserved-errors-in-ui

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

We had a situation earlier whereby Short URL Manager tried and
failed to apply a redirect to an existing route, despite the
'override existing' field set to 'no'. The response was a 422 and
no error message, which meant the user had to get in touch with
support.

We should investigate and fix the 'override existing' check,
as well as do a better job at surfacing errors.

I tried and failed to recreate the scenario here in several different
test files, but it may be useful as a starting point for whoever
picks up the card.

Trello: https://trello.com/c/PVcAt5Ll/3178-surface-path-reserved-errors-in-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant