Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5527 +/- ##
============================================
- Coverage 9.12% 8.71% -0.41%
- Complexity 1170 1187 +17
============================================
Files 701 713 +12
Lines 45281 45590 +309
Branches 10851 10909 +58
============================================
- Hits 4131 3975 -156
- Misses 40497 41033 +536
+ Partials 653 582 -71 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
awalkowiak
requested changes
Oct 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Description of Change
Link to GitHub issue or Jira ticket: fixes #5392, closes #165
Description: We removed the "product snapshot" feature (not to be confused with the inventory snapshot feature) from the stock card in #5269 (behind the scenes this feature did a record stock containing the current stock for the product, so essentially it did what we have now for baselines but using the product inventory transaction type). This PR is just removing the extra code that I forgot to also remove as a part of that original PR.
Note that you can still achieve this "snapshot" functionality by simply doing a record stock and clicking save without making any changes.
EDIT: Artur pointed out this snapshot was being used in the old inventory migration code so I changed that to create a baseline transaction snapshot instead.
I tested the migration and it seems to be working. Before migration:

After migration:
