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
Prevent SelectionsStep from enqueueing field steps from previous selection groups more than once. continue_selections was initialized outside the group loop, so each group retained and re-enqueued every step collected from earlier groups.
For example, two groups containing first and second were enqueued as [first, first, second]. This change scopes continue_selections to each group, producing [first, second].
Interesting ... I think the CI failures are real here. IIRC this array has something do about directives which pause execution. But I see what you mean about this array accumulating things outside of scope.
Thanks! I tried continue_selections.clear after enqueueing, but the three directive feature tests still failed.
The issue is that NullDataloader#add_step executes synchronously. Earlier field steps ran immediately, then a later group’s replace(prototype_result) reset those results to nil. The previous duplicate enqueueing happened to restore them.
I moved the enqueue loop after all selection groups have been processed instead. This avoids duplicate enqueueing while ensuring all prototype updates are complete before any field step runs. I pushed the fix in a824a8a.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevent
SelectionsStepfrom enqueueing field steps from previous selection groups more than once.continue_selectionswas initialized outside the group loop, so each group retained and re-enqueued every step collected from earlier groups.For example, two groups containing
firstandsecondwere enqueued as[first, first, second]. This change scopescontinue_selectionsto each group, producing[first, second].