Role Lookup is not usable

オープン
#141 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
backend

調査の方向性

Start with classes/steps/lookups/roles_lookup_step.php at the linked line and trace how steps produce and consume fields, especially complex data types and filters. The issue identifies checking whether a user has a role, optionally in a context, as one use case, while noting other use cases may need different solutions. Done means role lookup results can be used by a step for that check.

索引モデルが issue の本文から書いたものです。

説明

bug enhancement

I guess in the current state, user role lookups are not usable at all.

The lookup step generates a complex data type field prefix_roles, but it seems there is no step capable of consuming complex data types. So the result of this lookup cannot be used by any step at all, including itself.

In my particular use case, I just need to test if a user has a role, maybe given a context. For this reason, only implementing a new filter would work for me, since the current filters are not able to deal with collections. But other use cases (like for #116) might need other solutions.

https://github.com/catalyst/moodle-tool_trigger/blob/2a4d1c463d1fe5a17a653644826e9c4e26652920/classes/steps/lookups/roles_lookup_step.php#L79

主要言語
PHP
スター
46
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

catalyst/moodle-tool_trigger のほかの issue

catalyst/moodle-tool_trigger の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。