fix: LEAP-1409: Add preserving hidden filters during filter operations #6782
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ensure hidden filters are retained and correctly processed in filter-related operations. Introduced
_originalFilters
to store and manage filters not editable by the user, preventing their loss during requests.PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made
ex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
Change has impacts in these area(s)
(check all that apply)
Describe the reason for change
We have columns in Data Manager. For some user roles the list of columns is reduced. We can have filters over these columns set by other users. But we cannot do anything with these filters as they are dependent on the non existing for the current user columns.
The previous solution was just filter this filters out of the models. But this approach causes the problem: we do not save this filtered out filters when we adding / deleting / editing other filters an columns.
Storing these filtered out filters somewhere and restoring them on creating a request should help with that.
What alternative approaches were there?
Does this PR introduce a breaking change?
(check only one)
What level of testing was included in the change?
(check all that apply)
Which logical domain(s) does this change affect?
Data Manager
, 'Filers'