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

When running opa test with --explain specified the trace should be displayed #2069

Closed
patrick-east opened this issue Feb 7, 2020 · 0 comments · Fixed by #2267
Closed

When running opa test with --explain specified the trace should be displayed #2069

patrick-east opened this issue Feb 7, 2020 · 0 comments · Fixed by #2267

Comments

@patrick-east
Copy link
Contributor

Expected Behavior

If I run something like:

opa test --explain notes .

I would expect that the explanation (trace) to be displayed.

Actual Behavior

The -v flag must also be specified to get the trace to be displayed.

Proposed Change

When the --explain option is specified it implies -v for the output.

@patrick-east patrick-east added this to To do in Open Policy Agent via automation Feb 7, 2020
@tsandall tsandall moved this from To do to Planned in Open Policy Agent Feb 11, 2020
patrick-east added a commit to patrick-east/opa that referenced this issue Apr 3, 2020
Rather than requiring both `--explain` and `--verbose`/`-v` a user
just needs to pass in `--explain` and verbose output will be enabled.

Fixes: open-policy-agent#2069
Signed-off-by: Patrick East <east.patrick@gmail.com>
@patrick-east patrick-east moved this from Planned (Things We Are Going To Do) to In Progress in Open Policy Agent Apr 3, 2020
Open Policy Agent automation moved this from In Progress to Done Apr 6, 2020
tsandall pushed a commit that referenced this issue Apr 6, 2020
Rather than requiring both `--explain` and `--verbose`/`-v` a user
just needs to pass in `--explain` and verbose output will be enabled.

Fixes: #2069
Signed-off-by: Patrick East <east.patrick@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants