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

SAK-50438 Rubrics trigger event so that criteria get updated on a reorder #12927

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

maurercw
Copy link
Contributor

Add unit test

@ern ern changed the title SAK-50438 - Rubrics: Trigger event so that criteria get updated on a reorder SAK-50438 Rubrics trigger event so that criteria get updated on a reorder Sep 30, 2024
@@ -37,6 +37,9 @@ export class SakaiRubricCriteria extends RubricsElement {
this.querySelector(`[data-criterion-id="${e.detail.data.criterionId}"] .drag-handle`).focus();
});

// Reordering doesn't really care about the weight changes, but the event does get the criteria to update in the parent rubric object
Copy link
Contributor

Choose a reason for hiding this comment

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

have you tried this.requestUpdate()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did, and it didn't work. I'm guessing because the "parent" doesn't know anything about the updated criteria?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me poke at it again...

@ern
Copy link
Contributor

ern commented Oct 1, 2024

conflicts

@maurercw
Copy link
Contributor Author

maurercw commented Oct 1, 2024

I see that you merged my other rubric PR, so I'll get this one updated to fix the conflicts, hopefully tonight.

@ern ern merged commit b0d7bea into sakaiproject:master Oct 8, 2024
5 checks passed
ern pushed a commit that referenced this pull request Oct 8, 2024
@maurercw maurercw deleted the SAK-50438 branch October 24, 2024 23:48
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