settings: catch IntegrityError and render error in output (Bug 2037991) #1159 (lando@main)
| Warnings |
|
|---|---|
| Blockers |
|
| Branches | api-key-error-message -> main |
| Repo | lando@main (git) (git://github.com/cgsheeh/lando.git) |
| Author | cgsheeh |
| State | open |
| Commit Title | settings: catch IntegrityError and render error in output (Bug 2037991) |
| Commit Body | Catch the `IntegrityError` thrown when trying to add a Phab API key to a profile where there is already an existing PHID associated with a user profile. We add a test for this case, and a test for the happy patch since it is currently untested. Move the `phabdouble` fixture into the top-level `conftest.py` so it can be accessed from the `ui` app. |
Landings
Not yet Landed
There has been no attempt to land revisions in this stack.