Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBAC: Move getRolesByFilter to Generator #8442

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

kergomard
Copy link
Contributor

This implements the suggestion by @mjansenDatabay in https://mantis.ilias.de/view.php?id=42223 . As this could be seen as changing the public interface of AccessControl, I ask the JF for approval.

@mjansenDatabay
Copy link
Contributor

mjansenDatabay commented Nov 18, 2024

@kergomard I provided a PR against your PR-branch where I document the "Array Shape" of the return type. This could be useful for consumers, as long as we don't have DTOs or other structures/types which provide more type information for the attributes of the list entries.

The syntax is supported not only by phpstan, but also by "PhpStorm" and psalm (AFAIK).

…type

RBAC: Document "Array Shape" for "Role List Entry"
@matthiaskunkel
Copy link
Member

Jour Fixe, 25 NOV 2024: PR accepted for all maintained versions.

@kergomard kergomard merged commit 4dc6470 into ILIAS-eLearning:release_8 Nov 25, 2024
3 checks passed
kergomard added a commit that referenced this pull request Nov 25, 2024
* RBAC: Move getRolesByFilter to Generator

See: https://mantis.ilias.de/view.php?id=42223

* RBAC: Document "Array Shape" for "Role List Entry"

---------

Co-authored-by: mjansen <[email protected]>
kergomard added a commit that referenced this pull request Nov 25, 2024
* RBAC: Move getRolesByFilter to Generator

See: https://mantis.ilias.de/view.php?id=42223

* RBAC: Document "Array Shape" for "Role List Entry"

---------

Co-authored-by: mjansen <[email protected]>
kergomard added a commit that referenced this pull request Nov 25, 2024
* RBAC: Move getRolesByFilter to Generator

See: https://mantis.ilias.de/view.php?id=42223

* RBAC: Document "Array Shape" for "Role List Entry"

---------

Co-authored-by: mjansen <[email protected]>
@kergomard
Copy link
Contributor Author

Thank you very much! Merged and picked to ILIAS 9, ILIAS 10, and trunk.

chfsx pushed a commit to srsolutionsag/ILIAS that referenced this pull request Dec 3, 2024
* RBAC: Move getRolesByFilter to Generator

See: https://mantis.ilias.de/view.php?id=42223

* RBAC: Document "Array Shape" for "Role List Entry"

---------

Co-authored-by: mjansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants