Repository navigation
Commit 3f0a307
fix(platform-objects): sys_session.revoke_reason description names admin_password_reset (#23518)
Fixes #23477
Clause-②: no
`sys_session.revoke_reason` is free text; its description is the field's
only published vocabulary. It now names `admin_password_reset`, the
value `plugin-auth/forced-reset-revocation.ts`
(`FORCED_RESET_REVOKE_REASON`) writes on sessions an administrator's
forced password reset revokes. Ruling (triage 6168824114): add the value
with its cause and run `node scripts/check-i18n-bundles.mjs --write`;
precedent #15784.
## Changes
- `sys-session.object.ts`: description lists `admin_password_reset`
after `organization_membership_ended`; the in-code comment records it as
the second authorization-event cause.
- `apps/translations/*.objects.generated.ts`: the generator rewrote
`en`; the zh-CN, ja-JP and es-ES help strings are hand-written values,
so I added the value there too, as #15784 did.
- New `plugin-auth/src/forced-reset-revoke-reason-vocabulary.test.ts`:
asserts the description contains the producer's constant (no existing
test pinned the list; plugin-auth already depends on platform-objects,
the reverse would not be allowed).
- `.changeset/23477-revoke-reason-vocabulary.md`: patch for
`@objectstack/platform-objects`, description text only.
Landing spot matches the claim's file surface; the test sits in
plugin-auth, the producer side.
## Evidence (head after merging origin/main)
- `check-i18n-bundles.mjs --write` exit 0; plain run: all bundles in
sync (10 packages).
- plugin-auth new test 1/1; platform-objects full suite 70 files, 1091
tests; both packages' typecheck OK; `@objectstack/spec` `test:repo` 60
files, 1029 tests.
- dispatch-gates: 66 derived families, all run, all exit 0 except
`check:dual-build-cjs-loads` (exit 3, PREREQUISITE NOT MET, no dist for
unrelated packages): NOT MEASURED, a description-only diff does not
reach it.
- No accept/refuse change, so no consumer sweep beyond the above.
## Acceptance notes
Bundle folder is `apps/translations` (not `identity`); open PR #23469
also regenerates that folder, so the later lander re-runs the generator.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2811a63 commit 3f0a307
7 files changed
Lines changed: 26 additions & 5 deletions
File tree
- .changeset
- packages
- platform-objects/src
- apps/translations
- identity
- plugins/plugin-auth/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
199 | 202 | | |
200 | 203 | | |
201 | | - | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments