unkey icon indicating copy to clipboard operation
unkey copied to clipboard

Deleting the override doesn't remove it from the overrides. Refreshing it will give you a client side error.

Open harshsbhat opened this issue 1 year ago â€ĸ 27 comments

Preliminary Checks

  • [X] I have reviewed the documentation: https://unkey.com/docs

  • [X] I have searched for existing issues: https://github.com/unkeyed/unkey/issues

  • [X] 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

After deleting the override it is still displayed in the overrides. If you click on it the whole UI breaks

Steps to Reproduce

  1. Go to a /ratelimit and create a new ratelimit
  2. Create a new override and delete it.
  3. It is still displayed under all overrides.
  4. If you refresh it the whole UI will break image

Expected behavior

Once deleted it should not be visbile in the ratelimit/id/overrides .

Other information

No response

Screenshots

https://www.loom.com/share/030e5263e3ea44c5bdc1d03c882b790a?sid=53973849-b8a4-49a0-9c5d-18fc91b79fe4

Version info

- OS:
- Node:
- npm:

harshsbhat avatar Oct 07 '24 14:10 harshsbhat

We're probably not checking the deletedAt column when doing the query to list all ratelimits

that should fix this I believe

chronark avatar Oct 07 '24 14:10 chronark

/award 150

chronark avatar Oct 07 '24 14:10 chronark

Awarding harshsbhat: 150 points đŸ•šī¸ Well done! Check out your new contribution on oss.gg/harshsbhat

oss-gg[bot] avatar Oct 07 '24 14:10 oss-gg[bot]

/assign

HarshitVashisht11 avatar Oct 07 '24 16:10 HarshitVashisht11

Assigned to @HarshitVashisht11! Please open a draft PR linking this issue within 48h âš ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đŸ•šī¸ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 07 '24 16:10 oss-gg[bot]

@HarshitVashisht11, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

oss-gg[bot] avatar Oct 09 '24 04:10 oss-gg[bot]

/assign

AakashRao-dev avatar Oct 10 '24 12:10 AakashRao-dev

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 10 '24 12:10 oss-gg[bot]

/unassign

HarshitVashisht11 avatar Oct 10 '24 13:10 HarshitVashisht11

Issue unassigned.

oss-gg[bot] avatar Oct 10 '24 13:10 oss-gg[bot]

/assign

alokdangre avatar Oct 10 '24 13:10 alokdangre

Assigned to @Studycode001! Please open a draft PR linking this issue within 48h âš ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đŸ•šī¸ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 10 '24 13:10 oss-gg[bot]

/assign

Usmanxs avatar Oct 11 '24 05:10 Usmanxs

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 05:10 oss-gg[bot]

/assign

shindebhavika avatar Oct 11 '24 07:10 shindebhavika

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 07:10 oss-gg[bot]

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 15:10 oss-gg[bot]

/assign

nilaygit-10721 avatar Oct 12 '24 02:10 nilaygit-10721

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 12 '24 02:10 oss-gg[bot]

/assign

aniket607 avatar Oct 12 '24 21:10 aniket607

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 12 '24 21:10 oss-gg[bot]

/assign

no-naame avatar Oct 14 '24 05:10 no-naame

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 14 '24 05:10 oss-gg[bot]

/assign

Vardhaman619 avatar Oct 15 '24 15:10 Vardhaman619

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 15 '24 15:10 oss-gg[bot]

@Studycode001 Hey are you working on this? Since it has been 3 weeks I would like to take over if you are not working on it.

harshsbhat avatar Nov 07 '24 06:11 harshsbhat