Skip to content

Comments

Bug fix in parent scope rules#778

Merged
danieltrt merged 3 commits intomasterfrom
another-bug-fix
Oct 3, 2025
Merged

Bug fix in parent scope rules#778
danieltrt merged 3 commits intomasterfrom
another-bug-fix

Conversation

@danieltrt
Copy link
Collaborator

@danieltrt danieltrt commented Oct 3, 2025

Summary:
There is a bug in piranha core that prevents parent rules from being match only. Parent scope is forcibly applying edits without checking whether the rule is match only. This PR fixes that

Test plan:
I added a test that fails without the fix to illustrate the problem, as well as an E2E test

@danieltrt danieltrt merged commit 9dcbcc9 into master Oct 3, 2025
4 checks passed
@danieltrt danieltrt deleted the another-bug-fix branch October 3, 2025 13:31
danieltrt added a commit that referenced this pull request Oct 6, 2025
The previous [bug fix](#778) was
partial. It would work for single application of rules, but not until
fix point because I forgot to add the edit to the queue. I've modified
the test to reflect the correct behavior and fixed the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants