LearnNewsExamplesServices
Frontmatter
id8403
titlePass record instance to Model field convert method
stateClosed
labels
enhancementaicore
assigneestobiu
createdAtJan 8, 2026, 12:47 AM
updatedAtJan 8, 2026, 1:31 AM
githubUrlhttps://github.com/neomjs/neo/issues/8403
authortobiu
commentsCount1
parentIssue8362
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 8, 2026, 1:06 AM

Pass record instance to Model field convert method

Closed v11.19.0 enhancementaicore
tobiu
tobiu commented on Jan 8, 2026, 12:47 AM

Update src/data/RecordFactory.mjs method parseRecordValue to pass the record instance as the second argument to field.convert().

Current: value = field.convert(value) New: value = field.convert(value, record)

This allows convert functions to access sibling fields for more complex transformations, similar to calculate.

tobiu added the enhancement label on Jan 8, 2026, 12:47 AM
tobiu added the ai label on Jan 8, 2026, 12:47 AM
tobiu added the core label on Jan 8, 2026, 12:47 AM
tobiu referenced in commit c64cc8e - "enhancement: Enhance Release tree titles and pass record to Model field convert method (#8402, #8403)" on Jan 8, 2026, 1:04 AM
tobiu
tobiu Jan 8, 2026, 1:05 AM

Input from Gemini 3 Pro:

✦ Implemented in c64cc8ebb. Updated src/data/RecordFactory.mjs to pass record as the second argument to field.convert().

tobiu closed this issue on Jan 8, 2026, 1:06 AM
tobiu added parent issue #8362 on Jan 8, 2026, 1:06 AM
tobiu assigned to @tobiu on Jan 8, 2026, 1:31 AM