woocommerce/plugins/woocommerce-blocks/.github
Alba Rincón 75184ae22d Add migration strategy and load blockified templates (https://github.com/woocommerce/woocommerce-blocks/pull/6538)
* Increase `schema_version` to add the new `wc_blocks_use_blockified_templates` flag

If the schema version stored on the db is <= 260 means the plugin is being updated
to the new version and we should keep using the old templates, not the blockified ones.

* After the theme is switched we check if we need to update the flag to
start loading the blockified templates or not.

* Get the templates from the blockified folder if the flag is set to true on the db

* Add temporary blockified template for testing purposes

* Inline variable

* Improve comment

* Use blockified templates on new installs with block themes only

* Don't use blockified templates when switching to a non FSE theme

* Fix condition

* Add tests for the option value

* Move the check to use blockified templates

* WIP

* WIP

* Add migration strategy

* Move the blockified templates to the templates folder and filter them depending on the option

* Fix tests and start using the Options constants

* Fix migration, the `should_use_blockified_product_grid_templates` and tests

* Rename tests and move to Utils folder

* add Migration class test

* try

* remove PHP

* add composer

* Replace the blockified templates with a temporary version

* Fix tests

* add comment

* Add feature gating for experimental builds

* Inject the package to the controller

* test

* Change blocks.ini

* debug

* Remove debug info

* fix test

* fix tests

* try now

* using composer cache

* install deps

* test

* Remove unnecessary extra key

* Add cache actions

* Undo tests change

* Fix readme format

Co-authored-by: Luigi <gigitux@gmail.com>
2022-07-06 09:51:39 +02:00
..
ISSUE_TEMPLATE Update version numbers in bug report template (https://github.com/woocommerce/woocommerce-blocks/pull/5818) 2022-02-15 16:08:38 +00:00
compare-assets Compare assets from builds (https://github.com/woocommerce/woocommerce-blocks/pull/5634) 2022-02-02 14:56:16 +00:00
workflows Add migration strategy and load blockified templates (https://github.com/woocommerce/woocommerce-blocks/pull/6538) 2022-07-06 09:51:39 +02:00
CODE_OF_CONDUCT.md CSS naming convention docs (https://github.com/woocommerce/woocommerce-blocks/pull/1653) 2020-01-28 15:50:57 +00:00
CONTRIBUTING.md Improve the structure of the WooCommerce Blocks Handbook (https://github.com/woocommerce/woocommerce-blocks/pull/6429) 2022-06-09 17:52:19 +02:00
SECURITY.md Update SECURITY.md 2020-10-01 16:53:34 -04:00
automate-team-review-assignment-config.yml Update review automation to use Rubik name 2022-01-24 21:33:23 +01:00
config.yml Add Todo Probot config (https://github.com/woocommerce/woocommerce-blocks/pull/2384) 2020-05-02 15:56:33 -04:00
label-sync-config.json update label sync json 2020-11-27 15:52:06 -05:00
patch-initial-checklist.md Clean up docs (https://github.com/woocommerce/woocommerce-blocks/pull/6550) 2022-06-20 19:04:41 +02:00
patch-release-pull-request.md Update patch release pr template 2021-09-08 15:39:25 -04:00
pull_request_template.md Add clarification about 'Do not include in the Testing Notes' checkbox in PR template (https://github.com/woocommerce/woocommerce-blocks/pull/6370) 2022-05-04 15:14:54 +02:00
release-automation-config.json Add @woocommerce/eslint-plugin dependency (https://github.com/woocommerce/woocommerce-blocks/pull/3115) 2020-09-07 13:31:10 -04:00
release-initial-checklist.md Clean up docs (https://github.com/woocommerce/woocommerce-blocks/pull/6550) 2022-06-20 19:04:41 +02:00
release-pull-request.md Numerous tweaks to various GH templates. 2021-09-08 15:37:42 -04:00