Conversation
feat(postgraphile)!: migrate to v5
## [11.0.0-beta.1](10.0.3...11.0.0-beta.1) (2026-02-20) ### ⚠ BREAKING CHANGES * **postgraphile:** migrate to v5 ### Features * **postgraphile:** migrate to v5 ([a16af50](a16af50)) ### Performance Improvements * **index:** add missing ([9e92140](9e92140))
feat(jwt)!: rework mutation
## [11.0.0-beta.2](11.0.0-beta.1...11.0.0-beta.2) (2026-03-02) ### ⚠ BREAKING CHANGES * **jwt:** rework mutation ### Features * **jwt:** rework mutation ([d40493c](d40493c)) ### Bug Fixes * schedule release ([4ae70d0](4ae70d0)) * schedule release ([31be85a](31be85a)) * schedule release ([6e6e818](6e6e818))
|
🎉 This PR is included in version 11.0.0-beta.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
There was a problem hiding this comment.
Pull request overview
Release prep for v11 (beta.2) that aligns the database schema/tests with the PostGraphile v5 migration and JWT mutation rework, and adds a large set of missing indexes for performance.
Changes:
- Replace deprecated
@omit ...comment directives with PostGraphile v5@behavior ...directives across the schema. - Rework JWT mutation functions (remove
event_unlock, addjwt_update_guest_add, convert JWT functions toLANGUAGE sql, adjust JWT table PK strategy). - Add many btree indexes for common FK/filter columns and tighten the test that checks for missing FK indexes.
Reviewed changes
Copilot reviewed 48 out of 48 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| test/logic/utility/database/index.sql | Turns missing-FK-index detection into a hard failure (RAISE EXCEPTION). |
| test/logic/scenario/database/index_missing.sql | Removes the dedicated “missing index” scenario script. |
| test/logic/main.sql | Stops including the removed index-missing scenario. |
| test/fixture/schema_vibetype.definition.sql | Updates fixture schema for @behavior, JWT function rewrites, JWT table id strategy, and adds many indexes. |
| src/verify/function_jwt_update_guest_add.sql | Verifies EXECUTE privileges for the renamed/replaced guest-claim function. |
| src/sqitch.plan | Updates plan ordering and replaces function_event_unlock with function_jwt_update_guest_add. |
| src/revert/function_jwt_update_guest_add.sql | Adds revert script for new jwt_update_guest_add function. |
| src/revert/function_event_unlock.sql | Removes revert script for deleted event_unlock. |
| src/deploy/table_upload.sql | Adds index on created_by and updates PostGraphile behavior comments. |
| src/deploy/table_report.sql | Adds several indexes for report lookup columns and updates behavior comments. |
| src/deploy/table_profile_picture.sql | Adds index on upload_id and updates behavior comments. |
| src/deploy/table_preference_event_size.sql | Adds index on account_id and updates behavior comments. |
| src/deploy/table_preference_event_location.sql | Adds index on created_by and updates behavior comments. |
| src/deploy/table_preference_event_format.sql | Adds indexes and keeps preference table definitions aligned with new behavior annotations. |
| src/deploy/table_preference_event_category.sql | Adds indexes and keeps preference table definitions aligned with new behavior annotations. |
| src/deploy/table_legal_term_acceptance.sql | Adds indexes on FK columns and updates behavior comments. |
| src/deploy/table_legal_term.sql | Updates PostGraphile behavior comment syntax. |
| src/deploy/table_jwt.sql | Changes JWT table PK column from generated-from-token to DEFAULT gen_random_uuid(). |
| src/deploy/table_guest.sql | Adds FK-related indexes and updates behavior comments. |
| src/deploy/table_friendship.sql | Adds participant indexes and updates behavior comments. |
| src/deploy/table_event_upload.sql | Adds index on upload_id and updates behavior comments. |
| src/deploy/table_event_recommendation.sql | Adds indexes for recommendation lookup paths. |
| src/deploy/table_event_format_mapping.sql | Adds indexes for mapping lookups. |
| src/deploy/table_event_format.sql | Updates PostGraphile behavior comment syntax. |
| src/deploy/table_event_favorite.sql | Adds indexes for favorite lookups and updates behavior comments. |
| src/deploy/table_event_category_mapping.sql | Adds indexes for mapping lookups. |
| src/deploy/table_event_category.sql | Updates PostGraphile behavior comment syntax. |
| src/deploy/table_event_app.sql | Adds indexes for app/event lookups and updates behavior comments. |
| src/deploy/table_event.sql | Adds several event indexes and updates behavior comments. |
| src/deploy/table_device.sql | Adds index on created_by and updates behavior comments. |
| src/deploy/table_contact.sql | Adds several contact indexes and updates behavior comments. |
| src/deploy/table_attendance.sql | Updates PostGraphile behavior comment syntax for attendance columns/table. |
| src/deploy/table_app.sql | Updates PostGraphile behavior comment syntax. |
| src/deploy/table_address.sql | Updates PostGraphile behavior comment syntax for metadata columns. |
| src/deploy/table_achievement.sql | Adds index on account_id. |
| src/deploy/table_account_social_network.sql | Adds index on account_id. |
| src/deploy/table_account_public.sql | Updates PostGraphile behavior comment syntax. |
| src/deploy/table_account_block.sql | Adds indexes for block lookups and updates behavior comments. |
| src/deploy/function_jwt_update_guest_add.sql | Introduces new SQL JWT guest-claim upsert function (replacement for event_unlock). |
| src/deploy/function_jwt_update_attendance_add.sql | Rewrites attendance-claim mutation to SQL and upsert-style JWT persistence. |
| src/deploy/function_jwt_update.sql | Rewrites refresh logic to SQL CTE style. |
| src/deploy/function_jwt_create.sql | Rewrites authentication to SQL CTE style and changes failure signaling semantics. |
| src/deploy/function_guest_claim_array.sql | Switches claim parsing to JSON-based extraction and refactors filtering CTEs. |
| src/deploy/function_event_unlock.sql | Removes event_unlock deploy script. |
| src/deploy/function_attendance_claim_array.sql | Switches claim parsing to JSON-based extraction and refactors filtering CTEs. |
| package.json | Bumps package version to 11.0.0-beta.2. |
| CHANGELOG.md | Adds v11 beta release notes entries. |
| .vscode/settings.json | Simplifies formatter settings to a global default formatter. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
test(performance): benchmark
## [11.0.0-beta.3](11.0.0-beta.2...11.0.0-beta.3) (2026-03-09) ### Performance Improvements * inline functions ([8ea356a](8ea356a))
|
🎉 This PR is included in version 11.0.0-beta.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Database Query Performance✅ No significant regressions detected
Details
|
docs(agents): add instructions
## [11.0.0-beta.4](11.0.0-beta.3...11.0.0-beta.4) (2026-04-03) ### Bug Fixes * schedule release ([859e714](859e714)) * schedule release ([052f309](052f309))
|
🎉 This PR is included in version 11.0.0-beta.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 73 out of 73 changed files in this pull request and generated 5 comments.
Comments suppressed due to low confidence (1)
src/deploy/table_jwt.sql:9
vibetype_private.jwt.idis described as the token identifier (jti), but the table now definesid uuid PRIMARY KEY DEFAULT gen_random_uuid()which allowsidto diverge from(token).jtiif any insert omitsidor updatestoken.jti. If the intent is still “id == jti”, consider enforcing it explicitly (e.g., remove the default and always insert id, or add a CHECK constraint tyingidto(token).jti) to prevent silent inconsistencies.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🎉 This PR is included in version 11.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🏎️ Performance