Skip to content
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

After freeze into main #741

Merged
merged 244 commits into from
Feb 28, 2025
Merged

After freeze into main #741

merged 244 commits into from
Feb 28, 2025

Conversation

Karpec
Copy link
Member

@Karpec Karpec commented Feb 28, 2025

No description provided.

jan-potuznik-z and others added 30 commits September 4, 2024 11:35
* PES-1994: Added a new searchbox to be able to filter carriers in the carrier settings.

* PES-1994: Added a constant for the carrier filter and added a translation for the searchbox.

* PES-1994: Adjusted the visuals of the carrier settings page.

* PES-1994: Renamed the constant and applied changes withing a code, also renamed some other translations as well.

* PES-1994: Renamed the placeholder for the search box.

---------

Co-authored-by: David Belka <david.belka@yahoo.co.uk>
* PES-2043: Added a new 'Advanced' tab in settings for WC carrier settings switch and made some changes to the styling across the settings tabs

* PES-2050: rebase fix

---------

Co-authored-by: David Belka <david.belka@yahoo.co.uk>
…ort (#553)

Co-authored-by: FJiskra <filip.jiskra@packeta.com>
… not saved in the database. (#554)

Co-authored-by: David Belka <david.belka@yahoo.co.uk>
Co-authored-by: FJiskra <filip.jiskra@packeta.com>
…or unhandled situations (#543)

Co-authored-by: packeta <57401091+packeta@users.noreply.github.com>
* PES-2243: example tests (#589)

* PES-2243: working WIP

* PES-2243: factories refactored

* PES-2243: data provider without logic

* PES-2243: tests refactoring

* PES-2243: static MockFactory, parameter renamed

* PES-2243: codestyle fix

* PES-2260: Edit carrier settings that shows all types of dispensing points (#597)

* PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: Edit carrier settings that shows all types of dispensing points

* fixup! PES-2260: translation key word order

---------

Co-authored-by: Jan Potužník <jan.potuznik@gmail.com>

* PES-2254: split activation message logic update (#595)

* PES-2254: split activation message logic update

* PES-2254: transient adapter

* PES-2254: FeatureFlagManagerTest added

* PES-2254: tests bootstrap update

* PES-2254: isLastDownloadValid method introduced

* PES-2254: automatic cache resetting

* PES-2225: multiple COD payment methods (#596)

* PES-2225: multiple COD payment methods

* PES-2225: multiple COD payment methods - isCodPaymentMethod

* PES-2225: multiple COD payment methods - strict params

* PES-2225: multiple COD payment methods

---------

Co-authored-by: FJiskra <filip.jiskra@packeta.com>
Co-authored-by: packeta <57401091+packeta@users.noreply.github.com>

* PES-2263: tests fix (#598)

* PES-2228: block widget hd (#599)

* PES-2228: HD widget for blocks

* PES-2228: closing widget without choosing fix

* PES-2228: address rewrite at backend

* PES-2228: optional validation behavior update

* PES-2228: fillRateAttrValues extracted

* PES-2268: useView introduced (#601)

* PES-2227: widget options logging (#603)

* PES-2269: address replacement fix (#602)

* PES-2269: better setters used

* PES-2269: fix of billing_only address bug in block checkout

* PES-2269: woocommerce_store_api_checkout_order_processed instead of woocommerce_store_api_checkout_update_order_meta

---------

Co-authored-by: Adam Karpita <adamkarpita@gmail.com>
Co-authored-by: FJiskra <filip.jiskra@gmail.com>
Co-authored-by: FJiskra <filip.jiskra@packeta.com>
Co-authored-by: packeta <57401091+packeta@users.noreply.github.com>
* PES-2231: generated shipment methods for carriers

* PES-2231: carrier feed v5, filter out split carriers

* PES-2231: older WC fix

* PES-2231: add only usable shipping methods

* PES-2231: nette/php-generator version upgrade

* PES-2231: order saving fix

* PES-2231: better Packeta method detection

* PES-2231: skip car delivery loading if disabled

* PES-2231: tests fixed after rebase

* PES-2231: ShippingProviderTest

* PES-2280: filter shipping methods at shipping zone detail

* PES-2280: framework adapters extended

* PES-2280: better shipping method description

* PES-2280: activity checkbox returned, offer only active carriers when adding to shipping zone

* PES-2280: sort added shipping methods

* PES-2283: show only carriers with generated class in settings

* PES-2234: better parameter name

* PES-2234: clearer variable handling

* PES-2234: updated phpdoc
* PES-2296: phpcs check ValidVariableName sniff

* PES-2296: phpcs fix ValidVariableName sniff

* PES-2296: phpcs fix phpcs ValidVariableName sniff

* fix

* PES-2296: fix review comments

* PES-2348: reverted breaking changes

* PES-2348: code style updated

---------

Co-authored-by: Oldřich Šálek <oldrich.salek@packeta.com>
Co-authored-by: Jan Potužník <jan.potuznik@gmail.com>
* PES-2238: Added modal popup and basics for extending a shipment stored until date

* PES-2238: Added extending a shipment stored until date into metabox

* PES-2277: Add sorting dates on order list

* PES-2277: Add sending stored until date to packetery api and synchronizing with packet status

* fixup! PES-2277: Add sending stored until date to packetery api and synchronizing with packet status

* fixup! PES-2238: Added modal popup and basics for extending a shipment stored until date

* fixup! PES-2238: Added modal popup and basics for extending a shipment stored until date

* fixup! PES-2238: Added modal popup and basics for extending a shipment stored until date

* fixup! PES-2277: Add sending stored until date to packetery api and synchronizing with packet status

* fixup! PES-2238: Added modal popup and basics for extending a shipment stored until date

* fixup! PES-2277: Add sending stored until date to packetery api and synchronizing with packet status

* fixup! fixup! PES-2277: Add sending stored until date to packetery api and synchronizing with packet status

* fixup! fixup! PES-2238: Added modal popup and basics for extending a shipment stored until date

* fixup! PES-2277: minor doc changes

* fixup! PES-2277: PHP 7.2 compatibility

* fixup! PES-2277: Change variable naming and shorthand for array

* fixup! PES-2238: Add wpAdapter to GridExtender class

* fixup! PES-2238: Fix datetime formating  - it's same as WooCommerce use for orders

* fixup! PES-2277: Rename helper property

* fixup! PES-2238: Rename helper property

* fixup! PES-2238: Rename helper property

* PES-2277: Change indent in latte files

* fixup! PES-2277: Rename helper property

* fixup! PES-2277: Rename the class used in test

* fixup! PES-2277: Refactor test for PacketSetSoterdUntil class

* PES-2277: Fix standards after rebase - remove unused statments, fix spacing and phpdocs to be proper

* fixup! fixup! PES-2277: These changes can't be in this branch

* PES-2347: Fix styling and proper commentaries in phpdocs

* PES-2347: Add strict type for parameter in sortable function

* PES-2347: Move tested class from setUp to private function

* PES-2347: Getting rid of the "named constructor" and using the "classic"

* PES-2347: Remove unused variables and clean up StoredUntilModal - unnecessary division into two functions

* PES-2347: Move CoreHelper to the Order/PacketSetStoredUntil constructor

* PES-2347: Fix PacketSetStoredUntilTest

* PES-2347: Fix php 7.2 compatibility and phpDocs

* PES-2347: Fix wsdl property after rebase

---------

Co-authored-by: Jan Potužník <jan.potuznik@gmail.com>
Co-authored-by: Adam Karpita <adam.karpita@packeta.com>
* PES-2347: Fix using a non-existent property after rebase

* PES-2347: Fix translation commentary

---------

Co-authored-by: Adam Karpita <adam.karpita@packeta.com>
* PES-2323: build-pot command

* PES-2323: check:all command

* PES-2323: commands renamed

* PES-2323: build:pot simplified

* PES-2323: updated order of commands
* PES-2321: voluntary comments

* PES-2321: alphabetically sorted uses

* PES-2321: property spacing

* PES-2321: empty line before return

* PES-2321: empty line before all jump statements

* PES-2321: function spacing unified

* PES-2321: namespace spacing unified

* PES-2321: constant spacing check

* PES-2321: use statements spacing unified

* PES-2321: class members spacing unified

* PES-2321: rebase fix

* PES-2321: ruleset name updated

* PES-2321: phpcbf pipeline

* PES-2321: phpcbf pipeline update

* PES-2321: check:ec fix

* fixup! PES-2321: voluntary comments

* PES-2321: code style checking in tests

* PES-2321: minimum_supported_wp_version update

* PES-2321: woocommerce/woocommerce-sniffs update

* PES-2321: escaping exceptions not required

* PES-2321: linesCountBetweenUseTypes 1

* PES-2321: FunctionSpacing update

* PES-2321: rebase fix
…rules (#647)

* PES-2325: Move phpstan from its own composer to main composer

* PES-2325: Change phpstan bootstrap path in unit tests

* PES-2325: Remove composer from phpstan folder, we don't need it anymore

* PES-2325: Remove phpstan/vendor from .gitignore, its unnecessary

* PES-2325: Change path to woocommerce stubs in phpstan config

* PES-2325: Split phpstan configurations so we can check different levels for different folders

* PES-2325: Fix phpstan errors in Packetery/Module on level 1

* PES-2325: Fix phpstan errors in Packetery/Module on level 2

* PES-2325: Set level 2 for Packetery/Module directory

* PES-2325: Add phpstan/phpstan-strict-rules

* PES-2325: Fix phpstan error in Packetery/Core with strict rules

* PES-2325: Add phpstan strict rules in config for Packetery/Core and disable for Packetery/Module

* PES-2325: Remove phpstan/vendor from .ecrc

* PES-2325: PHPStan composer from github action

* PES-2325: Update PHPStan newer version

* PES-2325: Add phpstan var type for array
- For some reason this array without var type causes a performance issue when checking phpstan

* PES-2325: Add src/Packetery/Core scan directory

* PES-2325: Update .lock

* PES-2371: Add latest woocommerce stubs

* PES-2371: PHPStan doesnt need to scan deps and bootstrap files for Packetery/Core

* PES-2371: More readable code in the isPacketaShippingMethodActive method

* PES-2371: Use constant instead string

* PES-2371: Shortened if isset notation

* PES-2371: Revert the changes to the dashboard widget to avoid unnecessarily altering the logic when it's not needed, while still satisfying PHPStan

* PES-2371: Removing unnecessary variable

* PES-2371: Nicer formating function setStoredUntil

* PES-2371: Use of shorthand if statements instead longer

---------

Co-authored-by: Adam Karpita <adam.karpita@packeta.com>
# Conflicts:
#	src/Packetery/Core/Validator/Order.php
#	src/Packetery/Module/Api/Internal/OrderController.php
#	src/Packetery/Module/Framework/WcAdapter.php
#	src/Packetery/Module/Order/Metabox.php
#	src/Packetery/Module/Order/Repository.php
#	src/Packetery/Module/Order/ValidatorTranslations.php
#	src/Packetery/Module/Plugin.php
#	tests/Core/Validator/OrderTest.php
#	tests/Module/Order/PacketSynchronizerTest.php
zemekoule and others added 27 commits February 13, 2025 08:30
…istinguish between manually entered and calculated values
…orrectly distinguish between manually entered and calculated values (#722)
Copy link

📊 Code Coverage Report



Code Coverage Report:
  2025-02-28 15:05:03

 Summary:
  Classes: 15.03% (29/193)
  Methods: 27.01% (336/1244)
  Lines:   13.57% (1281/9443)

Packetery\Core\Api\InvalidRequestException
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  3/  3)
Packetery\Core\Api\Rest\Exception\InvalidApiKeyException
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
Packetery\Core\Api\Rest\PickupPointValidate
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 18/ 18)
Packetery\Core\Api\Rest\PickupPointValidateRequest
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 11/ 11)
Packetery\Core\Api\Rest\PickupPointValidateResponse
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% (  4/  4)
Packetery\Core\Api\Soap\Request\PacketSetStoredUntil
  Methods:  33.33% ( 1/ 3)   Lines:  37.50% (  3/  8)
Packetery\Core\Api\Soap\Request\PacketStatus
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% (  2/  2)
Packetery\Core\CoreHelper
  Methods:  77.78% ( 7/ 9)   Lines:  92.86% ( 26/ 28)
Packetery\Core\Entity\Address
  Methods: 100.00% (14/14)   Lines: 100.00% ( 22/ 22)
Packetery\Core\Entity\Carrier
  Methods: 100.00% (18/18)   Lines: 100.00% ( 32/ 32)
Packetery\Core\Entity\CustomsDeclaration
  Methods: 100.00% (26/26)   Lines: 100.00% ( 36/ 36)
Packetery\Core\Entity\CustomsDeclarationItem
  Methods: 100.00% (16/16)   Lines: 100.00% ( 22/ 22)
Packetery\Core\Entity\Order
  Methods:  95.33% (102/107)   Lines:  94.66% (124/131)
Packetery\Core\Entity\PacketStatus
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% (  6/  6)
Packetery\Core\Entity\PickupPoint
  Methods: 100.00% (14/14)   Lines: 100.00% ( 36/ 36)
Packetery\Core\Entity\Size
  Methods: 100.00% ( 7/ 7)   Lines: 100.00% (  9/  9)
Packetery\Core\PickupPointProvider\BaseProvider
  Methods: 100.00% ( 9/ 9)   Lines: 100.00% ( 14/ 14)
Packetery\Core\PickupPointProvider\CompoundCarrierCollectionFactory
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% ( 50/ 50)
Packetery\Core\PickupPointProvider\CompoundProvider
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)
Packetery\Core\PickupPointProvider\VendorCollectionFactory
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% ( 74/ 74)
Packetery\Core\PickupPointProvider\VendorProvider
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)
Packetery\Core\Rounder
  Methods: 100.00% ( 7/ 7)   Lines: 100.00% ( 47/ 47)
Packetery\Core\Validator\Address
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  1/  1)
Packetery\Core\Validator\Order
  Methods: 100.00% ( 7/ 7)   Lines: 100.00% ( 40/ 40)
Packetery\Core\Validator\Size
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  5/  5)
Packetery\Core\Validator\SizeReport
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% (  6/  6)
Packetery\Module\Carrier\OptionPrefixer
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% (  3/  3)
Packetery\Module\Carrier\Options
  Methods:  37.50% ( 6/16)   Lines:  25.00% (  7/ 28)
Packetery\Module\Carrier\OptionsPage
  Methods:  11.11% ( 3/27)   Lines:   4.23% ( 21/497)
Packetery\Module\Carrier\PacketaPickupPointsConfig
  Methods:  36.36% ( 4/11)   Lines:  65.67% ( 44/ 67)
Packetery\Module\Checkout\CartService
  Methods:  80.00% ( 8/10)   Lines:  97.20% (139/143)
Packetery\Module\Checkout\Checkout
  Methods:  28.57% ( 2/ 7)   Lines:  33.57% ( 48/143)
Packetery\Module\Checkout\CheckoutService
  Methods:  84.62% (11/13)   Lines:  95.45% ( 63/ 66)
Packetery\Module\Checkout\CheckoutStorage
  Methods:  25.00% ( 2/ 8)   Lines:  10.17% (  6/ 59)
Packetery\Module\Checkout\CurrencySwitcherService
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% (  8/  8)
Packetery\Module\Checkout\RateCalculator
  Methods: 100.00% ( 6/ 6)   Lines: 100.00% ( 60/ 60)
Packetery\Module\Checkout\SessionService
  Methods: 100.00% ( 5/ 5)   Lines: 100.00% ( 15/ 15)
Packetery\Module\Checkout\ShippingRateFactory
  Methods:  57.14% ( 4/ 7)   Lines:  87.01% ( 67/ 77)
Packetery\Module\EntityFactory\SizeFactory
  Methods: 100.00% ( 3/ 3)   Lines: 100.00% ( 19/ 19)
Packetery\Module\ModuleHelper
  Methods:  10.53% ( 2/19)   Lines:   2.38% (  2/ 84)
Packetery\Module\Options\FlagManager\FeatureFlagDownloader
  Methods:  25.00% ( 1/ 4)   Lines:  69.23% ( 36/ 52)
Packetery\Module\Options\FlagManager\FeatureFlagProvider
  Methods:  75.00% ( 3/ 4)   Lines:  85.71% (  6/  7)
Packetery\Module\Options\OptionsProvider
  Methods:   6.00% ( 3/50)   Lines:  12.89% ( 25/194)
Packetery\Module\Order\DetailCommonLogic
  Methods:  50.00% ( 3/ 6)   Lines:  32.35% ( 11/ 34)
Packetery\Module\Order\PacketSetStoredUntil
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 32/ 32)
Packetery\Module\Order\PacketSynchronizer
  Methods:  16.67% ( 1/ 6)   Lines:  40.74% ( 33/ 81)
Packetery\Module\Order\PickupPointValidator
  Methods:  50.00% ( 2/ 4)   Lines:  44.19% ( 19/ 43)
Packetery\Module\Shipping\ShippingProvider
  Methods:  10.00% ( 1/10)   Lines:   5.71% (  4/ 70)

@zemekoule zemekoule merged commit bae4741 into main Feb 28, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants