-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/23 Code Cleanup + Min Version Bumps + PHP Compat Testing #24
Conversation
@dkotter the PHP Compat check test is not running, does it require a merge in the |
@faisal-alvi This looks good to me! I made a few changes to some PHPCS issues I saw getting flagged when I checked this out locally. If you want to do a double-check on those to make sure I didn't break anything, I think we'll be good to get this merged in. |
@dkotter Thanks for the changes, I've checked, and it's working fine. However, while testing, I found an issue for which I have created a separate ticket (#25) and applied a fix here. (this is irrelative to the changes you've made) By the way, when I checked PHPCS in my local system, it didn't show any errors/warnings. I have used the following command (the same as the yml file). Which command have you used?
|
After implementing a new export feature on the product page as mentioned in https://github.com/woocommerce/woocommerce-bookings/issues/3376, we will have single zip with both data, 1) Global Rules and 2) Bookable Product. We have to enhance the import functionality here so that Rules and a Product can be imported through a single zip. @dkotter I have a couple of questions related to this enhancement:
|
These were getting flagged by my editor which is using the Extendables standards (basically WooCommerce standards which inherits all the WordPress standards).
So I guess I'll answer your question with one of my own :). Is it worth changing this to support importing the individual json files instead of a zip file? Not sure if there's any downsides to that (other than an extra unzip step HEs would have to do) but that would allow us to keep two separate import steps, one for the product json and one for the rules json. If that's not feasible or not a good idea, I do think having a checkbox that can be used to determine if they should be imported will be good. I'd say probably not checked by default, just so they don't unintentionally add rules that they don't want. And yes, either way I'd handle this in a separate PR. Going to merge this in now |
The purpose of all of these changes was to reduce the efforts+time of HEs, keeping that in mind, I would suggest going with a checkbox instead of letting them unzip and import 2 JSON files one by one. I will create a PR for that soon. |
Changes made in this PR:
composer.json
,phpcs.xml
,.gitignore
.Closes #21, Closes #22, Closes #23, Closes #25.