Commit c8ff269
* fix(plugin-audit): consume the engine's bound ctx.previous and normalise both sides of the diff (#6656)
Retires captureBefore's own pre-image read (the engine binds `previous` before
every before* dispatch, under the same predicate that dispatches the hook), and
masks the credential field classes on both sides of the audit diff so the two
sides share one view as well as one source.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BM1tNf5U3nEbHKR4fo5qVQ
* fix(plugin-audit): drop only VIRTUAL computed fields from audit snapshots (#6656)
Reverse verification of the snapshot-normalisation limb showed it could only be
made red on the create face. Chasing why exposed an over-reach: the limb keyed
off `COMPUTED_FIELD_TYPES`, but of that set only `formula` is virtual. Both
`autonumber` (seeded at insert) and `summary` (written by `recomputeSummaries`)
are stored columns, present and equal on BOTH sides — dropping them deleted the
record's human-facing number and its roll-up values from the ledger to fix an
asymmetry they never had.
Narrowed to a new `VIRTUAL_FIELD_TYPES` set, documented against the wider one so
the two are not unified later, and pinned in both directions: the fixture now
carries a stored `autonumber` alongside the `formula`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BM1tNf5U3nEbHKR4fo5qVQ
---------
Co-authored-by: os-zhuang <steve@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 17116a0 commit c8ff269
7 files changed
Lines changed: 903 additions & 85 deletions
File tree
- .changeset
- packages/plugins/plugin-audit
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments