Skip to content

FEC-237: to migrate product selection to new model and add product of selection submodel#809

Merged
Rombelirk merged 20 commits into
mainfrom
FEC-237-migrate-product-selection-model
May 16, 2025
Merged

FEC-237: to migrate product selection to new model and add product of selection submodel#809
Rombelirk merged 20 commits into
mainfrom
FEC-237-migrate-product-selection-model

Conversation

@Rombelirk
Copy link
Copy Markdown
Contributor

@Rombelirk Rombelirk commented May 12, 2025

This PR migrates Product Selection to the new model,
also it adds Product Of Selection submodel to it.

@Rombelirk Rombelirk self-assigned this May 12, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2025

🦋 Changeset detected

Latest commit: 5fc0861

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@commercetools/composable-commerce-test-data Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CarlosCortizasCT CarlosCortizasCT added the fe-chapter-rotation Tasks coming from frontend chapter work label May 12, 2025
@Rombelirk Rombelirk force-pushed the FEC-237-migrate-product-selection-model branch from 751042c to 524a8d6 Compare May 13, 2025 11:11
Comment thread standalone/src/models/product-selection/fields-config.ts Outdated
Comment thread standalone/src/models/product-selection/product-selection-draft/presets/index.ts Outdated
@Rombelirk Rombelirk requested a review from a team May 13, 2025 13:46
@Rombelirk Rombelirk marked this pull request as ready for review May 13, 2025 13:47
@Rombelirk Rombelirk requested a review from a team as a code owner May 13, 2025 13:47
Comment thread standalone/src/models/product-selection/index.ts Outdated
Comment thread standalone/src/models/product-selection/fields-config.ts Outdated
Comment thread standalone/src/models/product-selection/builders.spec.ts Outdated
Comment thread standalone/src/models/product-selection/product-selection-draft/fields-config.ts Outdated
Comment thread standalone/src/models/product-selection/product-selection-draft/presets/index.ts Outdated
@Rombelirk Rombelirk force-pushed the FEC-237-migrate-product-selection-model branch from 691dfdb to 800d2b0 Compare May 14, 2025 10:15
@Rombelirk Rombelirk force-pushed the FEC-237-migrate-product-selection-model branch from c0e075e to 1673925 Compare May 14, 2025 13:27
@Rombelirk Rombelirk force-pushed the FEC-237-migrate-product-selection-model branch from d458aae to b66650e Compare May 15, 2025 11:28
Comment thread .changeset/spicy-numbers-deny.md Outdated
Comment thread .changeset/spicy-numbers-deny.md Outdated
@Rombelirk Rombelirk changed the title FEC-237: to migrate product selection to new model FEC-237: to migrate product selection to new model and add product of selection submodel May 15, 2025
Comment thread standalone/src/models/product-selection/product-of-selection/fields-config.ts Outdated
Comment thread standalone/src/models/product-selection/types.ts Outdated
Comment thread standalone/src/models/product-selection/builders.spec.ts Outdated
Comment thread standalone/src/models/product-selection/builders.spec.ts

describe('ProductSelection model compatibility builders', () => {
it('builds a default (REST) model', () => {
const restModel = ProductSelection.random().build();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this case.
In the tests we first validates the REST and GraphQL models but then we need to also validate the compatibility one, which is what's done here.

Comment thread .changeset/spicy-numbers-deny.md
Comment thread .changeset/spicy-numbers-deny.md
Comment thread standalone/src/models/product-selection/product-of-selection/index.ts Outdated
Comment thread standalone/src/models/product-selection/product-of-selection/index.ts Outdated
Comment thread standalone/src/models/product-selection/product-of-selection/builders.spec.ts Outdated
Comment thread standalone/src/models/product-selection/builders.spec.ts
Comment thread standalone/src/models/product-selection/builders.spec.ts
Comment thread standalone/src/models/product-selection/product-selection-draft/builders.spec.ts Outdated
Comment thread standalone/src/models/product-selection/product-selection-draft/fields-config.ts Outdated
Comment thread .changeset/spicy-numbers-deny.md Outdated
Co-authored-by: Carlos Cortizas <97907068+CarlosCortizasCT@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@CarlosCortizasCT CarlosCortizasCT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, Roman 🙇

@Rombelirk Rombelirk requested a review from rajrdk May 16, 2025 11:37
@Rombelirk Rombelirk merged commit 516a1f6 into main May 16, 2025
8 checks passed
@Rombelirk Rombelirk deleted the FEC-237-migrate-product-selection-model branch May 16, 2025 12:20
@ct-changesets ct-changesets Bot mentioned this pull request May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fe-chapter-rotation Tasks coming from frontend chapter work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants