Closed ravinderk closed 1 year ago
@ravinderk is this ready for review? Seems like you are fixing phpcs
errors.
@ravinderk, is this ready for review? It seems like you are fixing
phpcs
errors.
@faisal-alvi PHPCS issues have been fixed. I left a few errors intentionally, so we remember to resolve them.
@faisal-alvi
wp cli
generated zip file from the user interface. But I can see that this will happen occasionally, so I implement support.@ravinderk as per our discussion, you will work on importing global rules along with the product zip in CLI. Please ping me once this is ready for review.
@faisal-alvi pull request is ready to review.
@faisal-alvi Issues you reported have been fixed. Let's discuss it before you start testing.
@dkotter should we move it to UAT or direct merge it?
@faisal-alvi This can be in UAT for now and Jeff and I will review in our next UAT session.
Description
This pull request implements the WP CLI command to export and import booking products and global availability rules.
This solution is backward compatible, which means you can import files generated from the user interface with
wp cli
command and the same for exported files withwp cli
command.Closes #32
Tests
You should be able to use the following command, and the result should be as expected. These
wp cli
commands should not generate any regression for the user interface. You should be able to import files from the user interface generated from thewp cli
and vice versa. You should be able to import files generated from the booking product edit optionEdit product -> Export
.Noticeable Changes
composer.lock
ext-zip
,ext-json
php-stubs/wp-cli-stubs
which helps inwp cli
command developmentChanges
Release action items
vendor
directory to the final build