Commit c6fa5e9
fix(dashboard): move untracked-display guard into validateWidgetEnums
The isTrackedDisplay check was only applied in buildReplacement, but
validateWidgetEnums is also called early in both edit and add (before
any widget fetching) with the raw flags. Passing --display text --dataset
spans would still throw there, contradicting the documented behavior that
untracked types (text, wheel, rage_and_dead_clicks, agents_traces_table)
"bypass Sentry's dataset system entirely and have no constraints."
Move the guard into validateWidgetEnums itself so the fix applies to all
callers uniformly. buildReplacement can now call validateWidgetEnums
directly without duplicating the logic.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2b80896 commit c6fa5e9
2 files changed
+15
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
393 | 400 | | |
394 | 401 | | |
395 | 402 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 99 | + | |
107 | 100 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 101 | + | |
120 | 102 | | |
121 | 103 | | |
122 | 104 | | |
| |||
0 commit comments