feat: add missing modules to pgpm export flow#1197
Merged
Conversation
- Add pgpm-partman to DB_REQUIRED_EXTENSIONS - Add pgpm-uuid and pgpm-partman to PGPM_MODULE_MAP - Rename levels_module -> events_module (with updated fields) - Remove table_template_module (superseded by blueprints) - Add inference_log_module config (partitioned log + daily rollup) - Add rate_limit_meters_module config (state, overrides, window limits) - Add comment noting blueprint tables are intentionally excluded
Contributor
🤖 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:
|
pgpm-uuid is vestigial — no SQL in constructive-db references uuids.* functions, metaschema.control does not require it, and no other pgpm-module depends on it. The uuid_module table uses different mechanisms (metaschema.uuid_seed GUC).
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
Syncs the export flow with the current state of
pgpm-modules/metaschema-modules. Several modules were added, renamed, or removed in the upstream pgpm-modules repo but the export config here was stale.Changes:
pgpm/export/src/export-utils.tspgpm-partmantoDB_REQUIRED_EXTENSIONSpgpm-uuidfromDB_REQUIRED_EXTENSIONS(vestigial — no SQL usesuuids.*functions, metaschema.control doesn't require it)levels_module→events_moduleinMETA_TABLE_ORDER+META_TABLE_CONFIG(with new fields: events/aggregates/types tables, partition config, achievement rewards)table_template_module(superseded by blueprints)inference_log_moduleconfig (partitioned inference log + usage_daily rollup)rate_limit_meters_moduleconfig (state, overrides, window_limits, check function)blueprint_template/blueprint/blueprint_constructionare intentionally excludedpgpm/core/src/modules/modules.ts'pgpm-partman': '@pgpm/partman'toPGPM_MODULE_MAPReview & Testing Checklist for Human
events_modulefields match the actualmetaschema_modules_public.events_moduletable DDLinference_log_moduleandrate_limit_meters_modulefields match their table DDLspgpm exportagainst a provisioned database to confirm the new modules are picked up correctlypgpm-uuidfrom required extensions doesn't break any existing export flowsNotes
blueprint_template,blueprint,blueprint_construction) are intentionally NOT in the export flow — they are runtime-only tables, not exported metadatatable_template_modulewas removed from pgpm-modules (superseded by blueprints) — removed from config with a comment explaining whypgpm-uuidwas removed because: no SQL referencesuuids.*functions,metaschema.controldoesn't list it inrequires, no pgpm-module depends on it. Theuuid_moduleusesmetaschema.uuid_seedGUC instead.pnpm buildat workspace root)Link to Devin session: https://app.devin.ai/sessions/2cd4b3b9432a45acab518af28204ced2
Requested by: @pyramation