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 support for subscriptionID on AzureSQL types #2910

Merged
merged 3 commits into from
May 3, 2023

Conversation

matthchr
Copy link
Member

If applicable:

  • this PR contains documentation
  • this PR contains tests

Copy link
Member

@theunrepentantgeek theunrepentantgeek left a comment

Choose a reason for hiding this comment

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

A bit of pedantry in a couple of comments, nothing else.

@@ -62,8 +68,14 @@ func (m *AzureSqlFailoverGroupManager) GetDB(ctx context.Context, resourceGroupN

// TODO: Delete this?
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be actioned or deleted in this PR?

@@ -48,8 +48,8 @@ func NewAzureSqlUserManager(creds config.Credentials, secretClient secrets.Secre
}

// GetDB retrieves a database
func (m *AzureSqlUserManager) GetDB(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (azuresql.Database, error) {
dbClient, err := azuresqlshared.GetGoDbClient(m.Creds)
func (m *AzureSqlUserManager) GetDB(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string) (azuresql.Database, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe format these parameters one per line too?

@theunrepentantgeek
Copy link
Member

/ok-to-test sha=c425ca6

@codecov-commenter
Copy link

codecov-commenter commented May 1, 2023

Codecov Report

Merging #2910 (d093692) into main (a02d3ec) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2910   +/-   ##
=======================================
  Coverage   54.36%   54.36%           
=======================================
  Files        1271     1271           
  Lines      553508   553508           
=======================================
+ Hits       300889   300906   +17     
+ Misses     203406   203394   -12     
+ Partials    49213    49208    -5     

see 8 files with indirect coverage changes

@matthchr
Copy link
Member Author

matthchr commented May 3, 2023

/ok-to-test sha=d093692

@matthchr matthchr merged commit a93ed94 into Azure:main May 3, 2023
8 checks passed
@matthchr matthchr deleted the feature/asov1-azuresql-subscriptionid branch May 3, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants