Skip to content

refactor(fact-channels): migrate copy_statement_data to the FactChannel registry (Part of #3383) - #7303

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3383-20261031T1224Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/3383-20261031T1224Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3383 (slice 14): migrate copy_statement_data (#4457) to the FactChannel registry.

Changes

  • gitgalaxy/core/fact_channels.py: copy_statement entry (payload_key section_copies, ir_field copy_statements): DDL, indexes, insert, restore. Schema text and row order unchanged.
  • gitgalaxy/recorders/record_keeper.py: inline DDL and _insert_per_file_child call replaced by create_channel_table(cursor, "copy_statement", ...); insert iterates the registry.
  • Recipe table row in how_to_add_a_fact_channel.md, copy_statement_data section in recorders/README.md.
  • tests/core_engine/test_fact_channels.py: table leaves the unmigrated sets; new round-trip test over every payload key (incl. NULLs).
  • galaxy_ir.py: one SCOPE-comment line. test_every_channel_names_its_galaxy_ir_field_and_loader requires the table in SCOPE, so this 6th hand-written file is atomic with the migration (one comment line, no logic).

Behaviour note: the table previously had no delta-scan restore (the old rehydrator never read it), so an incremental scan dropped unchanged files' section_copies. The registry entry restores it (mandatory for a channel), which fixes that.

File-cap exception: the 6th file is a one-line SCOPE comment in galaxy_ir.py that the registry test requires for any channel (mechanical, no logic).

Class / Sibling gaps

Class: per-file fact tables still hand-wired outside the FactChannel registry, tracked by _UNMIGRATED_IR_TABLES in test_fact_channels.py. This PR migrates copy_statement_data (shares the per-file mechanism). Sibling gaps (each needs its own entry, recipe row and README section): special_names_data, compiler_options_data, ims_gen_data, dli_call_data, entry_point_data, job_flow_data, file_control_data, vsam_define_data, uow_handler_data, mq_call_data, job_submit_data (source: that set).

Remaining slices

The 11 tables above, one or two per PR.

Gates

pr_gates --fast 9/9, --ratchets 9/9 pass; crucible_check.py (both legs) PASS with no re-bless; fact-channel, 4457 and quoted-copy tests pass.

🤖 Generated with Claude Code

…el registry (Part of #3383)

DDL, indexes and insert now come from one registry entry (payload_key section_copies).
The table had no delta-scan restore: the entry adds one, so an incremental scan keeps
a unchanged file's section COPY ... REPLACING statements. Recipe row, recorders README
section and a round-trip test added; galaxy_ir SCOPE names the table (the registry test
requires it).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 12:42
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 13:00
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 34159df into main Oct 31, 2026
113 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/3383-20261031T1224Z branch October 31, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant