Skip to content

Display form-level server errors on project and instance create #330

Closed

Description

@david-crespo

The only one of these we're likely to encounter at the moment is ObjectAlreadyExists.

{
  "request_id": "b8787ca8-994d-4681-b637-cae8e8365f56",
  "error_code": "ObjectAlreadyExists",
  "message": "already exists: project \"abc\""
}

We should probably ignore the message field and just hard-code logic that looks at the error code and says "A project with that name already exists" or "An instance with that name already exists in this project". If we want to be really cute, we can even link to the instance or project in question.

I don't think we have design on this, but that doesn't hold up a basic implementation. Just display the error at the bottom above the submit button for now.


This was split off from:

#307
#326

Activity

  1. added this to the 5/28 Demo milestone on May 5, 2021
  2. self-assigned this
    on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions