Commit b851e6e
Remove dead REST issue-field-value output path
The MinimalIssueFieldValue / MinimalIssueFieldValueSingleSelectOption
types and their populator in convertToMinimalIssue produced a
single_select_option output that is never emitted: GetIssue
unconditionally cleared minimalIssue.IssueFieldValues before marshalling,
and it was the only caller of convertToMinimalIssue.
History: the REST extraction was introduced in #2551 and superseded one
day later by #2558, which switched get_issue to the GraphQL field_values
enrichment path ("The verbose REST IssueFieldValues is always cleared
from the response") to stay consistent with list_issues/search_issues.
The struct + populator were left behind as orphaned code.
This also removes a latent footgun: the struct only modelled
single_select_option (go-github's REST IssueFieldValue has no
multi-select equivalent), so any future code that surfaced it would have
silently dropped multi-select option data.
- Remove MinimalIssueFieldValue + MinimalIssueFieldValueSingleSelectOption
- Remove MinimalIssue.IssueFieldValues field (json: issue_field_values)
- Remove the populator loop in convertToMinimalIssue
- Drop the now-redundant nil assignment in GetIssue
- Drop the two test assertions on the removed field (behaviour is now
structurally guaranteed; the GraphQL field_values assertions remain)
No output shape change: issue_field_values was omitempty and always
empty. The GraphQL field_values path is unaffected. SearchIssueResult's
MarshalJSON still suppresses go-github's own embedded issue_field_values.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6586b84 commit b851e6e
3 files changed
Lines changed: 24 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
877 | | - | |
878 | | - | |
879 | | - | |
| 877 | + | |
| 878 | + | |
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 296 | | |
314 | 297 | | |
315 | 298 | | |
| |||
320 | 303 | | |
321 | 304 | | |
322 | 305 | | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
345 | 327 | | |
346 | 328 | | |
347 | 329 | | |
| |||
526 | 508 | | |
527 | 509 | | |
528 | 510 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | 511 | | |
550 | 512 | | |
551 | 513 | | |
| |||
0 commit comments