DanielLeens commented on PR #13704: URL: https://github.com/apache/seatunnel/pull/13704#issuecomment-7247852231
### Implementation Notes and Trade-offs Head: 50a0d707f5e065e22c3736d7a0bf81256d48b817 Seven resource families have distinct response/continuation contracts. People and membership use native offset arrays; tags, segments, fields and schemas are unpaged collections; account metadata is one object. Reusing one pagination/envelope shape for all of them was rejected because it would invent unsupported query parameters or misread singleton data. Full raw people-page size drives continuation, and over-budget continuation fails rather than truncates. The fixed HTTPS origin uses native X-Encharge-Token for an account-owned integration. Arbitrary URLs, redirects and key-in-query delivery are not used. Anonymous people retain their native IDs without requiring email, and the same person can remain in multiple segments. A separate segment_id column supplies parent ownership without mutating returned JSON. Exact decimal normalization avoids double rounding; precision/scale bounds run before plain-number expansion, preventing extreme exponent IDs from causing disproportionate allocation. The generic HTTP source was considered but does not provide bounded segment discovery or exact dependency/page checkpoint replay. An isolated artifact reuses existing HTTP/Jackson versions and keeps the behavior outside shared engine/API code. Duplicate segment records remain data while discovered parents are unique. Discovery for a page is committed with its completed publication transition, so a partial snapshot keeps preceding identities and a complete-page fingerprint. Replay compares the whole raw response before suffix output or discovery changes. Object-key reordering is accepted; changed content, array order or envelope fields fails. Identity lists are deep-copied for assignment/snapshots. Committed discovery, parent and offset transitions do not replay completed work, and terminal restore issues no request. The documented public /accounts/info view is the default. Silently treating it as field-equivalent to the historical full /accounts object was rejected. The explicit legacy option preserves that separate contract, including returned account credential fields, without an automatic fallback. It is absent from the current public specification and has not been checked against a live account; operators must have compatible access and protect that output. The guides state this boundary rather than claiming current public coverage for the historical endpoint. Actual validation: scoped Java 11 Spotless apply/check, source review, exact path/hash/deletion/ASF/whitespace checks, 22 type Javadocs, 14 option tables and full dependency/SPI/packaging/state contracts. Thirteen engine methods and eight packaged modes were authored, including four real savepoint paths. None ran locally. Compilation, runtime and live-provider interoperability remain pending GitHub CI; subsequent CI/comment maintenance is handed off after this initial readback. Account permissions and mutable offset lists remain external constraints, and no merge, production-readiness, transaction-snapshot or cross-job watermark claim is made. -- 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]
