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

[pull] develop from medusajs:develop #10

Open
wants to merge 383 commits into
base: develop
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 20, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

Summary by Sourcery

Update dependencies to 2.1.3 and add support for custom line items.

New Features:

  • Support custom line items.

Tests:

  • Use useQueryGraphStep instead of useQueryStep.
  • Refresh payment collections upon shipping changes.
  • Export getItemTaxLinesStep.

@pull pull bot added the ⤵️ pull label Dec 20, 2024
Copy link

sourcery-ai bot commented Dec 20, 2024

Reviewer's Guide by Sourcery

This PR updates the Medusa project to version 2.1.3, updating core modules and dependencies to the latest versions.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Version bump
  • Updated version from 2.1.2 to 2.1.3
  • Updated @medusajs/framework dependency to 2.1.3
  • Updated other Medusa dependencies to 2.1.3
packages/medusa/package.json
Changelog
  • Added changelog entry for version 2.1.3
packages/medusa/CHANGELOG.md
Integration tests
  • Added changelog entry for version 1.0.6
integration-tests/http/CHANGELOG.md
Admin dashboard
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
packages/admin/dashboard/package.json
Framework
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/core/framework/package.json
packages/core/framework/CHANGELOG.md
Core flows
  • Added changelog entry for version 2.1.3
packages/core/core-flows/CHANGELOG.md
Types
  • Added changelog entry for version 2.1.3
packages/core/types/CHANGELOG.md
Utils
  • Added changelog entry for version 2.1.3
packages/core/utils/CHANGELOG.md
Admin bundler
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/admin/admin-bundler/package.json
packages/admin/admin-bundler/CHANGELOG.md
Workflows SDK
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/core/workflows-sdk/CHANGELOG.md
packages/core/workflows-sdk/package.json
CLI
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/cli/medusa-cli/CHANGELOG.md
packages/cli/medusa-cli/package.json
OAS CLI
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/cli/oas/medusa-oas-cli/CHANGELOG.md
packages/cli/oas/medusa-oas-cli/package.json
Modules SDK
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/core/modules-sdk/CHANGELOG.md
packages/core/modules-sdk/package.json
Orchestration
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/core/orchestration/CHANGELOG.md
packages/core/orchestration/package.json
Design System UI
  • Updated React and ReactDom peer dependencies to support version 19
packages/design-system/ui/package.json
Admin SDK
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/admin/admin-sdk/CHANGELOG.md
packages/admin/admin-sdk/package.json
Admin Vite Plugin
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/admin/admin-vite-plugin/CHANGELOG.md
packages/admin/admin-vite-plugin/package.json
Create Medusa App
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/cli/create-medusa-app/CHANGELOG.md
packages/cli/create-medusa-app/package.json
OAS Github CI
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/cli/oas/oas-github-ci/CHANGELOG.md
packages/cli/oas/oas-github-ci/package.json
JS SDK
  • Updated version to 2.1.3
  • Updated dependencies to 2.1.3
  • Added changelog entry for version 2.1.3
packages/core/js-sdk/CHANGELOG.md
packages/core/js-sdk/package.json
Admin Shared
  • Updated version to 2.1.3
  • Added changelog entry for version 2.1.3
packages/admin/admin-shared/CHANGELOG.md
packages/admin/admin-shared/package.json
Medusa Dev CLI
  • Updated version to 2.1.3
  • Added changelog entry for version 2.1.3
packages/cli/medusa-dev-cli/CHANGELOG.md
packages/cli/medusa-dev-cli/package.json
Icons
  • Updated version to 2.1.3
  • Added React 19 to peer dependencies
  • Added changelog entry for version 2.1.3
packages/design-system/icons/CHANGELOG.md
packages/design-system/icons/package.json
Toolbox
  • Updated version to 2.1.3
  • Added changelog entry for version 2.1.3
packages/design-system/toolbox/CHANGELOG.md
packages/design-system/toolbox/package.json
UI Preset
  • Updated version to 2.1.3
  • Added changelog entry for version 2.1.3
packages/design-system/ui-preset/CHANGELOG.md
packages/design-system/ui-preset/package.json
Medusa test utils
  • Updated version to 2.1.3
  • Added changelog entry for version 2.1.3
packages/medusa-test-utils/CHANGELOG.md
packages/medusa-test-utils/package.json
All remaining medusa modules
  • Updated version to 2.1.3
  • Updated dependencies
  • Added changelog entry for version 2.1.3
packages/modules/api-key/CHANGELOG.md
packages/modules/api-key/package.json
packages/modules/auth/CHANGELOG.md
packages/modules/auth/package.json
packages/modules/cart/CHANGELOG.md
packages/modules/cart/package.json
packages/modules/currency/CHANGELOG.md
packages/modules/currency/package.json
packages/modules/customer/CHANGELOG.md
packages/modules/customer/package.json
packages/modules/file/CHANGELOG.md
packages/modules/file/package.json
packages/modules/fulfillment/CHANGELOG.md
packages/modules/fulfillment/package.json
packages/modules/index/CHANGELOG.md
packages/modules/index/package.json
packages/modules/inventory/CHANGELOG.md
packages/modules/inventory/package.json
packages/modules/link-modules/CHANGELOG.md
packages/modules/link-modules/package.json
packages/modules/locking/CHANGELOG.md
packages/modules/locking/package.json
packages/modules/notification/CHANGELOG.md
packages/modules/notification/package.json
packages/modules/order/CHANGELOG.md
packages/modules/order/package.json
packages/modules/payment/CHANGELOG.md
packages/modules/payment/package.json
packages/modules/pricing/CHANGELOG.md
packages/modules/pricing/package.json
packages/modules/product/CHANGELOG.md
packages/modules/product/package.json
packages/modules/promotion/CHANGELOG.md
packages/modules/promotion/package.json
packages/modules/region/CHANGELOG.md
packages/modules/region/package.json
packages/modules/sales-channel/CHANGELOG.md
packages/modules/sales-channel/package.json
packages/modules/stock-location/CHANGELOG.md
packages/modules/stock-location/package.json
packages/modules/store/CHANGELOG.md
packages/modules/store/package.json
packages/modules/tax/CHANGELOG.md
packages/modules/tax/package.json
packages/modules/user/CHANGELOG.md
packages/modules/user/package.json
packages/modules/workflow-engine-inmemory/CHANGELOG.md
packages/modules/workflow-engine-inmemory/package.json
packages/modules/workflow-engine-redis/CHANGELOG.md
packages/modules/workflow-engine-redis/package.json
packages/modules/providers/auth-emailpass/CHANGELOG.md
packages/modules/providers/auth-emailpass/package.json
packages/modules/providers/auth-github/CHANGELOG.md
packages/modules/providers/auth-github/package.json
packages/modules/providers/auth-google/CHANGELOG.md
packages/modules/providers/auth-google/package.json
packages/modules/providers/file-local/CHANGELOG.md
packages/modules/providers/file-local/package.json
packages/modules/providers/file-s3/CHANGELOG.md
packages/modules/providers/file-s3/package.json
packages/modules/providers/fulfillment-manual/CHANGELOG.md
packages/modules/providers/fulfillment-manual/package.json
packages/modules/providers/locking-postgres/CHANGELOG.md
packages/modules/providers/locking-postgres/package.json
packages/modules/providers/locking-redis/CHANGELOG.md
packages/modules/providers/locking-redis/package.json
packages/modules/providers/notification-local/CHANGELOG.md
packages/modules/providers/notification-local/package.json
packages/modules/providers/notification-sendgrid/CHANGELOG.md
packages/modules/providers/notification-sendgrid/package.json
packages/modules/providers/payment-stripe/CHANGELOG.md
packages/modules/providers/payment-stripe/package.json
packages/medusa-telemetry/CHANGELOG.md
packages/medusa-telemetry/package.json
integration-tests/http/package.json
packages/core/types/package.json
packages/core/core-flows/package.json
packages/core/utils/package.json
packages/modules/cache-inmemory/CHANGELOG.md
packages/modules/cache-inmemory/package.json
packages/modules/cache-redis/CHANGELOG.md
packages/modules/cache-redis/package.json
packages/modules/event-bus-local/CHANGELOG.md
packages/modules/event-bus-local/package.json
packages/modules/event-bus-redis/CHANGELOG.md
packages/modules/event-bus-redis/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

coderabbitai bot commented Dec 20, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

shahednasser and others added 27 commits January 15, 2025 19:46
* feat(core, medusa): Enable migration scripts

* spacing

* rm unnecessary import

* Allow to skip script migration

* fix missing options

* add options

* add tests and small changes

* update

* add checks

* add lock mechanism to be extra safe

* Create six-bears-vanish.md

* update queries

* fix tests

---------

Co-authored-by: Oli Juhl <[email protected]>
* feat(core-flows): validate hook

* rm only
**What**
Fix index engine query builder to include column type casting on order by

Co-authored-by: Carlos R. L. Rodrigues <[email protected]>
* fix: Correctly parse Stripe error, remove unused method

* fix: Isolate the payment provider error check function

* fix: Allow passing few extra parameters to Stripe

---------

Co-authored-by: Oli Juhl <[email protected]>
…10962)

* chore(core-flows,types): improve TSDocs of cart workflows and steps

* fix build errors

* fix build error

* fix errors
…kflows / steps (#10993)

* improve customer tsdocs

* finished improving tsdocs

* fix build error
…rt query (#10990)

**What**
- Exclude definition file from the glob search string
- Properly generate the insert query string
…11000)

* chore(core-flows,types): improve tsdocs of pricing-related workflows

* fix build error
* chore(js-sdk): update TSDocs of auth callback

* generate doc
…ons (#10950)

what:

- adds a status column to promotion table
- introduce active promotion query
- scope revert, register and compute actions to active promotions
- admin to create and update promotion with statuses

RESOLVES CMRC-845
RESOLVES CMRC-846
RESOLVES CMRC-847
RESOLVES CMRC-848
RESOLVES CMRC-849
RESOLVES CMRC-850
* chore: fix manage customer groups of customer OAS

* fix validation error
fPolic and others added 30 commits February 7, 2025 15:24
…1336)

**Why**
- if pending difference is lass then the rounding threshold for currency the page would show for example "Refund -0.00$"

**What**
- example: hide the refund button if the pending difference in USD is -0.004
- example: show refund button if pending difference on USD is -0.007

---

CLOSES SUP-811
CLOSES #11331
This PR adds a couple new statuses to the payment collection and payment webhook results. The payment collection will now be marked as "completed" once the captured amount is the full amount of the payment collection.

There are several things left to improve the payment setup, so non-happy-path cases are handled correctly.
1. Currently the payment session and payment models serve a very similar purpose. Part of the information is found on one, and the other part on the other model, without any clear reason for doing so. We can simplify the payment module and the data models simply by merging the two.
2. We need to handle failures more gracefully, such as setting the payment session status to failed when such a webhook comes in.
3. We should convert the payment collection status and the different amounts to calculated fields from the payment session, captures, and refunds, as they can easily be a source of inconsistencies.
* fix: update variant flow for prices

* fix: import add test

* fix: test name
* chore(types,framework): pick ssl types from tls lib

* chore: call from node:tls directly
* docs: update default NODE_ENV

* fix

* fix
* docs: document payment changes + account holder

* added version
* chore(docs): Generated DML JSON files (automated)

* fixes

---------

Co-authored-by: olivermrbl <[email protected]>
Co-authored-by: Shahed Nasser <[email protected]>
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <[email protected]>
Generated the following references:
- `api_key`
- `auth`
- `cart`
- `core_flows`
- `currency`
- `customer`
- `fulfillment`
- `inventory_next`
- `js_sdk`
- `medusa`
- `medusa_config`
- `modules`
- `modules_sdk`
- `notification`
- `order`
- `payment`
- `payment_models`
- `payment_provider`
- `pricing`
- `product`
- `promotion`
- `region`
- `sales_channel`
- `stock_location_next`
- `store`
- `tax`
- `types`
- `user`
- `utils`

Co-authored-by: Oli Juhl <[email protected]>
Co-authored-by: Shahed Nasser <[email protected]>
* added hook for createApiKeysWorkflow

* fix types

* fixed typings for createApiKeysWorkflow
* chore(docs): Generated API Reference (automated)

* fixes

---------

Co-authored-by: olivermrbl <[email protected]>
Co-authored-by: Shahed Nasser <[email protected]>
Folder was previously named calender (sic)
**What**
Fix linkable generation when there is no dml models and models are provided as virtual to the joiner config and therefore the linkable are inferred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.