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

Allow fetching past members in the API #1378

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

carlobeltrame
Copy link
Member

@carlobeltrame carlobeltrame commented Aug 23, 2021

This is an WIP effort to deprecate the group_health endpoints in the PBS wagon in favor of an alternative architecture based on OAuth API access.
Wagons can add an ability that grants the permission :show_past_members on a group in order to allow fetching people with deleted roles through the API and web application.
This PR also adds a convenience filter with_deleted in addition to the existing deleted role filter, for easier use of the API by third-party applications that need to read the deleted people.
Also exposes the group type and role type of all roles in the OAuth profile endpoint, since the PBS healthcheck application needs access to those as well. In fact, any application that includes some permission logic based on the hitobito roles exposed in OAuth can benefit from this addition.

See digio-ch/pbs-healthcheck-core#22 for more context. Prerequisite for digio-ch/pbs-healthcheck-core#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant