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

Minor cleanup changes #44

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Minor cleanup changes #44

merged 2 commits into from
Nov 6, 2024

Conversation

ondrajodas
Copy link
Contributor

No description provided.

@@ -106,7 +106,7 @@ public function preMigration(string $mainRoleName): void

$hasMainRoleOwnership = array_reduce(
$mainRole,
fn ($found, $v) => $found || $v['owner'] === $this->config->getTargetSnowflakeUser(),
fn ($found, $v) => $found || $v['owner'] === $this->config->getTargetSnowflakeRole(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ownership je na roli ne na uživatele

Comment on lines +160 to +163
$this->destinationConnection->grantRoleToUser(
$this->config->getTargetSnowflakeUser(),
$currentRole,
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

jen přepsání - výsledek stejný

Comment on lines +168 to +172
$this->destinationConnection->grantRoleToUser(
$this->config->getTargetSnowflakeUser(),
$role['granted_by'],
);
$this->destinationConnection->useRole($role['granted_by']);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nagrantování role uživateli pokud jí nemá - při cleanupu se zase odstraňuje

@ondrajodas ondrajodas requested a review from romantmb November 5, 2024 21:47
Copy link
Contributor

@romantmb romantmb left a comment

Choose a reason for hiding this comment

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

👍

@ondrajodas ondrajodas merged commit 417961b into main Nov 6, 2024
4 checks passed
@ondrajodas ondrajodas deleted the ondra-fix-typo branch November 6, 2024 10:15
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.

2 participants