Commit 3fef503
TUL/fix: address review - only default operator when value has none
Previously getCurrentFilters set operator='equals' on every non-range filter,
even when the URL value already embedded an operator (e.g. "foo,contains"),
which could confuse consumers reading filter.operator directly (e.g. CSV export).
Now default to 'equals' only when no value carries an operator suffix (contains a
comma), matching SearchOptions.toRestUrl. Added a spec fixture for an
operator-embedded value asserting the operator stays unset. Per Copilot review on #1368.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c3a1086 commit 3fef503
2 files changed
Lines changed: 14 additions & 7 deletions
File tree
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| |||
0 commit comments