Skip to content

VCST-5450: Supported dictionary settings and tenant scope in settings v2 API - #3098

Merged
DmitryGrishinVirtoworks merged 9 commits into
devfrom
feat/VCST-5450
Sep 1, 2026
Merged

VCST-5450: Supported dictionary settings and tenant scope in settings v2 API#3098
DmitryGrishinVirtoworks merged 9 commits into
devfrom
feat/VCST-5450

Conversation

@DmitryGrishinVirtoworks

@DmitryGrishinVirtoworks DmitryGrishinVirtoworks commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Infrastructure change enabling store-scoped dictionary (multi-value) settings in the Settings V2 API — a prerequisite for the customer module's per-store role whitelist, which needs to store/read a list of role names scoped to a specific store rather than a single scalar value.

What was added

  • SettingsPropertyService: GetValuesAsync/SaveValuesAsync now branch on IsDictionary, reading/writing the setting's AllowedValues array per tenant scope instead of assuming a single scalar Value; refactored into smaller resolve/build helper methods to keep Cognitive/Cyclomatic complexity within the repo's Sonar thresholds.
  • Backoffice setting-dictionary.js: the dictionary-setting blade now supports store/tenant-scoped values (via settingsV2) in addition to existing global-only editing.
  • settings-unified.js: routes dictionary-type settings through the same tenant-aware save path.

Breaking changes

None — only internal/private helper methods were added or restructured; no public method signatures changed.

Tests

  • SettingsPropertyServiceTests extended to cover dictionary + tenant-scope read/write and default-value resolution

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-5450

Artifact URL:

Image tag:
ghcr.io/VirtoCommerce/platform:3.1063.0-pr-3098-057b-vcst-5450-057baf32

@CLAassistant

CLAassistant commented Aug 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sonarqubecloud

Copy link
Copy Markdown

@DmitryGrishinVirtoworks
DmitryGrishinVirtoworks merged commit 44e20a1 into dev Sep 1, 2026
22 of 23 checks passed
@DmitryGrishinVirtoworks
DmitryGrishinVirtoworks deleted the feat/VCST-5450 branch September 1, 2026 07:32
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.

4 participants