-
Notifications
You must be signed in to change notification settings - Fork 5
Add routeplan endpoints #21
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
Conversation
|
I noticed that this PR adds new routeplan endpoints and functionality in To ensure code quality and prevent regressions, please consider adding unit tests that specifically verify the new routeplan endpoints work as expected. |
PR Summary: Add routeplan endpointsThis pull request enhances the PHP Onfleet SDK by adding support for routeplan endpoints, allowing for more comprehensive integration with Onfleet's route planning functionality. Key Changes:
These changes expand the SDK's capabilities, allowing PHP developers to more easily integrate with Onfleet's route planning features. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to edee4d1 in 2 minutes and 2 seconds. Click for details.
- Reviewed
172lines of code in5files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/Methods.php:171
- Draft comment:
Typo in error handling for PermissionError: using '$errorInfo[1]['message]']' is likely incorrect. It should probably be '$errorInfo[1]' since $errorInfo[1] is already set to the error message. - Reason this comment was not posted:
Marked as duplicate.
2. tests/Response.php:7
- Draft comment:
Test fixture contains hardcoded API key and encoded API key. Ensure these values are purely dummy data and not production credentials. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_iobIOdARUob5ZmnL
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed 3a09649 in 32 minutes and 38 seconds. Click for details.
- Reviewed
11lines of code in1files - Skipped
0files when reviewing. - Skipped posting
0draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
Workflow ID: wflow_3ZzIdTIYZS8Bowb8
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed 701e409 in 42 seconds. Click for details.
- Reviewed
11lines of code in1files - Skipped
0files when reviewing. - Skipped posting
1draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/resources/Routeplans.php:24
- Draft comment:
Trailing newline added; this improves consistency and complies with best practices. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_eL9nr8NjirHIDdvq
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
|
All tests scenarios complete:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed 187741d in 2 minutes and 38 seconds. Click for details.
- Reviewed
13lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/resources/Routeplans.php:16
- Draft comment:
The GET endpoint's altPath changed from '/routePlanId' to '/routePlans'. Confirm this aligns with the API spec. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% The comment is about a change in the diff, but it does not require a code change. It asks the author to confirm their intention, which is discouraged by the review rules. The comment is not actionable and is more of a prompt for the author to double-check their work, which should be avoided. Perhaps the change could be a breaking change or a mistake, and the reviewer is trying to prevent an error. However, unless there is clear evidence that the change is incorrect, the comment should not be kept. If the reviewer had evidence that the new altPath is invalid or causes a bug, a comment would be warranted. However, as written, the comment is speculative and not actionable. The comment should be deleted because it is not actionable and asks the author to confirm their intention, which is against the review rules.
2. src/resources/Routeplans.php:20
- Draft comment:
New endpoint 'addTasksToRoutePlan' added with PUT method. Verify that the endpoint URL '/routePlans/:routePlanId/tasks' is correct and ensure proper validation for tasks. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_80VjOC1XKpXQEn32
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed ab6a717 in 1 minute and 3 seconds. Click for details.
- Reviewed
24lines of code in2files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. README.es.md:88
- Draft comment:
New Route Plans row added. Confirm the URL and operations (get, create, update with addTasksToRoutePlan, deleteOne) match API specs and consider if the English entity name fits the Spanish context. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. README.md:96
- Draft comment:
Route Plans endpoints row added. Ensure the URL and operations (including use of
for line breaks) are correct and render properly. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
Workflow ID: wflow_La3lGBc22wlBL922
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
gonzalogrisafi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add routeplan endpoints
update changelogs
update README
Important
Add route plan endpoints to Onfleet PHP wrapper, update documentation, and improve error handling in
Methods.php.Routeplansresource inRouteplans.phpwith endpoints forcreate,get,update,deleteOne, andaddTasksToRoutePlan.Onfleet.phpto includeRouteplansresource.README.mdandREADME.es.mdto includeRoute Plansoperations.replaceWithId()andreplaceWithEndpointAndParam()inMethods.phpto handle uppercase letters in IDs.method()inMethods.phpto handle missing error message fields.OnfleetTest.phpandResponse.phpfor consistency.This description was created by
for ab6a717. You can customize this summary. It will automatically update as commits are pushed.