Project

General

Profile

Actions

Bug #4394

closed

[Workbench] Make duplicate name error message more user-friendly

Added by Anonymous over 9 years ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Workbench
Target version:
-
Story points:
0.5

Description

When I tried to use the same collection name twice, the error message (the uniqueness constraint violation exception from our PostgreSQL driver, rendered by X-Editable) looked like an internal error message that wasn't intended to be shown to an end user.

Proposed fix:
  1. API server should provide an error message phrased in Arvados terms, suitable for displaying to users, like errors.add :name, "must be unique within this project"
  2. Workbench should render errors like this without strange formatting -- e.g., "Error: name must be unique" instead of <ArvadosApiClient> 422 {"name", "must be unique"}
Actions #1

Updated by Brett Smith over 9 years ago

  • Subject changed from Trying to name a collection a name that already exists in a project creates funny error to [Workbench] Make duplicate name error message more user-friendly
  • Category set to Workbench
  • Target version set to Bug Triage
Actions #2

Updated by Brett Smith over 9 years ago

  • Description updated (diff)
  • Story points set to 0.5
Actions #3

Updated by Tom Clegg over 9 years ago

  • Description updated (diff)
Actions #4

Updated by Tom Clegg over 9 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints
Actions #5

Updated by Tom Morris over 7 years ago

The error is a bold red:

#<PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "collection_owner_uuid_name_unique"
DETAIL: Key (owner_uuid, name)=(qr1hi-tpzed-rv6f0l8lbvdzkog, New collection (1377)) already exists.

I'm not sure why collection names need to be unique for a user in the first place, so perhaps we should just fix that and we won't need to deal with fixing the error message.

Actions #6

Updated by Ward Vandewege almost 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #7

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #8

Updated by Peter Amstutz about 2 months ago

  • Target version set to Future
Actions #9

Updated by Peter Amstutz about 2 months ago

  • Status changed from New to Closed
Actions #10

Updated by Peter Amstutz 8 days ago

  • Target version deleted (Future)
Actions #11

Updated by Peter Amstutz 8 days ago

  • Release deleted (60)
Actions

Also available in: Atom PDF