Skip to content

Comments

ST6RI-888 Owned cross feature implied type not being set#705

Merged
seidewitz merged 3 commits intomasterfrom
ST6RI-888
Oct 20, 2025
Merged

ST6RI-888 Owned cross feature implied type not being set#705
seidewitz merged 3 commits intomasterfrom
ST6RI-888

Conversation

@seidewitz
Copy link
Member

@seidewitz seidewitz commented Oct 19, 2025

This PR corrects a bug introduced in the resolution of ST6RI-881 in PR #701.

That PR included a refactoring of the caching of the computed types of a feature. Before that PR, the cache field was only set after the complete computation of the types. The PR changed this so that the cache field was initially set to an empty list, and then that list was filled in during the type computation.

Unfortunately, in some cases (such as when a feature has owned metadata), the types computation is called circularly, which previously worked correctly. With the change to the caching, however, the circular call to getType instead returned the empty list that had not yet been filled in. In some cases, this cause the implicit typing of the owned cross feature of an end feature to be set to the empty list (rather than the correct type of the end feature), resulting in the reported bug.

The present PR restores the original caching functionality, in which the type cache field is only set after the types are fully computed, which fixes the bug.

@seidewitz seidewitz self-assigned this Oct 19, 2025
@seidewitz seidewitz added this to the 2025-09 milestone Oct 19, 2025
@seidewitz seidewitz changed the title Owned cross feature implied type not being set ST6RI-888 Owned cross feature implied type not being set Oct 20, 2025
@seidewitz seidewitz merged commit b20a308 into master Oct 20, 2025
2 checks passed
seidewitz added a commit that referenced this pull request Oct 20, 2025
ST6RI-888 Owned cross feature implied type not being set
@seidewitz seidewitz modified the milestones: 2025-09, 2025-09.1 Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant