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

Add global cluster support for advanced cluster #337

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

Sugar-pack
Copy link
Contributor

Description

Update the API version for the global cluster (add support for advanced cluster).
Update managed namespace struct (full compatibility with API)

Link to any related issue(s):

Type of change:

  • Bug fix (non-breaking change which fixes an issue)

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

@Sugar-pack Sugar-pack requested a review from a team as a code owner December 27, 2022 05:50
@Sugar-pack Sugar-pack changed the title Add global cluster support for advanced custer Add global cluster support for advanced cluster Dec 27, 2022
@@ -31,7 +31,7 @@ func TestGlobalClusters_Get(t *testing.T) {
groupID := "1"
clusterName := "appData"

mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.0/groups/%s/clusters/%s/globalWrites", groupID, clusterName), func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.5/groups/%s/clusters/%s/globalWrites", groupID, clusterName), func(w http.ResponseWriter, r *http.Request) {
Copy link
Contributor

Choose a reason for hiding this comment

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

One question, not to @Sugar-pack probably. This path is quite similar to the one defined by the globalClustersBasePath constant. Maybe it would be better to use this constant here and in other places.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Sugar-pack Sugar-pack force-pushed the update_global_cluster branch from 8828896 to 5c15a70 Compare January 3, 2023 09:14
@Sugar-pack Sugar-pack force-pushed the update_global_cluster branch from 5c15a70 to 6b2fc93 Compare January 3, 2023 09:16
Copy link
Contributor

@andmatei andmatei left a comment

Choose a reason for hiding this comment

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

LGTM

@igor-karpukhin
Copy link
Contributor

@AndreiMatei2206 could you please merge this PR?

@colm-quinn colm-quinn merged commit 3230017 into mongodb:master Jan 5, 2023
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.

4 participants