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
engine: SourceVariable.model_name reads like the owning model #558
Owner decision: rename the field, or close because the doc comment is enough.
SourceVariable.model_name holds the model a Module variable instantiates and is empty for every other variable; it is not the model the variable belongs to (that is owner_model).
The field's doc comment now says so, but the name still invites the misreading.
Fix
Recommended: rename it to referenced_model_name, the name the sync code already uses for the same value.
It is a mechanical change across about 20 call sites in db.rs and db/.
Alternative: close, relying on the doc comment.
changed the title [-]engine: SourceVariable.model_name is a misnamed correctness trap (it is the Module reference target, empty for non-Module vars -- not the owning model)[/-][+]engine: SourceVariable.model_name reads like the owning model[/+]on Oct 12, 2026
Activity
[-]engine: SourceVariable.model_name is a misnamed correctness trap (it is the Module reference target, empty for non-Module vars -- not the owning model)[/-][+]engine: SourceVariable.model_name reads like the owning model[/+]