-
Notifications
You must be signed in to change notification settings - Fork 555
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
Soft deleting a ratelimit namespace causes an error if the same name is used again. #2869
Comments
Can I give it a shot? if it is not planned internally |
@harshsbhat how do you plan to tackle it? |
Before inserting the namespace into the database we can check if the namespace is soft deleted or not.
If it is soft deleted we can simply update the table for This will allow the user to restore the namespace without manual intervention. |
Also, I just checked we need to change the |
Preliminary Checks
I have reviewed the documentation: https://unkey.com/docs
I have searched for existing issues: https://github.com/unkeyed/unkey/issues
This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.
Reproduction / Replay Link (Optional)
No response
Issue Summary
As a user if someone deletes a namespace by accident from our ratelimit for example
user.delete
They are unable to create a new namespace with the name of
user.delete
when they attempt it they get:We should allow recreation or allow restoration without our intervention
Steps to Reproduce
Expected behavior
Allow for the same namespace to be used again after soft delete or gracefully allow for restoration.
Other information
No response
Screenshots
No response
Version info
The text was updated successfully, but these errors were encountered: