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

feat: give data researcher view access to other learners progress page #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tehreem-sadat
Copy link
Collaborator

@tehreem-sadat tehreem-sadat commented Jan 7, 2025

Related issue:: #151

Dependent edx-platform PR: nelc/edx-platform#51

@tehreem-sadat tehreem-sadat changed the title feat: override course api perm to give data researcher progress page … feat: give data researcher view access to other learners progress page Jan 7, 2025
@tehreem-sadat tehreem-sadat force-pushed the tehreem/oveeride_perm_for_progress_page_access branch 2 times, most recently from 8520c0f to 5f3a908 Compare January 7, 2025 11:51
@tehreem-sadat tehreem-sadat force-pushed the tehreem/oveeride_perm_for_progress_page_access branch from 5f3a908 to b8dc3ff Compare January 7, 2025 11:53
@tehreem-sadat tehreem-sadat force-pushed the tehreem/oveeride_perm_for_progress_page_access branch from b8dc3ff to 5b07eae Compare January 7, 2025 12:13
Copy link
Collaborator

@OmarIthawi OmarIthawi left a comment

Choose a reason for hiding this comment

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

Thanks Tehreem. No objections from me except one tiny note.

Comment on lines +46 to +47
if CAN_MASQUARADE_LEARNER_PROGRESS in perms:
del perms[CAN_MASQUARADE_LEARNER_PROGRESS]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this line is needed. I'm presuming perms is a dictionary that we can set to without deleting, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this it was giving error that permission already existed.
image

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, this is explicitly prevented in PermissionMap. I searched and I found that there was no technical reason behind it. It's just to prevent accidental change of the permission. So, a del statement is needed which will alarm reviewers as it did here!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense, thank you both!!

Copy link
Collaborator

@shadinaif shadinaif left a comment

Choose a reason for hiding this comment

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

Thank you @tehreem-sadat , I'll keep it in request-change mode to test it along with nelc/edx-platform#51

Comment on lines +46 to +47
if CAN_MASQUARADE_LEARNER_PROGRESS in perms:
del perms[CAN_MASQUARADE_LEARNER_PROGRESS]
Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, this is explicitly prevented in PermissionMap. I searched and I found that there was no technical reason behind it. It's just to prevent accidental change of the permission. So, a del statement is needed which will alarm reviewers as it did here!

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.

3 participants