Closed himdel closed 3 weeks ago
Errored #1984
•
c8cc31be91: Clear all filters - don't overwrite new settings with {} when in default namespa...
Project |
tower-analytics-frontend
|
Branch Review |
pr-1053
|
Run status |
Errored #1984
|
Run duration | 00m 47s |
Commit |
c8cc31be91: Clear all filters - don't overwrite new settings with {} when in default namespa...
|
Committer | Martin Hradil |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
22
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
0
|
View all changes introduced in this branch ↗︎ |
Before: Go to any screen with filters .. filters work; click clear all filters, twice (or once with default filters); filters don't work. Now: filters keep working after resetting filters regardless
Looks like the problem was that when
namespace == DEFAULT_NAMESPACE
(which is the default state), resetting it tonewQueryParams
would never happen, because right after that it would be overwritten by{}
thanks toremoveDefault
. IIUCremoveDefault
should remove the default completely only when not replacing it with a new default, and it seems to work :)