DanielLeens commented on PR #13702: URL: https://github.com/apache/seatunnel/pull/13702#issuecomment-7247598376
### Implementation Notes and Trade-offs Head: a20401aab60c30deb27e5e37544e0aaed4ff9445 The source implements ten native v1 read collections, including paginated pay-detail history and employee-level certification/custom-field reads. Generic HTTP configuration was considered but does not carry native refresh, dependent discovery or exact checkpoint replay. An independent module keeps these semantics out of shared engine/connector APIs while reusing existing HTTP/Jackson versions. Organisation and employee list requests discover actual ownership. A Cartesian product of unrelated configured IDs was rejected because it can query an employee under the wrong organisation. Optional organisation_ids/employee_ids preserve explicit subsets without inventing relationships. Unselected dependencies do not emit records. Canonical UUID validation prevents IDs becoming arbitrary request paths, and duplicate parent IDs do not expand children repeatedly. The combined discovery set has an explicit max_subjects cap checked before any row from the page is published; over-budget discovery fails rather than truncates. Official singular item_per_page/page_index and integral total metadata govern pagination. Short/empty intermediate pages continue according to total_pages; missing, inconsistent or over-budget metadata fails before output. Resource GET paths are constructed from the selected native resource and validated parent IDs; returned record URLs are never followed. Complete native JSON is retained without DTO projection or numeric narrowing. The provider's refresh contract puts grant_type/refresh_token in the token query and client_id/client_secret in a URL-encoded form body, without Basic authentication. The reader uses the latest returned refresh token for subsequent renewals. Restore relies on the provider's documented reusable seed; tokens are not placed in checkpoints or a newly introduced credential file. Unknown token POST outcomes fail, while only explicit token throttling permits replay. Data retries and one forced 401 renewal remain bounded by the page deadline. Revoked seeds or a change in provider reuse guarantees require reauthorization. Network work never holds checkpoint locks. Discovery lists are committed with the completed publication transition; a partial checkpoint keeps the preceding discovery set plus its complete-page digest and published row position. Replay validates the entire raw page, including excluded records and metadata, before suffix output or discovery changes. Object-key reordering is accepted, while changed data/array order/metadata is rejected. Assignment/snapshots copy mutable identity lists. Committed discovery, parent and page progress is retained; terminal recovery sends neither OAuth nor API requests. Scope binds application/seed/resources/selectors/page size and permits rotating the same application's client secret. Actual validation: scoped Java 11 Spotless apply/check, source review, exact path/hash/deletion/ASF/whitespace checks, 23 type Javadocs, 16 option tables and full dependency/SPI/packaging/state contracts. Fifteen engine methods and eight packaged modes were authored, including five real savepoint paths. They were not run locally. Compilation, runtime and live-account interoperability remain pending GitHub CI. Permissions, SSO consent, subscription availability and mutable upstream lists remain external constraints; no merge, production-readiness, transaction-snapshot or cross-job watermark claim is made. Subsequent CI/comment maintenance is handed off after the initial readback. -- 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]
