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 e659f7c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec,cli,metadata-protocol): a row-conditioned lock is its own outcome, and the step-19 text names only the rows it lists
A row with a when and no editable: true locks only the rows the condition
matches, so it is read-only-where-when-matches; every choice now leads to the
one row shape the list never names. The step-19 sentence says the list covers
the entries the run writes viewAllFields beside. Wildcard field keys are not
listed, the stored line's choice no longer names viewAllFields, the element
type of ownFieldRows is exported, and the changeset declares the widening.
Claude-Session: https://claude.ai/code/session_01QSeKYko9cFNzePK9vaCkYe
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/38924-own-field-rows-beside-modify-all.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,23 @@
6
6
7
7
fix(cli): `os migrate meta --from 18` names each own field row beside Modify All that protocol 19 narrows
8
8
9
-
Clause-②: no
9
+
Clause-②: yes (widening)
10
10
Metadata-protocol: none
11
11
12
+
Widened: `@objectstack/spec` exports `ownFieldRowsBesideModifyAll` and the types `OwnFieldRowBesideModifyAll`, `OwnFieldRowProtocol18Outcome` and `OwnFieldRowProtocol19Outcome`; `os migrate meta --from N --json` gains the key `ownFieldRowNarrowing`, present only when the list is not empty; `StoredViewAllFieldsReview` (`os migrate meta --stored --json`) gains the optional member `ownFieldRows`, and `@objectstack/metadata-protocol` exports its element type `StoredOwnFieldRow`. Nothing a metadata author writes changes.
13
+
12
14
The upgrade text no longer says that the `viewAllFields: true` written beside View All or Modify All keeps every field read. It keeps the field reads the bits cast, except a field the set's own `readable: false` row hides beside Modify All, and it keeps no edit Modify All cast. The protocol-19 behaviour itself is unchanged.
13
15
14
-
`os migrate meta --from 18` now lists each own field row beside Modify All whose answer changes on protocol 19: the permission set, the `objects` entry, the field row, what the set's holders got on 18 (read and edit), what they get on 19 (hidden, readonly, or edit only on the rows the row's `when` matches), and the choice: change the row to keep the protocol-18 answer, or accept the narrowing. Example, for a set with View All and Modify All on `contact` and its own `'contact.salary': { readable: false }` row:
16
+
`os migrate meta --from 18` now lists each own field row beside a Modify All bit that the run writes `viewAllFields: true` beside, where the row's answer changes on protocol 19. Each line names the permission set, the `objects` entry and the field row; what the set's holders got on protocol 18 (read and edit: Modify All voted over the set's own rows); what they get on 19 through that set (`hidden`, `read-only`, `read-only-where-when-matches` for a row-conditioned lock, or `edit-only-where-when-matches` for a row-conditioned edit); and the choice: change the row to keep the protocol-18 answer, or accept the narrowing. Following the choice takes the row off the list. A set that already carries `viewAllFields` beside the bit (a source the edit was applied to) is not listed; review its own rows beside Modify All by hand. Example, for a set with View All and Modify All on `contact` and its own `'contact.salary': { readable: false }` row:
15
17
16
18
```text
17
19
1 own field row(s) beside Modify All that protocol 19 narrows — the `viewAllFields: true` written beside the bit does not keep them:
18
20
⚠ permission set 'hr_manager' (permissions[0]), objects entry 'contact', field row 'contact.salary'
19
21
protocol 18: read and edit (Modify All voted over the set's own row)
20
22
protocol 19: hidden, no read and no edit (the set's own `readable: false` row binds)
21
-
choice: to keep the protocol-18 read and edit, change the row to `readable: true, editable: true` (...); otherwise accept the narrowing.
23
+
choice: to keep the protocol-18 read and edit, change the row to `readable: true, editable: true`; otherwise accept the narrowing.
22
24
```
23
25
24
-
`--json` carries the same list under the new key `ownFieldRowNarrowing` (`set`, `at`, `object`, `field`, `protocol18`, `protocol19`, `choice`), present only when the list is not empty; no other key changes.
25
-
26
-
`os migrate meta --stored` names the same rows of a stored permission set under its entry in the View All Fields review list, and its `--json` entries carry them as `ownFieldRows`, present only when there is one. View All alone is never listed: a set's own row already bound beside its own View All on 18.
26
+
`--json` carries the same list under `ownFieldRowNarrowing` (`set`, `at`, `object`, `field`, `protocol18`, `protocol19`, `choice`); no other key changes.
27
27
28
-
`@objectstack/spec` exports the predicate both commands read, `ownFieldRowsBesideModifyAll`, beside the conversion layer.
28
+
`os migrate meta --stored` names the same rows of a stored permission set under its entry in the View All Fields review list, and its `--json` entries carry them as `ownFieldRows`. View All alone is never listed: on 18.6.0 a set's own row already bound beside its own View All. Protocol 18 here means 18.6.0, the release the card measured.
0 commit comments