You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e01df46
Browse filesBrowse the repository at this point in the historyBrowse files
test(objectql): pin the flow family's baseline spelling on the booted showcase and the bundled holder reading
- `OVERRIDABLE_BASELINE_PACKAGES` is exported from `@objectstack/objectql`, so
the dogfood pin can hold its spelling of the email service's package equal to
the package the email plugin registers the built-in templates under on this
boot (read back from the registry: the two spellings are pinned together
across the package boundary without either package importing the other).
- Two unit cells read an email template's holder from its member key alone:
a package registering a bundle member through the registry directly (no
install claim) holds the name, and the cold boot reads such a clash from
the member keys as one conflict on the name.
Claude-Session: https://claude.ai/code/session_017xRBcTJTE7kSbcMoJQ4Txf
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/objectql/src/registry-bare-name-one-holder-flow-family.test.ts
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -344,6 +344,34 @@ describe('email_template — the name holds the bundle, and the built-in templat
344
344
);
345
345
});
346
346
347
+
it('a holder is read from its member key alone (no claim): a package registering a bundle member through the registry directly holds the name',async()=>{
348
+
constregistry=newSchemaRegistry();
349
+
registry.logLevel='silent';
350
+
registry.sealBareNameHolders();
351
+
// After the seal, alpha's first registration finds no holder and stores `com.acme.alpha:shared_tpl@zh-CN`.
it('the cold boot reads a bundled clash from the member keys: two packages\' members of one name, registered directly, are one conflict on the name',()=>{
// Unchanged by the rule: the automation engine's precedence still arms one flow, naming both.
188
201
expect(bootLines.some((l)=>l.includes(`Flow name collision: '${FLOW}'`)&&l.includes('com.qa.bare.alpha')&&l.includes('com.qa.bare.beta'))).toBe(true);
@@ -223,7 +236,8 @@ describe('one package holder per flow, webhook, connector and email template nam
223
236
});
224
237
225
238
it('CONTROL — install-local of a package declaring fresh names, and overriding the built-in password-reset template, installs; the send renders the app\'s template',async()=>{
226
-
expect([...OVERRIDABLE_BASELINE_PACKAGES.email_template],'the vocabulary spells the email plugin\'s own package id').toEqual([BUILTIN_EMAIL_TEMPLATES_PACKAGE_ID]);
239
+
constbaseline=builtInTemplatePackage();
240
+
expect([...OVERRIDABLE_BASELINE_PACKAGES.email_template],'the vocabulary spells the package the email plugin registers the built-ins under').toEqual([baseline]);
227
241
const{ status, body }=awaitinstallLocal(inline('epsilon',{
228
242
flows: [flow('epsilon','epsilon_flow')],
229
243
webhooks: [webhook('epsilon','epsilon_hook')],
@@ -235,5 +249,7 @@ describe('one package holder per flow, webhook, connector and email template nam
0 commit comments