Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

planner: actually plan the exclude set comparison (bugfix) #3065

Merged

Conversation

srenatus
Copy link
Contributor

This was introduced with the source location mapping, #2960.

The set was planned, but never the check for not being a member of the set hadn't been appended; the block just dangles there and is forgotten. Somehow, the ir.NotStmt wrapping, while crucial, also got lost. 😬

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
@srenatus srenatus force-pushed the sr/wasm/fix-exclude-set-planning branch from 709715a to c994135 Compare January 14, 2021 12:58
@srenatus
Copy link
Contributor Author

🔍 I've checked other uses of p.appendStmtToBlock and they look OK. ✔️

@srenatus srenatus marked this pull request as ready for review January 14, 2021 13:18
Copy link
Member

@tsandall tsandall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Sorry for missing this during review! I'm a little sad that our integration tests didn't catch this 😓

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@srenatus srenatus merged commit deaa0bd into open-policy-agent:master Jan 14, 2021
@srenatus srenatus deleted the sr/wasm/fix-exclude-set-planning branch January 14, 2021 15:44
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.

None yet

2 participants