openfga / openfga/vscode-ext

Support grouping user/object checks in store tests

Open
#381 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
22
Forks
7
Avg merge
1d 12h
Merged PRs (30d)
14

Description

We recently added support for grouping users and objects in the tests in the CLI - this has now to be added here.

In checks:

  • When users are specified, user cannot be, one of them is always required
  • When objects are specified, object cannot be, one of them is always required

In list objects:

  • When users are specified, user cannot be, one of them is always required

In list users:

  • When objects are specified, object cannot be, one of them is always required

Ref: https://github.com/openfga/cli/pull/513

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review CLI PR #513 and the corresponding store-test handling for checks, list objects, and list users in this extension. Implement grouped users and objects validation so singular and plural inputs are mutually exclusive and one form is required, then verify these three paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.