Repository navigation
[9.x] Prepare 9.0.0 for release - #278
Open
nfourtythree wants to merge 1 commit into
Open
nfourtythree wants to merge 1 commit into
nfourtythree wants to merge 1 commit into
Conversation
Repeat the upgrade from Shopify 8 without the Yii 2 adapter, on MySQL 8.0 and Postgres 16, and fix what it found. - Require craftcms/cms ^6.0.0-beta.3 instead of 6.x-dev. - Migrate core field layout elements in the product field layout's project config. Craft's own migration skips shopify.productFieldLayout, so applying project config dropped custom fields from the layout. - Fix sorting the product index by title, Shopify ID and Shopify status. - Let the opt-in live API tests make real requests again. - UPGRADE.md: update config/shopify.php before composer update, resave products to index option values, and correct the webhook URL notes. - README: remove Craft 5 and adapter leftovers.
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.
This PR prepares 9.x for 9.0.0. I upgraded a Shopify 8 / Craft 5 project to Craft 6 and 9.x without
craftcms/yii2-adapter, on MySQL 8.0 and Postgres 16, following UPGRADE.md as written. This PR fixes the bugs and doc gaps that turned up.Changes
craftcms/cmsgoes from6.x-devto^6.0.0-beta.3. Craft 6 has no stable tag yet. Beta.3 is the first tag that contains the commit the lock was on.shopify.productFieldLayoutin project config. Craft'smigrate_field_layout_element_typesonly renames them underfieldLayoutandfieldLayoutskeys.1attribute, so core never matched the column names the index sends. 8.x had the same bug.connectLiveShopify()callsHttp::allowStrayRequests(). All three live tests failed on 9.x after [9.x] Remove the Yii 2 adapter #277 moved the API client toHttp, becausetests/Pest.phpblocks stray requests. The faked tests still block them.config/shopify.phptoenv()beforecomposer update. Withcraft\helpers\App::env(), every Artisan command fails, includingpackage:discover.craft:resave:shopify-products --update-search-index. 8.x stored emptyoptionskeywords, so option values weren't searchable after the upgrade.index.php?p=webhook URLs return an error response (419 on beta.3), not a 403. The example URL now includes/admin/.craftcms.com/docs/5.xlinks stay because the 6.x docs don't have those pages yet.At release
## Unreleasedsection with## 9.0.0and the content of CHANGELOG-WIP.md, then delete CHANGELOG-WIP.md. The 13 entries under## Unreleasedare all in CHANGELOG-WIP.md too.translationsbranch needs a9.x: langentry.SeoShopifyProductstill usescraft\shopify\…andProducts::EVENT_BEFORE_SYNCHRONIZE_PRODUCT. It needsProductSyncingandCraftCms\Shopify\….Evidence
Upgrade, on both databases:
craft:upran each of the six 9.x migrations once. A second run found nothing, andcraft:project-config:diffwas empty.templateSuffixchange.Checks:
The new
MigrationsTestcase and the fourProductIndexTestcases fail without their fixes.Footnotes
Without the adapter, applying project config writes
craft\fieldlayoutelements\CustomFieldback tofieldlayouts. Craft 6 can't load that class, so the custom field drops out of the layout and reading it throwsInvalid field handle. Core's map also lacksTemplate, so the migration adds it. Both are worth reporting to craftcms/cms. ↩