Decide: keep or remove g2 row rendering from schema-defined roles
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with ADR 0034 at docs/decisions/0034-permission-dependencies-schema.rst and the discussion in PR #601, then read the earlier issue #523 for context. The payload does not name the renderer code that emits g2 rows from depends_on, so locate it before judging maintenance cost. Done means a recorded keep-or-remove decision, with rationale added to ADR 0034 or a deprecation timeline.
索引モデルが issue の本文から書いたものです。
説明
Background
ADR 0034 (Permission Dependencies in Authorization Schema) defines how permission dependencies are declared in the authorization schema via an optional depends_on field on permissions. The ADR includes rendering Casbin g2 (action grouping) rows from these dependencies, even though schema-defined roles must list every dependency explicitly.
Current state: The renderer generates g2 rows from the schema's depends_on declarations, maintaining them alongside role definitions in the Casbin policy. This duplicates information already present in role declarations.
Rationale in ADR: g2 rows serve a dual purpose:
- Visibility in the Casbin policy when consumed directly or for debugging
- Safety net for database-only roles not validated against the schema
Scope of work
Decide whether the value of g2 rendering justifies its ongoing maintenance cost:
- Retention case: Keep g2 rendering for clarity when debugging/auditing Casbin policy directly, and as a safety net for unvalidated database-only roles.
- Removal case: Rely entirely on explicit permission listing in role definitions; schema roles are authoritative; no need for g2 duplication.
Trade-offs to evaluate:
- Debuggability: Direct visibility of g2 rows in the policy (retention helps here)
- Schema authority: Schema-defined roles list all dependencies; g2 becomes redundant
- Maintenance: Cost of keeping renderer logic to manage g2 rows
- Consistency: Risk of drift if g2 rows diverge from schema declarations
Acceptance criteria
- A decision is made: keep g2 rendering or remove it entirely
- Decision includes rationale on debuggability vs redundancy trade-off
- If kept: document in ADR 0034 why g2 rows are rendered despite schema roles being authoritative
- If removed: outline deprecation timeline for existing installations
References
- PR: #601 — ADR 0034 PR with discussion
- ADR: 0034 — Permission Dependencies in Authorization Schema
- Related: #523 — Original permission dependencies issue
- 主要言語
- Python
- スター
- 0
- フォーク
- 10
- 平均マージ
- 5日 12時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openedx/openedx-authz のほかの issue
-
Add a course permission check to ContainerChildrenView対応中かも @BryanttV が 5 日前に担当しました。 オープンwillow
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openedx/openedx-authz#604 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Allow Course Editors to import YouTube transcripts and surface errors対応中かも @efortish が 5 日前に担当しました。 オープンwillow
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openedx/openedx-authz#597 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
willow
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openedx/openedx-authz#579 ·
メンテナーはふだん 1 日以内に返信
-
Bugs & Maintenanceオープンwillow
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
openedx/openedx-authz#616 ·
メンテナーはふだん 1 日以内に返信
-
discovery documentation
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
openedx/openedx-authz#613 ·
メンテナーはふだん 1 日以内に返信
openedx/openedx-authz の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
can4hou6joeng4/boss-agent-cli#1487 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
btclib-org/btclib-wallet#1045 ·
メンテナーはふだん 1 日以内に返信
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100