Commit 98846a9
fix(metrics): Remove use-metrics-layer flag from endpoints and snuba signatures (#108752)
## Summary
The `organizations:use-metrics-layer` feature flag is permanently
disabled — it defaults to `False` everywhere and is not enabled for any
organization via flagpole. This PR removes all references from:
- **API endpoints**: `organization_events.py`,
`organization_events_stats.py`, `organization_events_meta.py`,
`organization_events_histogram.py`, `data_export.py`
- **Snuba module function signatures**: All dataset modules
(`discover.py`, `metrics_performance.py`,
`metrics_enhanced_performance.py`, `spans_metrics.py`,
`spans_indexed.py`, `functions.py`, `errors.py`, `transactions.py`,
`profiles.py`, `issue_platform.py`, `entity_subscription.py`,
`types.py`)
- **Other**: `snuba/tasks.py` telemetry tag,
`check_am2_compatibility.py` QueryBuilderConfig kwarg
- **Dead test classes**: 4 `WithMetricLayer` test classes that only
tested the disabled code path
**PR 1 of 3** — follow-up PRs will:
- PR2: Remove from the query builder core (`MetricsQueryBuilder`,
`MetricsLayerDatasetConfig`, etc.)
- PR3: Remove flag registration from `temporary.py` and flagpole config
## Test plan
- [x] `pre-commit run --files` passes on all changed files
- [ ] CI passes
- [ ] Verify no remaining `use_metrics_layer` references in modified
files via grep1 parent 8b239e5 commit 98846a9
File tree
23 files changed
+8
-331
lines changed- src/sentry
- api/endpoints
- data_export/endpoints
- snuba
- tasks
- tests/snuba/api/endpoints
23 files changed
+8
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
274 | 273 | | |
275 | 274 | | |
276 | 275 | | |
277 | | - | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
92 | | - | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
| |||
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | | - | |
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
| |||
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 344 | | |
352 | 345 | | |
353 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | | - | |
280 | 278 | | |
281 | 279 | | |
282 | 280 | | |
| |||
822 | 820 | | |
823 | 821 | | |
824 | 822 | | |
825 | | - | |
826 | 823 | | |
827 | 824 | | |
828 | 825 | | |
| |||
913 | 910 | | |
914 | 911 | | |
915 | 912 | | |
916 | | - | |
917 | 913 | | |
918 | 914 | | |
919 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | 389 | | |
391 | 390 | | |
392 | 391 | | |
| |||
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | 420 | | |
425 | 421 | | |
426 | 422 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | 423 | | |
431 | 424 | | |
432 | 425 | | |
| |||
456 | 449 | | |
457 | 450 | | |
458 | 451 | | |
459 | | - | |
460 | 452 | | |
461 | 453 | | |
462 | 454 | | |
| |||
546 | 538 | | |
547 | 539 | | |
548 | 540 | | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
560 | 548 | | |
561 | 549 | | |
562 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
121 | 119 | | |
122 | 120 | | |
123 | 121 | | |
| |||
0 commit comments