Administrators cannot release/purge or restore gateway IDs in the console if they have been deleted by other users or through API, even though they show up under "Deleted (Admin)". The EUI is released correctly.
When trying to restore or purge, the server makes a request to api/v3/gateways/{gateway_id}/rights, which returns 404.
Steps to Reproduce
Create a gateway using API or console
Delete the gateway using API or console (and not purging it here)
Go into Gateways section, click on "Deleted (Admin)"
See list of deleted gateways, click either "Restore" or "Purge"
Server returns 404 on api/v3/gateways/{gateway_id}/rights
The service is expected to either restore or purge here.
If deleting a gateway manually as admin, and ticking the option to purge ID, it works as expected.
What is already there? What do you see now?
Selecting to purge when deleting gateway works as expected.
Choosing to purge after gateway has been deleted returns 404, due to gateway rights returning 404.
Screenshot of deleted gateway:
Clicking purge makes website load forever with "Fetching data..."
Screenshot of request when clicking purge:
What is missing? What do you want to see?
Gateway should be restored or purged.
Environment
Running Chrome Version 95.0.4638.69 (Official Build) (arm64)
Summary
Administrators cannot release/purge or restore gateway IDs in the console if they have been deleted by other users or through API, even though they show up under "Deleted (Admin)". The EUI is released correctly. When trying to restore or purge, the server makes a request to api/v3/gateways/{gateway_id}/rights, which returns 404.
Steps to Reproduce
The service is expected to either restore or purge here. If deleting a gateway manually as admin, and ticking the option to purge ID, it works as expected.
What is already there? What do you see now?
Selecting to purge when deleting gateway works as expected. Choosing to purge after gateway has been deleted returns 404, due to gateway rights returning 404.
Screenshot of deleted gateway:
Clicking purge makes website load forever with "Fetching data..." Screenshot of request when clicking purge:
What is missing? What do you want to see?
Gateway should be restored or purged.
Environment
How do you propose to implement this?
Can you do this yourself and submit a Pull Request?
No. ...