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

fix(api-sdk): updated cq directory handling code #1575

Merged
merged 27 commits into from
Feb 23, 2024

Conversation

RamilGaripov
Copy link
Contributor

@RamilGaripov RamilGaripov commented Feb 5, 2024

refs. metriport/metriport-internal#1350

Dependencies

Description

  • Updated the CQDirectoryModel to include 2 new fields: gateway (to indicate whether an org is a gateway or not, and managing_organization
  • Added migration files to update the table
  • Improved OID extraction regex
  • Added code to post-process CQ directory rebuilding to find all gateways in the directory
  • Added CQ XCPD prep logic that prevents requests to CW

Testing

  • Local
    • Local testing of both staging and prod directories

Release Plan

  • ⚠️ This contains a DB migration
  • Upstream dependencies are met/released
  • Release NPM packages
  • Merge this
  • Action on staging and production:
    • rebuild cq directory on staging
    • rebuild cq directory on prod

@RamilGaripov RamilGaripov marked this pull request as ready for review February 8, 2024 04:53
@leite08
Copy link
Member

leite08 commented Feb 12, 2024

There's no script to update the DB's existing entries b/c we're assuming it will be re-built, right?

jonahkaye added a commit that referenced this pull request Feb 13, 2024
Copy link
Member

@jonahkaye jonahkaye left a comment

Choose a reason for hiding this comment

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

Re: regex and unit testing LGTM

Copy link
Member

@leite08 leite08 left a comment

Choose a reason for hiding this comment

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

Also please check unanswered comments from prior review

@RamilGaripov RamilGaripov marked this pull request as draft February 22, 2024 16:21
@RamilGaripov RamilGaripov marked this pull request as ready for review February 22, 2024 18:04
Copy link
Member

@leite08 leite08 left a comment

Choose a reason for hiding this comment

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

Approved considering no changes on how we deal w/ CQ gateways.

Copy link
Member

@Goncharo Goncharo left a comment

Choose a reason for hiding this comment

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

:shipit:

@RamilGaripov RamilGaripov merged commit 1516dc0 into develop Feb 23, 2024
29 checks passed
@RamilGaripov RamilGaripov deleted the 1350-cq-directory-upd branch February 23, 2024 19:40
Copy link

🎉 This PR is included in version 5.63.0-develop.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 5.64.0-develop.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 5.64.0 🎉

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.

None yet

4 participants