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(multi-tenancy): check existence before banning namespace #7887

Merged
merged 1 commit into from
May 31, 2023

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Jun 4, 2021

Before, the deleting a non-existent namespace would just ban the namespace. This would essentially not allow creating namespaces after this banned namespace. Now, we fail instead of banning a namespace that has not been even created yet.

NamanJain8
NamanJain8 previously approved these changes Jun 4, 2021
Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

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

LGTM. Please add a unit test for this.

@CLAassistant
Copy link

CLAassistant commented Apr 29, 2022

CLA assistant check
All committers have signed the CLA.

@mangalaman93 mangalaman93 changed the base branch from master to main May 31, 2023 06:37
@mangalaman93 mangalaman93 dismissed NamanJain8’s stale review May 31, 2023 06:37

The base branch was changed.

@mangalaman93 mangalaman93 requested review from harshil-goel and removed request for manishrjain and vvbalaji-dgraph May 31, 2023 06:39
@mangalaman93 mangalaman93 changed the title fix(multi-tenancy): Check namespace existence before banning namespace fix(multi-tenancy): check existence before banning namespace May 31, 2023
Before, the deleting a non-existent namespace would just ban
the namespace. This would essentially not allow creating
namespaces after this banned namespace. Now, we fail instead
of banning a namespace that has not been even created yet.
@mangalaman93 mangalaman93 merged commit 9013924 into main May 31, 2023
@mangalaman93 mangalaman93 deleted the ahsan/check-deleteNS branch May 31, 2023 16:36
dgraph-bot pushed a commit that referenced this pull request Jul 7, 2023
Before, the deleting a non-existent namespace would just ban the
namespace. This would essentially not allow creating namespaces after
this banned namespace. Now, we fail instead of banning a namespace that
has not been even created yet.

Co-authored-by: Aman Mangal <aman@dgraph.io>
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.

6 participants