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(acl): allow data deletion for non-reserved predicates #8937

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

jbhamra1
Copy link
Contributor

@jbhamra1 jbhamra1 commented Aug 8, 2023

Description: when data (non-reserved predicates) is added on UIDs that belong to groot user or guardian group, it is allowed. But when the same data is deleted, that is not allowed. This PR allows deletion of non-reserved predicates on special UIDs.
Closes: https://dgraph.atlassian.net/browse/DGRAPHCORE-355
Docs: NA

@jbhamra1 jbhamra1 requested a review from mangalaman93 August 8, 2023 08:10
@dgraph-bot dgraph-bot added area/core internal mechanisms go Pull requests that update Go code labels Aug 8, 2023
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch from 18c91a1 to ab19652 Compare August 8, 2023 08:26
query/mutation.go Outdated Show resolved Hide resolved
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch 4 times, most recently from 27fa8a1 to 14a0c62 Compare August 8, 2023 11:50
@mangalaman93 mangalaman93 marked this pull request as ready for review August 8, 2023 13:16
@mangalaman93 mangalaman93 changed the title fix(upgrade): DGRAPHCORE-355: Allow data deletion for non-internal predicates fix(acl): allow data deletion for non-reserved predicates Aug 8, 2023
Copy link
Contributor

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

The change LGTM. We need to wait for the CI to pass. If it does, we should a few test cases, and then this PR would be ready to be merged.

@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch 2 times, most recently from de34ea8 to 1cdaf69 Compare August 9, 2023 12:31
query/mutation_test.go Outdated Show resolved Hide resolved
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch from 1cdaf69 to ca301e8 Compare August 9, 2023 17:40
mangalaman93
mangalaman93 previously approved these changes Aug 10, 2023
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch 5 times, most recently from f53ab0a to 418b2fe Compare August 10, 2023 12:14
query/mutation_test.go Outdated Show resolved Hide resolved
query/mutation_test.go Outdated Show resolved Hide resolved
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch from 418b2fe to 2c1bb46 Compare August 11, 2023 17:25
@jbhamra1 jbhamra1 force-pushed the jassi/defect_dgraphcore_355 branch from 2c1bb46 to 4ba9928 Compare August 12, 2023 08:10
@mangalaman93 mangalaman93 merged commit 8631dab into main Aug 16, 2023
@mangalaman93 mangalaman93 deleted the jassi/defect_dgraphcore_355 branch August 16, 2023 14:27
jbhamra1 added a commit that referenced this pull request Aug 17, 2023
when data (non-reserved predicates) is added on UIDs that
belong to groot user or guardian group, it is allowed. But when the same
data is deleted, that is not allowed. This PR allows deletion of
non-reserved predicates on special UIDs.

Closes: https://dgraph.atlassian.net/browse/DGRAPHCORE-355
jbhamra1 added a commit that referenced this pull request Aug 17, 2023
when data (non-reserved predicates) is added on UIDs that
belong to groot user or guardian group, it is allowed. But when the same
data is deleted, that is not allowed. This PR allows deletion of
non-reserved predicates on special UIDs.

Closes: https://dgraph.atlassian.net/browse/DGRAPHCORE-355
mangalaman93 added a commit that referenced this pull request Aug 18, 2023
mangalaman93 added a commit that referenced this pull request Aug 18, 2023
upgrade tests fail because of the change in the error. This PR undoes
the change in the error made in the PR #8937.
jbhamra1 pushed a commit that referenced this pull request Aug 18, 2023
upgrade tests fail because of the change in the error. This PR undoes
the change in the error made in the PR #8937.
mangalaman93 pushed a commit that referenced this pull request Aug 21, 2023
when data (non-reserved predicates) is added on UIDs that belong
to groot user or guardian group, it is allowed. But when the same
data is deleted, that is not allowed. This PR allows deletion of
non-reserved predicates on special UIDs.

Closes: https://dgraph.atlassian.net/browse/DGRAPHCORE-355
shivaji-kharse pushed a commit that referenced this pull request Mar 12, 2024
upgrade tests fail because of the change in the error. This PR undoes
the change in the error made in the PR #8937.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core internal mechanisms go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

4 participants