Make error massage more informative

Description

For one of the universities, the following logs were observed :

it took some time to understand what had happened, so the purpose of this ticket is to improve the user experience related to this kind of message to be more informative.

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko January 31, 2024 at 9:31 AM

Verified on Snapshot environment - if user uses Fast add option to create Instance/Holdings/Item and HRID of these records already exist then the error message will be returned in response:
"HRID value already exists in table instance: it00000000001"
"HRID value already exists in table holdings: it00000000001"
"HRID value already exists in table item: it00000000001"
See attached screenshot for example:

Viacheslav Kolesnyk November 6, 2023 at 5:17 PM

Constraint violation was not clear for problem investigation. Issue was "Fast add records not saving" and adjusting the HRID settings was needed to fix it.

So possibly we need to catch constraint violation exception and add some text mentioning that hrid exists and/or HRID settings may be wrong

Viacheslav Kolesnyk October 5, 2023 at 8:47 AM
Edited

Clarify scenario for reproducing and expected outcome (logs, response message).

, could you add more details, please.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Quesnelia (R1 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created August 25, 2023 at 1:57 PM
Updated March 25, 2024 at 4:12 PM
Resolved January 31, 2024 at 2:04 PM
TestRail: Cases
TestRail: Runs