Done
Details
Assignee
Uladzislau KutarkinUladzislau KutarkinReporter
Kathleen MooreKathleen MoorePriority
P3Story Points
1Sprint
NoneDevelopment Team
CorsairFix versions
Release
Ramsons (R2 2024) Bug FixRCA Group
TBDAffected releases
Quesnelia (R1 2024)TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Uladzislau Kutarkin
Uladzislau KutarkinReporter
Kathleen Moore
Kathleen MoorePriority
Story Points
1
Sprint
None
Development Team
Corsair
Fix versions
Release
Ramsons (R2 2024) Bug Fix
RCA Group
TBD
Affected releases
Quesnelia (R1 2024)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created December 6, 2024 at 1:35 PM
Updated January 11, 2025 at 2:44 PM
Resolved January 9, 2025 at 7:09 PM
When a custom field used in a list is modified (Settings > Users > Custom fields), it breaks much of the functionality for that list.
Steps to reproduce:
Create a single checkbox custom field in Settings > Users > Custom fields
Go to the users app and select that custom field for one or more users
Create a list where the query includes the single checkbox custom field created in step #1
Make sure the single custom field is a visible column and save the list - everything should work as expected through this point
Go to Settings > Users > Custom fields and modify the the single checkbox custom field created in step #1
Confirm changes and save the custom field
Go back to the list created in step #3
Without making any edits, the lists still loads, and the custom field column header still displays
Click ‘Edit query’
Actual results:
An error occurs when the query builder is opened and the app freezes
Edit query
If the user edits the query then
Query box:
Display a warning toast. Message to display is - {fieldName} in your query is unavailable. Please revise your query.
Run & Save query button is disabled until the user removes all deleted fields.
Test query button is disabled until the user removes all deleted fields
Show columns should not display any deleted fields
Once user removes all deleted fields from the query then they should be able to test and save the revised query and list.
And the actions that previously generated an error toast notification should now work as expected on Edit/View List detail records.
Show column should not display any deleted field as an option
Expected outcome:
The query builder loads with the query prepopulated
If a field cannot be prepopulated (it was deleted), it’s removed from the query
The query can be edited
If the user removes any query conditions referring to the missing custom field, the query can be tested / saved
If the user tests the query without removing conditions referring to the missing custom field, an error message is displayed
The app doesn’t freeze if the user clicks the ‘cancel’ button to close the query builder
Proposed dev approach from Zak Burke … it does not handle the situation where
fieldOptions
does not contain a matchingfieldItem
. Since it is permissible to remove custom fields, it feels like this is a straight up bug in the UI. Line 2 and everything after should be fenced off by a conditional likeif (!!fieldItem) { ... }
.Current outcome when ‘Edit query’ is clicked