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

feature/DT-1803-grant-access-to-dataset #2993

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

chopkinsmade
Copy link
Contributor

@chopkinsmade chopkinsmade commented Feb 2, 2024

Description of change

When an email address is added to the request approvers field, if there is a matching user with that email also add them to the catalogue editors field.

When a catalogue editor is removed using the template form, also remove them from the request approvers field

Checklist

  • Have tests been added to cover any changes?

@chopkinsmade chopkinsmade force-pushed the feature/DT-1803-grant-access-to-dataset branch 2 times, most recently from 8e4b729 to 2f85c3b Compare February 5, 2024 16:32
@chopkinsmade chopkinsmade force-pushed the feature/DT-1803-grant-access-to-dataset branch from 2f85c3b to 2dea0ac Compare February 7, 2024 09:37
@chopkinsmade chopkinsmade marked this pull request as ready for review February 7, 2024 09:46
Copy link
Contributor

@ian-leggett ian-leggett left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1576,6 +1576,10 @@ def remove_authorised_editor(request, pk, user_id):
user = get_user_model().objects.get(id=user_id)

dataset.data_catalogue_editors.remove(user)
if dataset.request_approvers and user.email in dataset.request_approvers:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Blocking until the SSO issue is resolved

@chopkinsmade chopkinsmade added the do not merge Not ready to be merged yet label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge Not ready to be merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants