feat: sync pgpm modules from constructive-db (partman consumer trigger, jwt current_role_type, module table sync)#94
Open
pyramation wants to merge 6 commits into
Open
Conversation
- partman: add partman_after_insert_partition trigger — parents metaschema partition rows via pg_partman on consumer databases (fixes 'no partition of relation found for row' on redeployed/exported databases) - jwt-claims: add jwt_public.current_role_type - jobs/database-jobs: complete_job requires locked_by = worker_id - metaschema-modules: add resource_module; remove certificate_module, route_module, server_definition_module, server_deployment_module, config_secrets_org_module; sync module table definitions - metaschema-schema: sync table definitions + node_type_registry seed - services: sync revert tree - regenerate sql bundles (kept existing package versions)
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
Full sync of
deploy/,revert/,verify/, andpgpm.plantrees fromconstructive-db/pgpm-modules(source of truth, as of constructive-io/constructive-db#1967 merged). Package versions inpackage.json/.control/Makefileare intentionally left unchanged;sql/bundles regenerated at the existing versions.Key changes:
partman.tg_after_insert_partition()+ triggerpartman_after_insert_partitiononmetaschema_public.partition. This is now the single parenting path viapartman.create_parent_with_retention()on both platform and consumer databases — fixesno partition of relation "audit_log_auth" found for rowon databases deployed from exported packages, where theINSERT ... ON CONFLICT DO NOTHINGpartition registration previously had no listener. Guarded byis_parentedandpartman.part_configso re-inserts are no-ops.jwt_public.current_role_type()(referenced by exported policies but previously missing on consumer deploys).complete_jobnow requiresAND locked_by = worker_id.resource_module(unified K8s resource management); removecertificate_module,route_module,server_definition_module,server_deployment_module,config_secrets_org_module; sync module table definitions + missing revert/verify entries.node_type_registryseed.Link to Devin session: https://app.devin.ai/sessions/7d74797f980143949a673f4bfff58ebe
Requested by: @pyramation