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

Update zoom record after populated from response #585

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

smbader
Copy link
Contributor

@smbader smbader commented Apr 4, 2024

Update the zoom record in Moodle after populating the object from the response. This is good for fields that Zoom may have updated or sent back that aren't a part of the form such as join_url.

Fixes #303

@smbader smbader added the bug Fixes problems or reduces technical debt label Apr 4, 2024
@smbader smbader requested a review from a team April 4, 2024 17:37
@smbader smbader self-assigned this Apr 4, 2024
Copy link
Collaborator

@jrchamp jrchamp left a comment

Choose a reason for hiding this comment

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

This extra update will make sure that fields which Zoom is the source of truth for are also updated on the Moodle side. As long as populate_zoom_from_response() does not include any fields for which Moodle should be the source of truth, this should work well.

A future update should be able to reduce the number of update_record calls. For example, if the update_meeting() API call fails, then we don't want to save values locally that Zoom is the source of truth for. However, we would still want to save values locally that Moodle is the source of truth for.

@jrchamp jrchamp merged commit ad99325 into ncstate-delta:main Apr 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes problems or reduces technical debt
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

join_url not saved when I change password in activity module
2 participants