Repository navigation
Re-align stale @objectstack/objectql tests with current overlay registry & sys_metadata schema - #1363
Merged
hotlong merged 2 commits intoMay 27, 2026
Conversation
- Register `function` and `trigger` in protocol-meta-types-rich.test.ts beforeEach so getMetaTypes() includes them in entries (method only returns types present in getRegisteredTypes(), so types must be registered to appear in entries) - This fixes the last failing test: `honours OBJECTSTACK_METADATA_WRITABLE to elevate allowOrgOverride` which needed `functionEntry` to be non-undefined Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
@objectstack/objectql#test(the only failing CI job) blew up the first time theTest Corepaths filter re-engaged after the project-mode/overlay refactor —f0c87d977touchedpackages/**LICENSE files and surfaced ~21 stale fixtures (4 real failures once workspace deps are built).Root cause
ba252da0b(project mode, metadata forms, org overlays) flippedallowOrgOverride: false → trueinDEFAULT_METADATA_TYPE_REGISTRYforobject,field,action,flow,workflow,approval,agent. Whitelist tests still expected those types to be rejected.482eb67cc+feat(metadata): durable sys_metadata_history writesreshapedsys_metadatarows (addedchecksum/created_at/updated_at, droppedscope), split history into a dedicatedsys_metadata_historytable, addedparentVersionoptimistic-concurrency, and stopped wrapping DB errors with"Failed to persist customization overlay…". Persistence assertions never followed.Changes — test files only, no production code touched
overlay-precedence.test.ts— denied list rebuilt around the types that are stillallowOrgOverride: false(trigger,validation,hook,datasource,router,function,service); the "registry-as-source-of-truth" invariant now pins the current allowed/denied split and its plural-form coverage uses a denied type with a realSINGULAR_TO_PLURALentry. Header docstring rewritten so the architectural intent stays accurate.protocol-meta.test.ts— insert/update expectations match the new row shape; update-path tests now pass the correctparentVersionderived from the mocked existing row's checksum; fail-fast tests assert raw DB error propagation (/Connection refused/,/Table not found/) instead of the removed wrapper.protocol-meta-types-rich.test.ts— switched the deny +OBJECTSTACK_METADATA_WRITABLEenv-elevation cases tofunction/trigger(still non-overridable), and registered both inbeforeEachsogetMetaTypes()(which iteratesengine.registry.getRegisteredTypes()) actually surfaces them.sys-metadata-repository.test.ts—put refuses non-allowOrgOverride typescases switched fromobject/flowtotrigger/function.Result
pnpm turbo run test --filter @objectstack/objectql→ 23 files, 371/371 passing.CHANGELOG.mdupdated.