-
Notifications
You must be signed in to change notification settings - Fork 981
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
Cleaning up logging in dataconnect:sql:setup #8380
Conversation
src/gcp/cloudsql/permissionsSetup.ts
Outdated
@@ -343,21 +340,23 @@ export async function setupBrownfieldAsGreenfield( | |||
const schema = schemaInfo.name; | |||
|
|||
const firebaseOwnerRole = firebaseowner(databaseId, schema); | |||
const uniqueTablesOwners = filterTableOwners(schemaInfo, databaseId); | |||
const nonFirebasetablesOwners = [...new Set(schemaInfo.tables.map((t) => t.owner))].filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is intentional or not but this is a regression, I think we should keep filterTableOwners or make sure to be also filter CLOUDSQL_SUPER_USER.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely, this was just a screwed up merge. Fixing now
@@ -394,8 +393,8 @@ export async function brownfieldSqlSetup( | |||
) { | |||
const schema = schemaInfo.name; | |||
|
|||
// Step 1: Grant firebasesuperuser access to the original owner. | |||
const uniqueTablesOwners = filterTableOwners(schemaInfo, databaseId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Description
A couple logging clean ups:
Scenarios Tested