unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4k stars 469 forks source link

Unnecessary database calls triggered by API-name update without actually changing the name #812

Closed ashrafchowdury closed 8 months ago

ashrafchowdury commented 9 months ago

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

When users attempt to update their API names without making any actual changes, the system is still triggering unnecessary database calls. The bug occurs during the update process, even when there is no modification made to the user's name.

Steps to Reproduce

  1. Log in to the application
  2. Navigate to the API settings.
  3. Click on the "Save" button to save the API name.

Expected behavior

The system should recognize that there are no actual changes made to the API's name and should not initiate any database calls or updates.

Other information

No response

Screenshots

https://github.com/unkeyed/unkey/assets/87828904/b66db6c4-f2cd-4994-b2ae-070c0160ca37

Version info

- OS: Windows 11
- Node: v20.9.0
- npm: 10.1.0
linear[bot] commented 9 months ago

ENG-443 Unnecessary database calls triggered by API-name update without actually changing the name

ashrafchowdury commented 9 months ago

I would like to work on this issue if it gets approved ⚒️

chronark commented 9 months ago

oh true, let's go