Commit ebbf21b
committed
When users pass `org/project/FULL-SHORT-ID` (e.g., `sentry/cli/CLI-A1`),
parseMultiSlashIssueArg would split the short ID on its last dash and
recombine it as a suffix. This caused expandToFullShortId to produce a
double-prefixed ID like `CLI-CLI-A1`.
Similarly, passing `org/project/NUMERIC-ID` (e.g., `fever/cashless/6918259357`)
treated the numeric ID as a suffix, producing nonsensical short IDs like
`CASHLESS-6918259357`.
Fix:
- Detect pure numeric remainders and return explicit-org-numeric type
- When the remainder is a full short ID whose prefix matches the project
slug, extract just the suffix (strip the redundant project prefix)
Fixes CLI-KC (33 events, escalating), CLI-B6 (3 events, 2 users).
1 parent a03a9d1 commit ebbf21b
2 files changed
+85
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
610 | 615 | | |
611 | 616 | | |
612 | 617 | | |
| |||
626 | 631 | | |
627 | 632 | | |
628 | 633 | | |
629 | | - | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
630 | 641 | | |
631 | 642 | | |
632 | | - | |
| 643 | + | |
633 | 644 | | |
634 | | - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
635 | 662 | | |
636 | 663 | | |
637 | 664 | | |
638 | 665 | | |
639 | | - | |
| 666 | + | |
640 | 667 | | |
641 | 668 | | |
642 | 669 | | |
643 | 670 | | |
644 | | - | |
| 671 | + | |
645 | 672 | | |
646 | 673 | | |
647 | 674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | | - | |
472 | | - | |
| 471 | + | |
473 | 472 | | |
474 | 473 | | |
475 | 474 | | |
476 | | - | |
| 475 | + | |
477 | 476 | | |
478 | | - | |
| 477 | + | |
479 | 478 | | |
480 | | - | |
481 | | - | |
| 479 | + | |
482 | 480 | | |
483 | 481 | | |
484 | 482 | | |
485 | | - | |
| 483 | + | |
486 | 484 | | |
487 | 485 | | |
488 | 486 | | |
| |||
491 | 489 | | |
492 | 490 | | |
493 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
494 | 538 | | |
495 | 539 | | |
496 | 540 | | |
| |||
0 commit comments