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

Add status Column to the Image Table #3615

Open
jopemachine opened this issue Feb 10, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #3619
Open

Add status Column to the Image Table #3615

jopemachine opened this issue Feb 10, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #3619
Assignees

Comments

@jopemachine
Copy link
Member

Motivation  

  • We need a dedicated column to indicate the current state of each image (e.g., ready, pulled, deleted).
  • This will enable a soft delete mechanism by setting the status to deleted instead of immediately removing the record.

Required Features

  • Add a new status column in the Image table (e.g., enum or string type).
  • Define default value (ready) and allow future transitions to states like pulled, deleted, etc.

Impact  

  • The database schema will be modified to include the new column.
  • Existing queries or services that retrieve Image data may need to handle the new status field.

Testing Scenarios  

  • Verify that newly created Image records have a default status (e.g., ready).
  • Test status updates from ready to pulled and from any status to deleted.
  • Validate that existing operations on the Image table still function correctly.
@jopemachine jopemachine self-assigned this Feb 10, 2025
@jopemachine jopemachine linked a pull request Feb 10, 2025 that will close this issue
3 tasks
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 a pull request may close this issue.

1 participant