Skip to content
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

Teacher Tool: Consolidate Calls to SetRubric #9861

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

thsparks
Copy link
Contributor

@thsparks thsparks commented Feb 9, 2024

This change sends all setRubric calls through the setRubric transform (https://github.com/microsoft/pxt/blob/master/teachertool/src/transforms/setRubric.ts), so they don't call into the action directly. This is just a refactor; there is no change in functionality.

I didn't do this originally because the setRubric transform was doing a bunch of validation that would have been redundant, but I refactored that out and forgot to go in and change these calls. Now with this change, we can rely on the transform to poke autorun and we don't need to call that separately every time.

@thsparks thsparks requested a review from a team February 9, 2024 18:50
Copy link
Contributor

@srietkerk srietkerk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@thsparks thsparks merged commit 38ed80e into master Feb 9, 2024
7 checks passed
@thsparks thsparks deleted the thsparks/teachertool/consolidate_set_rubric_calls branch February 9, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants