apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
67 stars 72 forks source link

LTI v1.3 Tool: A+ should not create LTI grade items if the Platform has disabled it #1252

Open markkuriekkinen opened 1 year ago

markkuriekkinen commented 1 year ago

If the LTI Platform (Moodle) defines in its LTI activity settings that no grades should be received from the LTI Tool, then A+ as the Tool should not (try to) create any grade items to the Platform.

For example, when a course is selected via LTI Deep Link, A+ does not check if the grades are enabled in the LTI settings: https://github.com/apluslms/a-plus/blob/a932c5104504f3367e81448ca8a42584f88f27a1/lti_tool/views.py#L254-L264

https://github.com/dmitry-viskov/pylti1.3#assignments-and-grades-service Methods like

# ability to create new line item
ags.can_create_lineitem()