-
Notifications
You must be signed in to change notification settings - Fork 0
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
Delete "dead" source from inventory #4
Conversation
chore: build and push image on release (#5)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes but UI and so is great 👍
…ting sources from api
64a1b7c
to
29ef5ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! In the future maybe we want to add like a spinning wheel to the button while the delete is happening for better UX but that can be a future improvement
What does this PR do:
The API isn't making it possible to delete the sources that are no longer active. To make the source-list less cluttered the "dead" sources statuses gets updated to "purge", with a possibility to use this later if it becomes possible to delete the sources from the API.
There is two ways that a source becomes "purge":d, either by manually set bu the user in the inventory or by having the status "gone" for more than 30 days.
A source with status other than "gone" cannot be set to "purge" and if a source with status "purge" were to become active again it would have its status set to "new".
When a source is active and therefore not possible to remove:
When a source is in-active and removable: