Repository navigation
Commit 055573d
Address Copilot findings: whitespace-only schedule_id and typo
Copilot's remaining suppressed comments (2026-09-18 Lite review) on this
PR:
1. schedule_id validation in Subscriptions.create(), Subscriptions.update(),
and RequestFactory.Subscription.create_req() relied on truthiness, which
lets a whitespace-only id (e.g. " ") through to the wire layer and
produces the same confusing error the None/empty checks exist to avoid.
All three call sites now reject blank-after-strip ids explicitly.
2. Typo: "Susbcription" -> "Subscription" in create()'s no-item error.
The other two Copilot comments (ScheduleItem.from_element list-unwrap in
_parse_element, and the inline-schedule-with-no-id fallback) were already
fixed in a prior commit (1a423a9) on this branch before this pass started.
Adds regression tests for the whitespace-only schedule_id case at both the
endpoint and RequestFactory layers.
Co-Authored-By: Claude Code <noreply@anthropic.com>1 parent 1a423a9 commit 055573d
3 files changed
Lines changed: 47 additions & 6 deletions
File tree
- tableauserverclient/server
- endpoint
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
| 1359 | + | |
| 1360 | + | |
1360 | 1361 | | |
1361 | 1362 | | |
1362 | 1363 | | |
1363 | 1364 | | |
1364 | 1365 | | |
1365 | 1366 | | |
1366 | | - | |
| 1367 | + | |
1367 | 1368 | | |
1368 | 1369 | | |
1369 | 1370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
135 | 159 | | |
136 | 160 | | |
137 | 161 | | |
| |||
223 | 247 | | |
224 | 248 | | |
225 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
226 | 263 | | |
227 | 264 | | |
228 | 265 | | |
| |||
0 commit comments