Repository navigation
Commit 4ecede5
committed
test(api): cover the CRE.id tie-break in _root_cres_query's ordering
Same gap as the all_cres test on #1060: every ordering fixture used a
distinct external_id, so the test passed whether or not the sort carried
its CRE.id half. external_id is not unique on its own -- the constraint is
on (name, external_id) -- so ties are possible and the tie-break is what
makes the order total.
Two root CREs share an external_id here and are inserted in the opposite
order to their primary keys, which are fixed rather than generated.
Dropping CRE.id from the sort now fails the test.1 parent 9e2582a commit 4ecede5
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
628 | 655 | | |
629 | 656 | | |
630 | 657 | | |
| |||
0 commit comments