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

fix(upgrade): make upgrade tool to work with non-acl cluster #7674

Merged
merged 2 commits into from
Apr 1, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Mar 31, 2021

For the upgrade in versions <= 20.07, dgraph upgrade tool updates the acl relates data. Hence, it had --acl flag. With the update of the upgrade tool for 21.03, it should work without ACL as well. This PR adds that support.


This change is Reviewable

Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @manishrjain, @NamanJain8, and @vvbalaji-dgraph)


upgrade/change_v21.03.0.go, line 155 at r1 (raw file):

 len(Upgrade.Conf.GetString(user)) > 0

maybe put this in a function: hasAclCreds() bool and use that at all the 3 places.

@NamanJain8 NamanJain8 merged commit dded71f into release/v21.03 Apr 1, 2021
@NamanJain8 NamanJain8 deleted the naman/upgrade-non-acl branch April 1, 2021 06:42
aman-bansal pushed a commit that referenced this pull request Apr 8, 2021
For the upgrade in versions <= 20.07, dgraph upgrade tool updates the acl relates data. Hence, it had --acl flag. With the update of the upgrade tool for 21.03, it should work without ACL as well. This PR adds that support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants