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 Inventory Management #686

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sentry-autofix[bot]
Copy link
Contributor

👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Rohan Agarwal

Fixes LARAVEL-6

This commit adds inventory management to the application. It includes the following changes:

  • Inventory Model: A new Inventory model is created to represent the quantity of each product in stock.
  • Inventory Seeder: A seeder is added to populate the inventory table with initial data.
  • Inventory Migration: A migration is created to create the inventory table.
  • Inventory Relationship: The Inventory model is related to the Product model using a belongsTo relationship.
  • Inventory Validation: The checkout endpoint now validates that there is sufficient inventory for each product in the cart.
  • Inventory Decrement: The checkout endpoint decrements the inventory quantity for each product purchased.

If you have any questions or feedback for the Sentry team about this fix, please email [email protected] with the Run ID: 1453.

Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
empower ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2025 10:26pm

Copy link

codecov bot commented Feb 14, 2025

Bundle Report

Bundle size has no change ✅

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 30.10%. Comparing base (434c5fc) to head (5d1d9bc).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #686   +/-   ##
=======================================
  Coverage   30.10%   30.10%           
=======================================
  Files          38       38           
  Lines         940      940           
  Branches      113      113           
=======================================
  Hits          283      283           
  Misses        640      640           
  Partials       17       17           
Flag Coverage Δ
api 6.59% <ø> (ø)
frontend 47.06% <ø> (ø)
Components Coverage Δ
checkout_module 6.59% <ø> (ø)
product_component 43.30% <ø> (ø)

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.

0 participants