Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude
auto_grading_config
from LTIParams serialization
The creation and editing flow uses a form based API where we first serialize LTIParams for the frontend which then forwards it back to the server with the addition of any configuration for the assignment on the same form namespace. LTIParams serialization doesn't whitelist a list of LTI parameters to forwards but instead includes every form parameter of the request except the authorization related ones. When creation or edit includes the auto_grading_config option, this is included in the form by the FE, the BE reads the config from the form to make the changes to the assignment but also includes that key in the `formFields` serialized LTIParams for the next editing attempt. We'll exclude `auto_grading_config` from LTIParams serialize as is not part of the LTI spec and just an internal API value. The FE will include this value in the form when necessary.
- Loading branch information