Improve restoring of access entities' dependencies#69346
Merged
vitlibar merged 4 commits intoClickHouse:masterfrom Sep 17, 2024
Merged
Improve restoring of access entities' dependencies#69346vitlibar merged 4 commits intoClickHouse:masterfrom
vitlibar merged 4 commits intoClickHouse:masterfrom
Conversation
Contributor
|
This is an automated comment for commit f768717 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
qoega
reviewed
Sep 10, 2024
ed656a6 to
e2b69a7
Compare
e2b69a7 to
0ead654
Compare
pufit
approved these changes
Sep 17, 2024
| for (auto & [id, entity] : my_entities) | ||
| { | ||
| UUID existing_entity_id; | ||
| if (!insert(id, entity, replace_if_exists, throw_if_exists, &existing_entity_id)) |
Member
There was a problem hiding this comment.
It's sad that we have to change 20+ files just to have existing_entity_id returned from the insert, but I guess it works.
0ead654 to
f768717
Compare
Member
Author
|
CI failure is wrong:
|
robot-clickhouse
added a commit
that referenced
this pull request
Sep 17, 2024
This was referenced Sep 17, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Sep 17, 2024
This was referenced Sep 17, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Sep 17, 2024
This was referenced Sep 17, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Sep 17, 2024
robot-ch-test-poll3
added a commit
that referenced
this pull request
Sep 27, 2024
Backport #69346 to 24.8: Improve restoring of access entities' dependencies
robot-ch-test-poll2
added a commit
that referenced
this pull request
Sep 27, 2024
Backport #69346 to 24.7: Improve restoring of access entities' dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Improve restoring of access entities' dependencies.
For example if before making a backup a role was granted to a user:
then during
RESTOREthe following cases are possible:u1and roler1both don't exist. ThenRESTOREwill recreate them both and that grant too.u1and roler1both exist. ThenRESTORE(with default settings) will skip them both and that grant too.u1doesn't exist and roler1exist. ThenRESTORE(with default settings) will recreate useru1, and (after this PR) that grant too.u1exists and roler1doesn't exist. ThenRESTORE(with default settings) will recreate roler1, but without granting it to existing useru1. This case will be improved in separate PR Improve restoring of access entities' dependencies #2 #69563