Clarify that tests are run locally when specifying a model .fga.yaml + store-id
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 102
- Forks
- 49
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 16
Description
When you run model test using a file that has a model and we specify the store-id, the store-id is ignored and tests are run locally on the CLI.
fga model test --tests store.fga.yaml --store-id 01HYX4FWK9P2VFRQ0YABYNQ447
I think that's the right behavior, but we should display a message clarifying it:
$ fga model test --tests store.fga.yaml --store-id 01HYX4FWK9P2VFRQ0YABYNQ447
Ignoring store-id parameter, running tests locally using model from store.fga.yaml
# Test Summary #
Tests 2/2 passing
Checks 4/4 passing
Note that if the fga.yaml file does NOT have a model, tests are run in the OpenFGA server.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the model test CLI entry point and trace handling of --tests store.fga.yaml with --store-id. Run the example command to confirm the current behavior, then make the output clarify when a model in the file causes local execution; preserve server execution when fga.yaml has no model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100