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

Add BatchGetTraversableTest and update CHANGELOG #394

Conversation

mesilov
Copy link
Owner

@mesilov mesilov commented Jun 29, 2024

Added a new test file named BatchGetTraversableTest to cover the usage of batch operations for managing contacts. Also updated the CHANGELOG to include the fix regarding the limit argument not working in batch list and read model.

Added a new test file named BatchGetTraversableTest to cover the usage of batch operations for managing contacts. Also updated the CHANGELOG to include the fix regarding the limit argument not working in batch list and read model.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
@mesilov mesilov linked an issue Jun 29, 2024 that may be closed by this pull request
A new path to the Core directory was added to the Rector configuration. This ensures that our Rector tool can identify and manage code within this new directory.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
In this commit, code clarity and efficiency have been improved across several classes. Unnecessary comments and excessive lines of code have been removed. Additionally, all the constructors and property assignments have been updated to use PHP 7.4 syntax, which provides a more concise way to declare and initialize class properties. In some places, the error messages have been updated to be more descriptive. Finally, the conditionals and the loop iterations have been optimized for better performance.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
This commit focuses on restructuring DTO classes to improve readability and efficiency. Specific changes include making classes read-only, reducing unnecessary lines of code and using concise property promotion in the constructor parameters. The refactored classes include Time, ResponseData, Pagination, RenewedAccessToken, and Response.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The 'order' parameter in Batch.php was updated to be populated with the $order variable, previously it was initiated as an empty array. This change accommodates more specific sorting requirements in batch operations.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
Integration tests have been added for the Core component. The Makefile and phpunit.xml.dist files were updated to reflect these new tests. Further, exceptions in CoreTest.php and Core.php have been adjusted to better handle Transport and Json exceptions.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
The Credentials constructor has been simplified by removing redundant comments and checks. Error checking has been improved - it now ensures that either an AccessToken or WebhookUrl must be set for authentication. The code readability has also been enhanced by removing the full namespace from instance checks, using the imported class names instead. A minor change was also made in the Batch.php file to enhance code formatting.

Signed-off-by: mesilov <mesilov.maxim@gmail.com>
@mesilov mesilov merged commit 95e6457 into 385-publish-b24-php-sdk-beta-3 Jun 30, 2024
16 checks passed
@mesilov mesilov deleted the bugfix/389-limit-argument-not-work-in-batch-list branch August 28, 2024 18:01
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.

limit argument not worked in batch list and read model
1 participant