Commit bf2963c
committed
feat: add _partitions_observed tracking via observe() for in_progress/pending distinction
- Add _partitions_observed: set[str] to track partitions where observe() has been called
- Update state property to emit 4 fields: in_progress, completed, expected, is_partition_discovery_complete
- num_partitions_in_progress = len(observed) - completed (worker started but not finished)
- Dropped num_partitions_not_started (derivable from expected - in_progress - completed)
- _cleanup_if_done adds partition to observed set to prevent negative in_progress
- Updated all test assertions for new semantics1 parent cfb4543 commit bf2963c
2 files changed
Lines changed: 23 additions & 8 deletions
File tree
- airbyte_cdk/sources/declarative/incremental
- unit_tests/sources/declarative/incremental
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| 229 | + | |
226 | 230 | | |
227 | | - | |
228 | | - | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
552 | 555 | | |
553 | 556 | | |
554 | 557 | | |
| 558 | + | |
| 559 | + | |
555 | 560 | | |
556 | 561 | | |
557 | | - | |
558 | | - | |
559 | | - | |
| 562 | + | |
560 | 563 | | |
561 | 564 | | |
562 | 565 | | |
| |||
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| 587 | + | |
| 588 | + | |
584 | 589 | | |
585 | 590 | | |
586 | 591 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
408 | 409 | | |
409 | 410 | | |
410 | | - | |
| 411 | + | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| |||
3695 | 3697 | | |
3696 | 3698 | | |
3697 | 3699 | | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
3698 | 3706 | | |
3699 | 3707 | | |
3700 | 3708 | | |
| |||
3785 | 3793 | | |
3786 | 3794 | | |
3787 | 3795 | | |
3788 | | - | |
| 3796 | + | |
| 3797 | + | |
3789 | 3798 | | |
3790 | 3799 | | |
3791 | 3800 | | |
| |||
3887 | 3896 | | |
3888 | 3897 | | |
3889 | 3898 | | |
3890 | | - | |
| 3899 | + | |
| 3900 | + | |
3891 | 3901 | | |
3892 | 3902 | | |
3893 | 3903 | | |
| |||
0 commit comments