Skip to content

fix(BA-4922): change Project→User relation_type from auto to ref in example-roles#9749

Open
fregataa wants to merge 2 commits intomainfrom
fix/BA-4922-project-user-relation-type
Open

fix(BA-4922): change Project→User relation_type from auto to ref in example-roles#9749
fregataa wants to merge 2 commits intomainfrom
fix/BA-4922-project-user-relation-type

Conversation

@fregataa
Copy link
Member

@fregataa fregataa commented Mar 6, 2026

Summary

  • Fix relation_type for Project→User associations in example-roles.json fixture from "auto" to "ref" per BEP-1048 Entity Edge Catalog
  • Project→User is a ref relation (visibility only, no permission delegation), but 6 entries were incorrectly set to "auto"
  • Applied to both src/ai/backend/install/fixtures/example-roles.json and fixtures/manager/example-roles.json

Test plan

  • JSON syntax validation passed (python3 -m json.tool)
  • Only scope_type=project, entity_type=user entries changed; domain-scoped entries remain "auto"

Resolves BA-4922

…xample-roles

Per BEP-1048 Entity Edge Catalog, Project→User is a ref relation
(visibility only, no permission delegation). All 6 entries in
association_scopes_entities with scope_type=project, entity_type=user
were incorrectly set to "auto".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 6, 2026 10:58
@github-actions github-actions bot added the size:S 10~30 LoC label Mar 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes incorrect relation_type values for Project→User associations in the example-roles.json fixture files. Per BEP-1048 Entity Edge Catalog, Project→User is a ref relation (visibility only, no permission delegation), but 6 entries were incorrectly set to "auto" instead of "ref".

Changes:

  • Updated 6 relation_type values from "auto" to "ref" for project-scoped user entity entries in both fixture file locations.
  • Added a changelog entry describing the fix.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/ai/backend/install/fixtures/example-roles.json Changed relation_type from "auto" to "ref" for 6 Project→User entries
fixtures/manager/example-roles.json Mirror of the same changes in the alternate fixture location
changes/9749.fix.md Changelog entry for the fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fregataa fregataa added this to the 26.3 milestone Mar 6, 2026
@fregataa fregataa requested a review from a team March 6, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10~30 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants