DanielLeens commented on PR #13696: URL: https://github.com/apache/seatunnel/pull/13696#issuecomment-7246429971
### Implementation Notes and Trade-offs Head: 7686f49bd9711c022c652954f6566e6cc5e2d156 The source selects one of seven native resources. Promotion-scoped resources traverse all accessible promotion IDs before reading each child collection. The ranking endpoint is singular and returns the provider's default overall array of up to 25 users. The other collections follow an actual returned next_cursor; the source does not invent a continuation from a full or empty page. The connector keeps one parent page and one result page resident, publishes at most 32 rows per poll, and advances output and state under the collector checkpoint lock. Network work runs outside that lock. Checkpoint state retains immutable cursor history and digests without response rows or tokens. Parent discovery fingerprints ordered identities and the continuation; result pages fingerprint complete ordered content and the cursor. Restoration fails before suffix output when those saved coordinates change. Completed state restores without API traffic. A generic HTTP connector was considered, but would not carry native promotion traversal, the two-level checkpoint boundary or ranking response semantics. Filtering or flattening provider JSON would lose optional/nested fields, so complete records are emitted with separate entity and promotion IDs. The isolated artifact reuses existing managed HTTP and shaded JSON dependencies instead of introducing an SDK or changing shared request behavior. The source uses fixed-origin HTTPS Bearer GET requests with hostname verification, bounded attempts/deadlines, cancellation, and per-reader token pacing. Server-directed retry delays share the request deadline. Malformed successful payloads, unsupported media/charset, corrupt gzip and truncated successful bodies fail rather than replaying a partially received success. Unknown provider error bodies and tokens are excluded from diagnostics. Account permissions, workspace quota shared with other jobs, and live-list mutations remain external constraints. Actual validation: Java 11 scoped Spotless apply/check, source review, exact path/hash/whitespace/ASF checks, type Javadocs, configuration and registration checks. Seventeen engine test methods and seven packaged-reader modes were authored, with two real savepoint paths. None ran locally. Compilation, fixture interoperability, runtime correctness and live-provider access remain unverified pending GitHub CI. The initial PR is handed off for subsequent CI/comment maintenance without a merge or production-readiness claim. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
