Skip to content

Document admin_api_multistore feature flag prerequisite in CONTEXT.md#205

Merged
jolelievre merged 2 commits into
PrestaShop:devfrom
jolelievre:docs/multi-shop-feature-flag
May 20, 2026
Merged

Document admin_api_multistore feature flag prerequisite in CONTEXT.md#205
jolelievre merged 2 commits into
PrestaShop:devfrom
jolelievre:docs/multi-shop-feature-flag

Conversation

@jolelievre
Copy link
Copy Markdown
Contributor

Summary

The Multi-shop section in CONTEXT.md described:

  • request-level shop context parameters (shopId, shopGroupId, shopIds, allShops),
  • the shopIds DTO association property and its mapping conventions,
  • the [_context] mapping prefix used to pass shop context into CQRS commands and queries,

but did not mention that multistore support in the Admin API is currently gated behind the experimental admin_api_multistore feature flag (Advanced Parameters → New & Experimental Features).

Without the flag enabled, the shop context parameters described in the section are ignored at runtime and the API falls back to single-shop behavior. Contributors (and AI agents reading this file as the source of truth for the module) need this prerequisite to interpret the conventions correctly.

This PR adds a single leading note at the top of the Multi-shop section and a small clarification on the existing "multistore is enabled" paragraph. No other section is touched.

A matching documentation update on the public devdocs site is open at PrestaShop/docs#2146.

Test plan

  • Read the updated Multi-shop section in CONTEXT.md and confirm the prerequisite is stated clearly.
  • Confirm no other section was affected by the edit.

The Multi-shop section described the request-level context parameters
and the shopIds DTO convention, but did not mention that multistore
support is gated behind the experimental admin_api_multistore feature
flag. Without the flag, the shop context parameters are ignored at
runtime and the API falls back to single-shop behavior.

Add a leading note clarifying the prerequisite so the surrounding
conventions are interpreted correctly.
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard May 20, 2026
The "Don't expose Value Objects as DTO properties" rule already
carved out DecimalNumber as the single exception, but the
ApiResourcePropertyTypeRule PHPStan rule also permits DateTimeImmutable
for date / datetime properties. Add it to the property naming table
and reword the Don't entry to list both exceptions, and reference the
PHPStan rule by name so contributors know exactly what's being
enforced.
@jolelievre jolelievre added this to the 0.7.0 milestone May 20, 2026
@jolelievre jolelievre merged commit 56a5397 into PrestaShop:dev May 20, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for review to Merged in PR Dashboard May 20, 2026
@jolelievre jolelievre deleted the docs/multi-shop-feature-flag branch May 20, 2026 12:06
@ps-jarvis ps-jarvis moved this from Merged to Ready for review in PR Dashboard May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants