-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
8520c0f
to
5f3a908
Compare
5f3a908
to
b8dc3ff
Compare
b8dc3ff
to
5b07eae
Compare
There was a problem hiding this 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.
if CAN_MASQUARADE_LEARNER_PROGRESS in perms: | ||
del perms[CAN_MASQUARADE_LEARNER_PROGRESS] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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!!
There was a problem hiding this 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
if CAN_MASQUARADE_LEARNER_PROGRESS in perms: | ||
del perms[CAN_MASQUARADE_LEARNER_PROGRESS] |
There was a problem hiding this comment.
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!
Related issue:: #151
Dependent edx-platform PR: nelc/edx-platform#51