Display a better message when the ExternalDataSources name isn't unique

Description

Currently when the ExternalDataSources name isn't unique the backend sends a response like so

"org.springframework.context.NoSuchMessageException: No message found under code 'unique'

There should actually be a better message than that. It needs adding to the message bundle in the backend. Its a missing translation key.

Update: Message should be the same as the toast message defined in https://folio-org.atlassian.net/browse/ERM-437#icft=ERM-437:

"External data source was not saved. Name must be unique. A data source with the name "dummy3" already exists."

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Components

Labels

Priority

Sprint

Development Team

Bienenvolk

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 6, 2020 at 4:49 PM
Updated January 29, 2020 at 2:25 PM
Resolved January 29, 2020 at 2:25 PM
TestRail: Cases
TestRail: Runs

Flag notifications