Skip to content
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

Merged
merged 20 commits into from
Sep 5, 2024

Conversation

malmen237
Copy link

@malmen237 malmen237 commented Aug 28, 2024

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:

Screenshot 2024-08-30 at 14 48 24

When a source is in-active and removable:

Screenshot 2024-08-30 at 15 04 21

birme pushed a commit that referenced this pull request Aug 30, 2024
chore: build and push image on release (#5)
@malmen237 malmen237 marked this pull request as ready for review August 30, 2024 12:46
Copy link

@bwallberg bwallberg left a 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 👍

@malmen237 malmen237 changed the title feat: first commit of source-delete, with basic styling and fetches feat: delete source from inventory Aug 30, 2024
@malmen237 malmen237 changed the title feat: delete source from inventory Delete "dead" source from inventory Aug 30, 2024
@malmen237 malmen237 force-pushed the feat/delete-source-from-inventory branch from 64a1b7c to 29ef5ba Compare September 5, 2024 05:21
Copy link

@Saelmala Saelmala left a 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

@malmen237 malmen237 merged commit 2d9ac25 into main Sep 5, 2024
4 checks passed
@malmen237 malmen237 deleted the feat/delete-source-from-inventory branch November 7, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants