Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.0] fix unified perms oob migrator#50154

Merged
coury-clark merged 1 commit into
5.0from
backport-50147-to-5.0
Mar 30, 2023
Merged

[Backport 5.0] fix unified perms oob migrator#50154
coury-clark merged 1 commit into
5.0from
backport-50147-to-5.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Turns out our progress was not reporting correctly, because certain rows were not migrated. This was caused by bad query in migrator itself, because if there were no permissions (empty object_ids_ints array), we had no rows in the s set of the subquery. This s subquery was subsequently used to update the migrated column, but we should have instead used the candidates subquery.

Hope the description makes sense, code change should be self explanatory.

Test plan

Turns out our progress was not reporting correctly, because certain rows
were not migrated. This was caused by bad query in migrator itself,
because if there were no permissions (empty `object_ids_ints` array), we
had no rows in the `s` set of the subquery. This `s` subquery was
subsequently used to update the `migrated` column, but we should have
instead used the `candidates` subquery.

Hope the description makes sense, code change should be self
explanatory.

## Test plan

- [x] Unit tested
- [x] Verify on S2 that this is the case

(cherry picked from commit 9056cbd)
@github-advanced-security

Copy link
Copy Markdown

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@coury-clark coury-clark merged commit 61d957d into 5.0 Mar 30, 2023
@coury-clark coury-clark deleted the backport-50147-to-5.0 branch March 30, 2023 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants