Skip to content

Commit 5fccd12

Browse files
committed
refactor(examples): every example-authored metadata name carries its package namespace
Ruling C on #30798, phase 2: app-todo (20 names), app-crm (6), app-showcase (12) and app-multi-package (1) now spell every package-authored name `<namespace>_<name>`, so `os lint`'s `naming/namespace-prefix` reports 0 bare names in each. Every reference that spells a renamed name moves with it: dataset, report and dashboard refs, app navigation, flow and sharing recipients, `position:` actor ids, seed position rows, translation keys, the example and dogfood tests, and the QA platform checklist. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cyadQ5Zhih2y1GNTQm
1 parent 6bc3df3 commit 5fccd12

75 files changed

Lines changed: 318 additions & 316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/qa/platform-checklist/areas/access-security.json‎

Lines changed: 15 additions & 15 deletions
Large diffs are not rendered by default.

‎docs/qa/platform-checklist/areas/api-backend.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,14 +2736,14 @@
27362736
"surface": "api",
27372737
"personas": [
27382738
"admin, authenticated — the live-boot half",
2739-
"a restricted member who cannot read every field of showcase_project — a member bound to the client_liaison position (showcase_client_liaison set: budget, budget_remaining and spent unreadable) — the masking clause is only observable as a non-admin",
2739+
"a restricted member who cannot read every field of showcase_project — a member bound to the showcase_client_liaison position (showcase_client_liaison set: budget, budget_remaining and spent unreadable) — the masking clause is only observable as a non-admin",
27402740
"no persona for the variant half: a non-default `metadata` block is authorable only by a programmatic embedder (knownGaps)"
27412741
],
27422742
"fixtures": {
27432743
"app": "showcase",
27442744
"requires": [
27452745
"a stock showcase boot for the default-config half (prefix /meta, cache on, masking ON by default)",
2746-
"a persona whose field-level security hides at least one field of a served object — on stock that is the client_liaison position's showcase_client_liaison set, which withholds showcase_project.budget, .spent and .budget_remaining (readable:false); no stock persona carries FLS on any showcase_account field, so a showcase_account diff is empty for everyone. Without such a persona the masking clause scores blocked(fixture), never green",
2746+
"a persona whose field-level security hides at least one field of a served object — on stock that is the showcase_client_liaison position's showcase_client_liaison set, which withholds showcase_project.budget, .spent and .budget_remaining (readable:false); no stock persona carries FLS on any showcase_account field, so a showcase_account diff is empty for everyone. Without such a persona the masking clause scores blocked(fixture), never green",
27472747
"a scratch vitest harness in packages/rest for the variant half (construct, registerRoutes(), getRoutes())"
27482748
],
27492749
"knownGaps": [
@@ -2754,7 +2754,7 @@
27542754
"steps": [
27552755
"boot the showcase on its own port and DB; as admin fire the default-prefix metadata mounts and capture status: GET /api/v1/meta, /meta/types, /meta/diagnostics, /meta/_drafts, GET /meta/object, GET /meta/object/showcase_task, /meta/object/showcase_task/references, /meta/object/showcase_task/layers, /meta/book/<a seeded book>/tree; fire the routing-404 control alongside",
27562756
"GET /api/v1/discovery and read routes.metadata — it must equal the base plus the configured prefix",
2757-
"as the restricted persona (a member bound to the client_liaison position) GET /api/v1/meta/object/showcase_project and diff the served fields against the admin's copy of the same document",
2757+
"as the restricted persona (a member bound to the showcase_client_liaison position) GET /api/v1/meta/object/showcase_project and diff the served fields against the admin's copy of the same document",
27582758
"harness: construct with { metadata: { prefix: '/metadata' } } and confirm every metadata mount re-bases and the discovery body advertises the new prefix",
27592759
"harness: construct with { metadata: { endpoints: { types: false } } } — GET {prefix} and GET {prefix}/types both disappear (one handler, two paths)",
27602760
"harness: construct with { metadata: { endpoints: { items: false } } } and enumerate what leaves: GET {prefix}/:type and NOTHING else — exactly the one mount its describe() names (#15542 moved the whole-store family off this switch; a run that still sees /diagnostics, /_drafts or POST /_migrate-stored leave with it is the old radius returning)",
@@ -3224,7 +3224,7 @@
32243224
"GET /api/v1/meta/email_template/NAME?member=zh-CN; GET /api/v1/meta/object/showcase_task?member=x",
32253225
"GET /api/v1/meta/object/showcase_task?memeber=x (typo)",
32263226
"GET /api/v1/meta/view?package=all vs GET /api/v1/meta/view",
3227-
"as a member whose FLS hides a field F: the stock showcase declares field-level security on showcase_project only (showcase_client_liaison hides budget, budget_remaining and spent), and no demo persona holds the client_liaison position, so mint the member (POST /api/v1/auth/admin/create-user, then the password change) and bind it with a sys_user_position row for client_liaison; GET /api/v1/meta/object/showcase_project and read sortability for budget; GET /api/v1/data/showcase_project?sort=budget"
3227+
"as a member whose FLS hides a field F: the stock showcase declares field-level security on showcase_project only (showcase_client_liaison hides budget, budget_remaining and spent), and no demo persona holds the showcase_client_liaison position, so mint the member (POST /api/v1/auth/admin/create-user, then the password change) and bind it with a sys_user_position row for client_liaison; GET /api/v1/meta/object/showcase_project and read sortability for budget; GET /api/v1/data/showcase_project?sort=budget"
32283228
],
32293229
"acceptance": [
32303230
{
@@ -3254,7 +3254,7 @@
32543254
{
32553255
"clause": "for the FLS-restricted caller F is ABSENT from sortability.fields (never offered — it is not listed with sortable: false) and the data sort on F is 403 — the two agree",
32563256
"oracle": "api",
3257-
"verify": "sortability.fields without F + the data answer, for a member bound to the client_liaison position. meta-read-doors-live.dogfood.test.ts asserts both halves over HTTP on a booted showcase: budget absent from sortability.fields (name listed sortable; the admin's definition offers budget, the CONTROL), and GET /api/v1/data/showcase_project?sort=budget → 403 PERMISSION_DENIED beside a served sort on name. packages/rest/src/meta-object-sortability-caller-fls.test.ts ('sortability never offers the unreadable field') holds the same rule at unit, and showcase-fls-read-mask-strip.dogfood.test.ts the data-sort 403 for a scratch permission set",
3257+
"verify": "sortability.fields without F + the data answer, for a member bound to the showcase_client_liaison position. meta-read-doors-live.dogfood.test.ts asserts both halves over HTTP on a booted showcase: budget absent from sortability.fields (name listed sortable; the admin's definition offers budget, the CONTROL), and GET /api/v1/data/showcase_project?sort=budget → 403 PERMISSION_DENIED beside a served sort on name. packages/rest/src/meta-object-sortability-caller-fls.test.ts ('sortability never offers the unreadable field') holds the same rule at unit, and showcase-fls-read-mask-strip.dogfood.test.ts the data-sort 403 for a scratch permission set",
32583258
"evidence": "both excerpts"
32593259
}
32603260
],

0 commit comments

Comments
 (0)