-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Valera/lti graded #1607
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
Closed
Closed
Valera/lti graded #1607
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
06c77f0
Add grade functionality for LTI (BLD-384)
94d1800
Add lookup table to students module.
auraz 0fc3eeb
Update test lti server and add script for manual run
olmar 3960a0a
Investigations.
auraz 78306ce
Add processing of XML request to LTI.
auraz a4a2abe
Add course_id to lookup table.
auraz f947690
Fix post dict and add click on submit button.
olmar 809cc09
Updates on lookup table and functions.
auraz 35393bc
Add custom handler.
auraz 271cf51
Add oauth sign.
olmar 1b6279d
Updated mock_lti_server and removed odd unicode decalarion.
auraz 08d7e9a
Fix oauth body hash.
olmar 0c2da2f
Add get_handler_url and update mocked server.
auraz 44874a7
Avoid csrf for OAuth signed request from LTI.
auraz e02cb26
OAuth for lti. Working.
olmar 694a8d3
Add body hash compare. Still working on.
olmar 1a2cb55
Fix.
auraz 2f09f21
Fix.
olmar 1fdb1f7
Implement oauth signing.
auraz cae7017
Make resource_link_id mandatory.
auraz b8a42da
Add test.
olmar 59200ba
Add tests.
olmar 117b3c6
Various fixes to LTI XML grade processing.
auraz a7ecfc8
Cherry-picked 9131eb825dddb40c1669dc7d04072724ac11d8e0.
e99c080
Small fixes and rename of unique_id_for_useг.
auraz cdbba28
Changes self.user to key.user_id.
auraz be1a2c9
Simplify LTI code.
auraz 1ece163
Removed get_handler_url from x_module.
auraz 4028167
Fix comments and clean-up.
auraz b6285cb
Change hash of xblock repo.
auraz edec45a
Add url.quote.
polesye 81de246
cherry-picked 5bfd2976961ac0dfd7220ff994157a68fe44b2b4.
d9c9eee
URL resource for CodeMajor/Severity Interpretation Matrix error/statu…
3dc4df0
Minor corrections to code comments.
d7f14c2
Fixes user in model_data and unquote url from webob request.
auraz 2bf8726
Merge branch 'valera/lti_graded' of github.com:edx/edx-platform into …
auraz 8fdbcdb
Mock LTI server return TC response body.
auraz 0b8d42f
Fine tuning responses.
45370a9
Adding initial documentation for LTI module.
6b104ea
Added an entry to CHANGELOG.rst file.
c1d5b85
Included Jira issue in changelog.
c1bcc2d
Add integration test.
polesye a2d7d1e
Merge branch 'valera/lti_graded' of https://github.com/edx/edx-platfo…
polesye 975e863
Add unique together to anonymous lookup table.
auraz 5996af4
Merge branch 'valera/lti_graded' of github.com:edx/edx-platform into …
auraz 03daa64
Use default in get_or_create in lookup table.
auraz 0b66713
Remove obsolete mocking.
auraz d2bfec3
Make anonymous_id_for_user use simple_anonymous_id_for_user.
auraz 0aa0406
Make export have simple_anonymous_id for historical reasons.
auraz 709f2d7
Update docstrings.
auraz 53cb969
Update header in csv.
auraz 089d2bc
Add escaping for imsx_messageIdentifier.
auraz c6bfa98
LTI grade XML namespace is hardcoded.
auraz 69e8645
Add messages.
olmar 10efe0c
Clean.
olmar 9885b52
Updated docs.
e4f091c
Updated LTI docs.
a36f4c2
Add tests for anonymous lookup table.
auraz 68a7eaf
Adding docs for LTI.
39e461c
Fix messages.
olmar da51a52
Add unittests.
olmar c72107f
Fix return value in get_clien_key_secret
auraz b173e48
Refactor LTI unittests.
auraz 406d811
Cleanup in LTI tests.
auraz 8568eb2
Fix lti tests.
polesye 38b30f3
Tighten the user id assertion, and fix tests.
1e576f2
Cleanup the AnonymousUserId model and associated functions
cpennington 38c44e1
Use the per-student anonymized id for the subset of modules known to …
cpennington 1b1a40f
Fix tests
cpennington ac7597b
Adapt to new way of doing thirdparty handlers.
1d19cb9
Fix acceptance test.
polesye 871c00c
Fix test.
polesye 7592ca6
Fix typo.
auraz 8dcfd90
Fix default path in docs.
auraz 0424f76
Fix tests.
polesye 7beefd5
Fix unittest.
auraz 657f9d6
Rename unittests.
polesye 03e0da8
Moved LTI docs to course_authors section.
2f12ead
Fix.
olmar f1fcc8a
Updated Python doc strings for LTI.
6d5dee5
Tidy up LTI docs in PY.
42bef78
Work in progress.
polesye f024c2e
Merge branch 'valera/lti_graded' of https://github.com/edx/edx-platfo…
polesye 22e579f
Add two tests for LTI module functions.
auraz ca6c76f
Fix typo
cpennington 2fcbd20
Remove unused import
cpennington 78ba085
Rename the LTIModuleDescriptor to LTIDescriptor to follow convention
cpennington 2836cbf
Make per-course anonymized ids specific to LTIModule, with the intent…
cpennington 563500e
Fix LTIModule imports
cpennington 1d3aec7
Don't use a list for issubclass
cpennington 52e01d2
Don't use a list for issubclass, again
cpennington File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
194 changes: 194 additions & 0 deletions
194
...ngoapps/student/migrations/0029_add_lookup_table_between_user_and_anonymous_student_id.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Add a key over
user/course_id, so that lookups are fast (since this is going to be a large, frequently used table.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.
Also, this should be unique across
user/course_id.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.
Looking closer, I see that you have an index on each of
userandcourse_idindividually, but given that the most common query is going to use both, I think a joint index is more important.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.
@cpennington Do you mean add unique_together = (user, course_id) constraint which will result in creating joint index in MySQL? I'm not sure, still, if this index will be created in sqlite.
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.
Done: Added unique together to anonymous lookup table