Skip to content

Commit d180955

Browse files
committed
docs(lint): word the $record explanation as the picker's declared behaviour
Claude-Session: https://claude.ai/code/session_01ADHkmS3jo9CFJZXCvjc2n4 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2fa5f50 commit d180955

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/lint/src/rule-explanations.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4485,8 +4485,9 @@ const OBJECT_FIELD_REF_UNKNOWN_EXPLANATION: RuleExplanation = {
44854485
'On those picker fields a `lookupFilters[].value.$record` path is judged too, against the record ' +
44864486
'being edited: a field of the object that owns the picker field, or at most one hop from it (a ' +
44874487
'relationship field of that object, then a field of the object it references, as in ' +
4488-
'`account.cb_market`). The picker swaps that value into its query, so a path the record does ' +
4489-
'not have leaves the filter with nothing to compare. A miss names the segment: an unknown head, ' +
4488+
'`account.cb_market`). The picker is declared to swap that value into its query and to leave ' +
4489+
'an entry out while the value is empty, so a path the record does not have would drop the filter ' +
4490+
'without a word. A miss names the segment: an unknown head, ' +
44904491
'a hop through a field that is not a relationship, a leaf the referenced object lacks, or a ' +
44914492
'second hop. A `$record` nested inside a literal value is not a reference and is not judged.',
44924493
'A summary field\'s `summaryOperations.filter` is judged against the CHILD object ' +

0 commit comments

Comments
 (0)