Skip to content

Soft deleting a ratelimit namespace causes an error if the same name is used again. #2869

Open
@perkinsjr

Description

@perkinsjr

Preliminary Checks

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:

{
    "code": "INTERNAL_SERVER_ERROR",
    "httpStatus": 500,
    "stack": "TRPCError: We are unable to create namspace. Please try again or contact [email protected]\n    at (vc/edge/function:1030:252976)\n    at (vc/edge/function:1030:252400)\n    at (vc/edge/function:295:130122)\n    at (vc/edge/function:295:129531)\n    at (vc/edge/function:295:129531)\n    at (vc/edge/function:295:129531)\n    at (vc/edge/function:295:129841)\n    at (vc/edge/function:1040:13815)\n    at (vc/edge/function:1040:15263)",
    "path": "ratelimit.namespace.create"
}

We should allow recreation or allow restoration without our intervention

Steps to Reproduce

  1. delete namespace
  2. recreate namespace with same name
  3. error

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

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions