423S25 / repo2

https://423s25.github.io/repo2/
MIT License
0 stars 1 forks source link

Add Logs for Inventory Items #5

Closed NolanJenko closed 2 months ago

NolanJenko commented 3 months ago

Add Logs for Inventory Items

A feature that needs to be added is to allow tracking of changes made to InventoryItems by each user. So any time a user updates the count of an item or changes its category, etc, that change needs to be tracked. The main reason for this is to allow administrators to keep track of change made and possibly revert those changes if an unwanted change was made. Another reason is that this feature would allow advanced analytics be made on each item to track consumption and stock.

Drawbacks

There are really no drawbacks to this feature other than added complexity to the app. However, I think it is a necessary change that needs to be made going forward.

Alternatives

By adding transactions to our database we could track the changes made to the database each time and might not necessarily need to make a dedicated table. However, more research would need to be done on this as unsure of the complexity to access such transactions.

NolanJenko commented 3 months ago

Joe found a package called simple-history for django that allows tracking of changes made to the database. Should be able to close this issue once those changes have been merged into main.

NolanJenko commented 2 months ago

Closing as part of #14