Skip to content

Commit 0ca1837

Browse files
committed
chore(platform-objects): regenerate the metadata-forms bundles for the object_extension registry row
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 53f98fb commit 0ca1837

8 files changed

Lines changed: 24 additions & 0 deletions

‎.changeset/28574-object-extension-package-item.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"@objectstack/objectql": minor
55
"@objectstack/metadata-protocol": minor
66
"@objectstack/runtime": minor
7+
"@objectstack/platform-objects": minor
78
---
89

910
feat(metadata-protocol,objectql): an object extension is an item of a writable package — saved, published and exported through the existing doors
@@ -17,6 +18,7 @@ A package can now add fields and rules to an object another package defines by s
1718
- **The doors.** Draft, publish, history restore and delete are the doors every item uses. The save, publish and restore doors refuse, with `VALIDATION_ERROR` / 400 and an issue path: a write bound to no package; `defaultRowScope` or `membershipKeys` in the body (the registry's own sentences); a row filed under a name other than its `extend`; an unregistered target; a target outside the package's dependency closure (with the closure prescription the other save doors print); and a `.custom` field without the `__c` suffix (the existing `__c` judge). A body the schema refuses answers 422 `INVALID_METADATA` with the schema's issues. No error code is added.
1819
- **The registry** (`@objectstack/objectql`). A published row registers its whole parsed body as the package's `'extend'` contributor (`SchemaRegistry.registerObjectExtension`), so its fields, validations and indexes appear on every read of the object, and a publish adds the column to the target's table. Every stored-row sync re-registers it (boot, write-through, read hydration), and deleting the row or uninstalling the package withdraws it (`SchemaRegistry.withdrawObjectExtension`). What a manifest's `objectExtensions` register is unchanged.
1920
- **The export** (`@objectstack/runtime`). `GET /packages/:id/export` carries each of the package's extension items as an `objectExtensions` entry that re-installs. A package's `objects` are now only the objects it owns: an object the package extends is no longer exported as an `'own'` object, which re-install refused with `ObjectOwnershipConflictError`.
21+
- **`@objectstack/platform-objects`**: the metadata-forms translation bundles gain the type's `label` and `description` (regenerated; the non-English locales carry the English text until translated).
2022
- **`@objectstack/lint/runtime`** exports `closureDependencyRemedy`, the closure prescription the save doors print.
2123

2224
Two costs, both on purpose: `/meta/types` serves no JSON schema for `object_extension`, and a draft carries no `_diagnostics` badge, because the type is not bound in `BUILTIN_METADATA_TYPE_SCHEMAS` (that map requires the ADR-0010 envelope, which would change the schema a manifest's `objectExtensions` parse with).

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
515515
}
516516
}
517517
},
518+
object_extension: {
519+
label: "Object Extension",
520+
description: "Fields and rules a package adds to an object another package defines"
521+
},
518522
field: {
519523
label: "Field",
520524
sections: {

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
515515
}
516516
}
517517
},
518+
object_extension: {
519+
label: "Object Extension",
520+
description: "Fields and rules a package adds to an object another package defines"
521+
},
518522
field: {
519523
label: "Campo",
520524
sections: {

‎packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919

2020
export const esESGeneratedSourceHashes: Readonly<Record<string, string>> = {
21+
"metadataForms.object_extension.description": "431ee9da2d998151",
22+
"metadataForms.object_extension.label": "61e360eb20e33224",
2123
"objects.sys_email.fields.cc_addresses.label": "02946d952cf15623",
2224
"objects.sys_email.fields.error.label": "786fed84bd8d5a32",
2325
"objects.sys_email.fields.message_id.label": "14cd089a4062f4b1",

‎packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
515515
}
516516
}
517517
},
518+
object_extension: {
519+
label: "Object Extension",
520+
description: "Fields and rules a package adds to an object another package defines"
521+
},
518522
field: {
519523
label: "フィールド",
520524
sections: {

‎packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919

2020
export const jaJPGeneratedSourceHashes: Readonly<Record<string, string>> = {
21+
"metadataForms.object_extension.description": "431ee9da2d998151",
22+
"metadataForms.object_extension.label": "61e360eb20e33224",
2123
"objects.sys_email.fields.bcc_addresses.label": "8674899b7b6d5126",
2224
"objects.sys_email.fields.cc_addresses.label": "02946d952cf15623",
2325
"objects.sys_email.fields.message_id.label": "14cd089a4062f4b1",

‎packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
515515
}
516516
}
517517
},
518+
object_extension: {
519+
label: "Object Extension",
520+
description: "Fields and rules a package adds to an object another package defines"
521+
},
518522
field: {
519523
label: "字段",
520524
sections: {

‎packages/platform-objects/src/apps/translations/zh-CN.source-hashes.generated.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919

2020
export const zhCNGeneratedSourceHashes: Readonly<Record<string, string>> = {
21+
"metadataForms.object_extension.description": "431ee9da2d998151",
22+
"metadataForms.object_extension.label": "61e360eb20e33224",
2123
"objects.sys_email.fields.message_id.label": "14cd089a4062f4b1",
2224
"objects.sys_email_template.fields.id.label": "00b0385c9c152888",
2325
"objects.sys_exchange_rate.fields.id.label": "00b0385c9c152888",

0 commit comments

Comments
 (0)