-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve type coverage for auto-grading #6655
Conversation
@@ -160,6 +161,10 @@ function PanelLabel({ | |||
); | |||
} | |||
|
|||
type DeepLinkingAPIData = Record<string, unknown> & { | |||
auto_grading_config: APIAutoGradingConfig | null; | |||
}; |
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.
For now I have only defined types for auto_grading_config
, which is the most complex prop.
We can enhance this type later with the other known props.
* If defined, it indicated this assignment was configured with auto grading | ||
* enabled. | ||
*/ | ||
auto_grading_config?: AutoGradingConfig; |
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.
This property will be returned only from the /api/dashboard/assignment/{assignment_id}
endpoint.
The items from the metrics and filters lists will not include this prop.
@marcospri can you confirm my assumption is correct?
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.
The items from the metrics and filters lists will not include this prop.
Yes 👍
90ea75f
to
32f650d
Compare
32f650d
to
a299fb4
Compare
This PR adds some extra types around auto-grading, with the purpose of:
Both server/python types are equivalent, so we are reusing the same definition here.