-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add OAuth2 support for problem response reports endpoints #24873
Add OAuth2 support for problem response reports endpoints #24873
Conversation
Thanks for the pull request, @pcockwell! I've created OSPR-4933 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
@ormsbee Did the investigation for #19635 produce any useful information as the cause of the problems? Could you describe what was happening such that these errors were occurring and/or how to reproduce them? Any information you have on this would be appreciated. Right now, the requests made to these endpoints succeed when providing an |
jenkins run all |
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.
Please look at the failing tests and rectify.
ec88404
to
1fa00bf
Compare
@pcockwell Thank you for your contribution. Please let me know once it is ready for our review. |
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.
👍 Seems to be working OK. I've just suggested a few minor corrections and updates. See to them and this is done. Doesn't need another review pass from me.
- I tested this: tested using regular and via instructor dashboard.
- I read through the code
- Includes documentation
@@ -218,7 +219,7 @@ def require_course_permission(permission): | |||
user. If the requirement is not satisfied, returns an | |||
HttpResponseForbidden (403). | |||
|
|||
Assumes that request is in args[0]. | |||
Assumes that request is in args[0] |
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.
Assumes that request is in args[0] | |
Assumes that request is in args[0]. |
|
||
**Example Requests**: | ||
|
||
POST /api/instructor/v1/course/{}/tasks |
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.
POST /api/instructor/v1/course/{}/tasks | |
POST /api/instructor/v1/course/{}/reports |
@@ -1038,31 +1038,39 @@ def get_problem_responses(request, course_id): | |||
"task_id": "4e49522f-31d9-431a-9cff-dd2a2bf4c85a" | |||
} | |||
``` |
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.
Could you update this documentation to also point to the new API endpoints?
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.
Is this what you meant?
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 tested this: tested endpoints using REST requests
- I read through the code
- Includes documentation
d7ed737
to
f82500e
Compare
@natabene This is now ready for edX review. Thanks! |
jenkins run py38 |
@pcockwell Thanks for letting me know, I am lining this up for our review. |
jenkins run python-3.8 |
@pcockwell If this PR is no longer WIP, could you please update the description to reflect its current status?
|
Done. Sorry about that |
bea09ba
to
f54cf80
Compare
jenkins run a11y |
2ac60e7
to
5fb1e03
Compare
Your PR has finished running tests. The following contexts failed:
|
@natabene This can be closed since I've opened a new PR here: https://github.com/edx/edx-platform/pull/27313 |
@pcockwell Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
This PR attempts to re-add functionality that was originally included with https://github.com/edx/edx-platform/pull/19635.
JIRA tickets:
OSPR-4933
Sandbox URL: TBD - sandbox is being provisioned.
Testing instructions:
Author notes and concerns:
Reviewers