(VCST-4715): Add default option support#880
Open
ToxaKZ wants to merge 4 commits into
Open
Conversation
OlegoO
requested changes
May 7, 2026
Contributor
|
cursor review |
Bugbot couldn't runBugbot is not enabled for your user on this team. Ask your team administrator to increase your team's hard limit for Bugbot seats or add you to the allowlist in the Cursor dashboard. |
…ehavior.ClientSetNull for DependsOnSectionId
|
OlegoO
approved these changes
May 13, 2026
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
Implemented support for default options in configurable products across Catalog, XCart GraphQL, and Storefront. The feature allows a product configuration option to be marked as default in admin, exposes that flag through XCart GraphQL, and makes the storefront automatically preselect default values, including defaults in dependent configuration sections.
Implementation Details
Added backend and manager support for default configuration options.
Changes include:
Added IsDefault to ProductConfigurationOption.
Added IsDefault to ProductConfigurationOptionEntity.
Mapped IsDefault between entity and domain model.
Added EF configuration with default value false.
Added DB migrations for:
SQL Server
PostgreSQL
MySQL
Added manager UI support in product configuration option lists:
new Default checkbox column
works for both product options and text options
selecting one option as default clears other defaults in the same section
Added save-time normalization in ProductConfigurationService:
each configuration section can have only one default option
if multiple options are submitted as default, only the first one is preserved
Added unit coverage for the “single default option per section” rule.
Migration cleanup was done so the migration is scoped to IsDefault only and does not introduce unrelated schema changes.
References
QA-test:
Jira-link:
https://virtocommerce.atlassian.net/browse/VCST-4715
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Catalog_3.1023.0-alpha.2513-vcst-4715.zip