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

Use consistent rego syntax in prep for opa 1.0 #2281

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simonbaird
Copy link
Member

The idea here is that once we update to opa 1.0 we'll need to always use the new deny contains foo if syntax. This change is supposed to make it easier by using that syntax consistently now.

It requires importing rego.v1 everywhere, but we do that consistently for all the rego in ec-policies, so let's also do it here also.

See also #2274 which I'd like to rebase on this once it's merged.

The idea here is that once we update to opa 1.0 we'll need to always
use the new `deny contains foo if` syntax. This change is supposed
to make it easier by using that syntax consistently now.

It requires importing `rego.v1` everywhere, but we do that
consistently for all the rego in ec-policies, so let's also do it
here also.

See also enterprise-contract#2274 which I'd like to rebase on this once it's merged.
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.76%. Comparing base (0749535) to head (473f065).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2281   +/-   ##
=======================================
  Coverage   72.76%   72.76%           
=======================================
  Files          89       89           
  Lines        7674     7674           
=======================================
  Hits         5584     5584           
  Misses       2090     2090           
Flag Coverage Δ
generative 72.76% <ø> (ø)
integration 72.76% <ø> (ø)
unit 72.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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.

1 participant