* Fix: when the HPOS tables are created, HPOS was always disabled.
After the fix HPOS will be disabled only if the creation of the
tables fail. Additionally, failure to create the tables will be logged.
* Add changelog file
* Add markdown for testing
* Revert "Add markdown for testing"
This reverts commit 63a9fc9f441b97db15bb9ee40c46c38033f2e235.
* Add new folder with block product editor docs
* Iterate over the documentation
* Iterate over documentation
* Add screenshot
* Iterate over doc
* Iterate over documentation
* Iterate over documentation
* Add sample comment
* Rename folder
* Add FAQ and comments
* More changes
* Remove unused README
* Iterate over documentation
* Implement lint changes
* Implement lint changes
* Add changelog
* Remove placeholder readmes
* Remove stale references
* Remove _media folder and add images to developer.woocommerce.com
* Remove placeholder docs
* Improve wording for 'non-standard applications'
* Convert example to new template API hook
* Fix snippet
* Iterate over code review suggestions
* Replace product editor structure image
* Update image reference
* Increment example in common-tasks
* Update add a field next to an existing one sample
* Allow e2e tests to use dotfiles for configuration
* Fix lint errors
* Fix lint errors
* Linter strikes again
* Again
---------
Co-authored-by: Jon Lane <jon.lane@automattic.com>
* HPOS: Add a recurring event to check for unsynced orders
Adds an event that will get scheduled when HPOS data sync gets enabled.
The event will run every 6 hours and check for unsynced orders. If it
finds any, it will queue up the data syncing batch processor.
Fixes#39626
* Add button to sync orders immediately
* Add changefile(s) from automation for the following project(s): woocommerce
* Wrap AS function calls to avoid errors in unit tests
* Use WC_Queue methods instead of AS functions
* Add a filter to customize the sync check time interval
* Ensure retrieved pending sync count is not a cached value
* Change sync button style to link
* Formatting fixes
* Fix unit test
* Add BatchProcessingController dependency to DataSynchronizer
* Add background sync functionality to DataSynchronizer
* Tweaks to watchdog scheduling in batch processor
* Adds a filter to modify the amount of time the watchdog schedule
gets delayed when calling the scheduler using `$with_delay`
* Adds a check to ensure the scheduler doesn't overwrite an existing
scheduled event. This is because the scheduler was getting called
multiple times in a request, first without `$with_delay` (so the event
would run right away) and then again with `$with_delay`, so that the
event would then be delayed by an hour. The result was that the event
was always scheduled for an hour later, even when we want it to run
right away.
* Improve query arg for running sync via UI
* Remove sync check from COTController, add message about background sync
* Abstract the removal of background sync events
* Remove accidental test code
* Add changefile(s) from automation for the following project(s): woocommerce
* Ensure bg sync event is not scheduled when in continuous mode
* Add missing @since comments on new filter hooks
* Add caching to check for scheduled bg sync events
* Use constants for bg sync modes
* Add unit tests
* Switch from init hook to shutdown
* Switch bg sync settings from filters to options
* Update unit tests
* phpcs fix
* Tweak "Background sync is enabled" message
Only show this if it is enabled while real-time sync is disabled.
Otherwise the message could be confusing to users who just check the
"Compatibility mode" box, since background sync doesn't have any UI.
---------
Co-authored-by: github-actions <github-actions@github.com>
* Handle store patterns update API request properly
* Full redirect to Assembler hub after ai loading
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
* Adjusted PHPCS Workflow Change Detection
This _should_ hopefully fix the broken detection of
changed files for running the code sniffs.
* Change Test
* Core Change
* Removed Sniff Test