Repository navigation
refactor(fact-channels): migrate copy_statement_data to the FactChannel registry (Part of #3383) - #7303
Merged
Conversation
…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]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3383 (slice 14): migrate
copy_statement_data(#4457) to the FactChannel registry.Changes
gitgalaxy/core/fact_channels.py:copy_statemententry (payload_keysection_copies, ir_fieldcopy_statements): DDL, indexes, insert, restore. Schema text and row order unchanged.gitgalaxy/recorders/record_keeper.py: inline DDL and_insert_per_file_childcall replaced bycreate_channel_table(cursor, "copy_statement", ...); insert iterates the registry.how_to_add_a_fact_channel.md,copy_statement_datasection inrecorders/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_loaderrequires 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_TABLESintest_fact_channels.py. This PR migratescopy_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 --fast9/9,--ratchets9/9 pass;crucible_check.py(both legs) PASS with no re-bless; fact-channel, 4457 and quoted-copy tests pass.🤖 Generated with Claude Code