Commit 622a21b
committed
fix(connectors): only flag a Bitbucket listing capped when the cap withheld something
Review round 2.
takeIndexableWithinCap reports capReached as soon as the running total equals
maxItems, which is also true of a listing that ended at exactly that count.
Setting listingCapped there suppressed deletion reconciliation for a complete
listing, so upstream-deleted files and pull requests could stay in the knowledge
base indefinitely. applyMaxItemsCap now takes whether Bitbucket had more content
beyond the page -- a next link, or directories still queued on the frontier --
and flags the listing only when the cap actually withheld something, matching the
Databricks, Google Chat, and Workday connectors.1 parent 5826dd9 commit 622a21b
2 files changed
Lines changed: 54 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
360 | 398 | | |
361 | 399 | | |
362 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
717 | 725 | | |
718 | 726 | | |
719 | 727 | | |
720 | 728 | | |
721 | | - | |
| 729 | + | |
| 730 | + | |
722 | 731 | | |
723 | 732 | | |
724 | 733 | | |
| |||
734 | 743 | | |
735 | 744 | | |
736 | 745 | | |
737 | | - | |
| 746 | + | |
| 747 | + | |
738 | 748 | | |
739 | 749 | | |
740 | 750 | | |
| |||
922 | 932 | | |
923 | 933 | | |
924 | 934 | | |
925 | | - | |
| 935 | + | |
| 936 | + | |
926 | 937 | | |
927 | 938 | | |
928 | 939 | | |
| |||
990 | 1001 | | |
991 | 1002 | | |
992 | 1003 | | |
993 | | - | |
| 1004 | + | |
| 1005 | + | |
994 | 1006 | | |
995 | 1007 | | |
996 | 1008 | | |
| |||
0 commit comments