Improve error messaging in List when a field is no longer available

Description

When a custom field used in a list is deleted (Settings > Users > Custom fields), it breaks much of the functionality for that list. The purpose of this story is to improve the error messaging so a more friendly error message can be displayed in the List detail UI.

Scenario:

  • Given a custom field is used in a query

    • And the custom field is no longer available

  • When the query is executed

  • Then an error is returned with the following text

    • Unable to complete action. Query is no longer valid due to an unavailable field(s). Please edit the list query or delete the list.

 

View List detail record

  • If the field is a part of the query then

    • Action menu > If user clicks on any of the following actions: Refresh list, Duplicate list, then show an error toast notification = Unable to complete action. Query is no longer valid due to an unavailable field(s). Please edit the list query or delete the list.

    • Exporting - the list can be exported, but the custom field column is missing (expected results)

    • Allow the user to delete the list.

    • Allow the user to edit the list detail record

Edit List detail record

  • If the user edits any of the List details fields When they hit Save button, Then show a Failed toast notification [Unable to complete action. Query is no longer valid due to an unavailable field(s). Please edit the list query or delete the list. ]

    • Allow the user to delete the list

    • Exporting - the list can be exported, but the custom field column is missing (expected results)

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Labels

Priority

Development Team

Corsair

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 27, 2024 at 1:53 PM
Updated December 10, 2024 at 5:15 PM
TestRail: Cases
TestRail: Runs