DanielLeens commented on PR #13716: URL: https://github.com/apache/seatunnel/pull/13716#issuecomment-7249493036
### Implementation Notes and Trade-offs Head: 04be58aa758b77624597dc765b76e6c36f155809 The final scope is eight native Page content/insight families at graph.facebook.com, separate from advertising account reports. The source defaults to explicit v26.0 and supports choosing a supported vN.0. Reusing large deprecated/permission-sensitive SDK field lists was rejected: Page/post defaults remain conservative, native fields and four metric lists are configurable, and complete returned objects remain unchanged. New-plugin output includes Page/parent/record identity and requested-window context without modifying any existing connector format or published state. Field-expanded insight extraction was rejected because its inner pagination can be lost while only the parent feed is paginated. Three ID-only discoveries instead feed direct post/video/reel insight edges, and post insights/comments share discovered feed IDs. Hidden discovery is never output, duplicate IDs expand once and duplicate data remains output. Comments use native filter=stream; recommendations have no fabricated primary key. Silently ignoring optional permission failures was rejected because it can mark an incomplete export successful. Selected-resource failures remain explicit and sanitized. Using row count to stop Graph paging was rejected: privacy filtering permits empty or short pages with next. Native cursor/list next controls continuation; returned URLs are validated and only supported navigation is reconstructed under the fixed host/version/path and stable query. URL credentials are discarded, duplicate/fixed-query changes and cycles fail. Feed time navigation remains supported. Insights time links navigate adjacent date windows rather than additional nodes in the current window. Following them alongside explicit backfill slicing, or following them from a default/lifetime snapshot, was rejected because it can expand or duplicate the requested time scope. Explicit Page Insights ranges use contiguous windows no longer than 90 days; native default windows remain default snapshots. Independent cursor-based Insights pages are still traversed. Window metadata records the requested range, not a local reinterpretation of each metric point. Omitted upper bounds freeze at enumeration and remain unchanged after restoration. Posts default to full feed; an explicit post_start_date enables native creation-time filtering, while hidden comment/insight discovery stays complete. This bounded model deliberately exposes no persistent cross-job watermark or automatic two-day incremental lookback; those remain separate orchestration requirements. Retention, current-day completeness, app permissions and per-version metric support remain provider constraints, not silent fallbacks. Page tokens are used directly. User tokens exchange lazily for the configured Page token at the first read, cache only in reader memory and exchange again after restoration. Tokens use Bearer headers, and returned URL credentials never become requests or checkpoint data. App-secret proof generation and OAuth login/refresh are outside this implementation. Real Page/User-token interoperability and account-specific permissions remain unvalidated without a suitable account. Isolated artifacts keep native semantics out of shared API/engine code while reusing existing HTTP/Jackson versions. Complete responses are validated and canonically fingerprinted before four-row publication. Checkpoints copy frozen query scope, three parent lists, navigation hashes and exact resource/parent/window/page/row positions, excluding tokens, raw URLs, records and trust material. Discovery commits at whole-page completion; restored prefixes are not emitted again, changed full responses fail before suffix output, and terminal restoration sends no request. Direct socket cancellation and independent wire/decoded/deadline/retry limits bound transport work, subject to system DNS behavior. Business regain estimates use the maximum native minutes value; excessive advice fails instead of causing an early retry. Permanent Graph authentication/permission/metric errors are not blindly replayed. Actual validation: scoped Java 11 Spotless apply/check; source self-audit; 26-path/hash/deletion/XML/ASF/whitespace checks; 22 documented types, 27 option tables and registration/state contracts. Fourteen engine methods, five engine savepoint paths and ten packaged modes are authored and none ran locally. Compilation/runtime, real account permissions/token use, metric availability and endpoint variants remain pending GitHub CI or an appropriate account environment. Initial submission/readback is handed off for later CI/comment maintenance. This is not a merge, production-acceptance, complete live-service parity or transaction-snapshot 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]
