Repository navigation
Commit aea35ad
committed
fix(service-analytics): state that the dataset door judges a saved dataset's field too, and pin the saved branch
The `/analytics/dataset/query` route's `body.datasetName` branch loads a
saved dataset from metadata and calls the same `queryDataset`, and the build
probe does too, so the door judges a saved dataset's own `field` text exactly
as an inline one's. Behaviour is unchanged; the docblock, the door test's
header and the changeset said a registered dataset never reaches this door,
which holds only for one registered through the configuration door and
queried by cube name.
- analytics-service.ts: correct the docblock (every branch that supplies the
dataset; author-time refusal is the dataset schema retirement's job) and
rename the private method to assertDatasetFieldsJudgeable.
- changeset: the BREAKING note covers saved datasets with a non-column
field; no shipped dataset carries one.
- rest: pin the saved branch through the real route and driver — a saved
dataset with a non-column field is refused 403 with nothing executed, and
a saved plain-column dataset is still answered.
Claude-Session: https://claude.ai/code/session_01MRdbfpy4sQT8bUjmMhxsN7
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7f04690 commit aea35ad
4 files changed
Lines changed: 96 additions & 40 deletions
File tree
- .changeset
- packages
- rest/src
- services/service-analytics/src
- __tests__
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
Lines changed: 41 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | | - | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
244 | 281 | | |
245 | 282 | | |
246 | 283 | | |
| |||
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
129 | | - | |
| 134 | + | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| |||
Lines changed: 38 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
2015 | | - | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2016 | 2030 | | |
2017 | 2031 | | |
2018 | 2032 | | |
2019 | 2033 | | |
2020 | | - | |
2021 | | - | |
2022 | | - | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2023 | 2037 | | |
2024 | 2038 | | |
2025 | 2039 | | |
2026 | | - | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
2030 | 2044 | | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2034 | 2048 | | |
2035 | 2049 | | |
2036 | 2050 | | |
2037 | 2051 | | |
2038 | | - | |
| 2052 | + | |
2039 | 2053 | | |
2040 | 2054 | | |
2041 | 2055 | | |
| |||
2369 | 2383 | | |
2370 | 2384 | | |
2371 | 2385 | | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2378 | 2392 | | |
2379 | 2393 | | |
2380 | 2394 | | |
| |||
0 commit comments