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

Frontend bug fixes around document updates #710

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Conversation

mbarnes
Copy link
Collaborator

@mbarnes mbarnes commented Oct 11, 2024

What this PR does

Spotted a couple bone-headed bugs I introduced into the frontend recently, both related to updating Cosmos documents with optimistic concurrency control.

Jira: Followup to ARO-10822 - Add concurrency controls around Cosmos DB
Link to demo recording:

Special notes for your reviewer

Matthew Barnes added 2 commits October 11, 2024 09:48
In the callback function for UpdateResourceDoc, we were using
the wrong ResourceDocument variable which means the ARM metadata
was not actually being recorded in Cosmos.
In the callback function for UpdateSubscriptionDoc, the logic was
structured in such a way that the updated subscription would never
be recorded in Cosmos.
@mjlshen mjlshen enabled auto-merge (rebase) October 11, 2024 14:01
@mjlshen mjlshen merged commit 306670b into main Oct 11, 2024
23 checks passed
@mjlshen mjlshen deleted the document-update-bugs branch October 11, 2024 14:02
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