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 number_of_spares field to catalogue items #416

Closed
3 tasks done
joelvdavies opened this issue Nov 8, 2024 · 1 comment · Fixed by #426
Closed
3 tasks done

Add number_of_spares field to catalogue items #416

joelvdavies opened this issue Nov 8, 2024 · 1 comment · Fixed by #426
Assignees
Labels
enhancement New feature or request

Comments

@joelvdavies
Copy link
Collaborator

joelvdavies commented Nov 8, 2024

This should

  • Default to None
  • Only be in the database model and get schemas - it should not be possible to set it on creation/edits (it will be calculated later)
  • Include a migration to add the field to all existing catalogue items (Again defaulting to None)

This is a simpler approach than the alternative of having the field non-optional at which point we would need the migration to also know the spares definition at the time of execution and would need all item creation requests to be blocked by the spares definition if it is not assigned.

@joelvdavies joelvdavies added the enhancement New feature or request label Nov 8, 2024
@joelvdavies joelvdavies changed the title Add spare field to catalogue items Add spares field to catalogue items Nov 8, 2024
@joelvdavies joelvdavies changed the title Add spares field to catalogue items Add number_of_spares field to catalogue items Nov 22, 2024
@joelvdavies
Copy link
Collaborator Author

joelvdavies commented Nov 22, 2024

Updated name as spares implied it contained a list of actual spares not just the number of spares.

@joelvdavies joelvdavies self-assigned this Nov 25, 2024
@joelvdavies joelvdavies moved this from Backlog to In Progress in Inventory Management System Nov 25, 2024
@joelvdavies joelvdavies moved this from In Progress to In Review in Inventory Management System Nov 25, 2024
joelvdavies added a commit that referenced this issue Dec 4, 2024
joelvdavies added a commit that referenced this issue Dec 5, 2024
Add `number_of_spares` field to catalogue items #416
@github-project-automation github-project-automation bot moved this from In Review to Done in Inventory Management System Dec 5, 2024
@VKTB VKTB moved this from Done to Archive in Inventory Management System Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Archive
Development

Successfully merging a pull request may close this issue.

1 participant