openfga / openfga/language

Add test where `a from b` is directly assigned but contains `user:*` or `user#relation` errors out

Open
#327 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
35
Forks
17
Avg merge
48m
Merged PRs (30d)
10

Description

Add a test that ensures that if b in the case of a from b is directly assigned but contains user:* or user#relation that we error out too.

e.g.

define parent: [folder:*]  
define viewer: viewer from parent  
define parent: [folder#parent]  
define viewer: viewer from parent  

Run against the current API and see if it properly validates against this case.

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

The issue names no file or test path. Start by finding the current API validation tests for direct a from b assignments, then cover the two examples containing user:* and user#relation and confirm that both are rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.