Skip to content

fix: backfill missing metronome Ids #1215

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

Merged
merged 7 commits into from
May 18, 2023
Merged

fix: backfill missing metronome Ids #1215

merged 7 commits into from
May 18, 2023

Conversation

adilansari
Copy link
Contributor

@adilansari adilansari commented May 18, 2023

Describe your changes

  • This implements backfill for missing metronome account ids
  • If metronome account Id is missing, get it from metronome and save it in meta store

How best to test these changes

  • Unit tests

Issue ticket number and link

@reviewpad reviewpad bot added the large label May 18, 2023
@adilansari adilansari force-pushed the metronome-backfill branch 2 times, most recently from 5fe6964 to a644f9f Compare May 18, 2023 20:31
@adilansari adilansari marked this pull request as ready for review May 18, 2023 20:52
@adilansari adilansari changed the title fix: get customer if namespace does not exist fix: backfill missing metronome Ids May 18, 2023
@adilansari adilansari force-pushed the metronome-backfill branch from a2b4555 to 3596ae9 Compare May 18, 2023 20:55
}
} else {
// check if we received HTTP 409 from billing svc, in that case namespaceId already exists there
var metronomeError *MetronomeError
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can move this to a helper method, IsBillingAccountExists

himank
himank previously approved these changes May 18, 2023
@adilansari
Copy link
Contributor Author

pushing because initial version was anyways approved except the last 1 liner change in unit tests.

@adilansari adilansari merged commit 50536f5 into main May 18, 2023
@adilansari adilansari deleted the metronome-backfill branch May 18, 2023 21:27
@tigrisdata-argocd-bot
Copy link
Collaborator

🎉 This PR is included in version 1.0.0-beta.103 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants