Skip to content

5.7#4262

Draft
lukeholder wants to merge 59 commits into
5.xfrom
5.7
Draft

5.7#4262
lukeholder wants to merge 59 commits into
5.xfrom
5.7

Conversation

@lukeholder
Copy link
Copy Markdown
Member

@lukeholder lukeholder commented Mar 25, 2026

Description

WIP Commerce 5.7 release

@nfourtythree nfourtythree changed the title 5.7 WIP 5.7 Apr 15, 2026
nfourtythree and others added 30 commits May 6, 2026 14:34
- Correct @SInCE from 4.2.0 to 5.7.0
- Remove double space in namespace declaration
- Fix @inerhitdoc typo to @inheritdoc
- Add CHANGELOG-WIP.md entry for HasPurchasablesConditionRule
For 'all', use one EXISTS subquery per purchasable ID (AND-joined) so the
DB-level filter is accurate, not just a broad pre-filter.
For 'any', the existing IN condition is correct.
For 'exact', keep the IN pre-filter and let matchElement handle the rest.
…sablesConditionRule

- Add OrderQuery::$containsPurchasables property and containsPurchasables() method
  supporting 'any', 'all', and 'only' match modes with correct SQL for each
- Rename HasPurchasablesConditionRule to ContainsPurchasablesConditionRule and
  update its label to 'Contains Purchasables'
- modifyQuery now delegates entirely to containsPurchasables() so all three match
  modes are correctly handled at the DB level
- Rename $canEditProducts → $canSaveProducts in Product::defineSources()
- Rename $editableProductTypeIds → $viewableProductTypeIds in stats classes
- Delete old permission name rows from USERPERMISSIONS after migrating
- Add explanatory comment to safeDown()
- Remove redundant @phpstan-ignore-next-line in Product::canSave()
- Remove unused Plugin import from ProductTypes (fix-cs)
- Remove old permission row cleanup from migration (Craft core leaves old rows in place)
- Rename _applyEditableParam to _applyPermissionParam in ProductQuery
- Add comment explaining editable → viewProductType mapping mirrors EntryQuery
…-deletion-blocker

[5.7] User deletion blockers
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.

2 participants