Skip to content

Conversation

@jamesliupenn
Copy link
Contributor

Here's what's new:

  • Added listAssignedTasks endpoint for workers
  • Added listUnassignedTasks endpoint for teams
  • Added readme language support for Traditional Chinese
  • Update readme

@jamesliupenn jamesliupenn requested a review from YokySantiago May 10, 2022 22:46
Copy link
Contributor

@YokySantiago YokySantiago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job here, I have some comments, though.

'autoDispatch' => ['method' => 'POST', 'path' => '/teams/:teamId/dispatch'],
'getWorkerEta' => ['method' => 'GET', 'path' => '/teams/:teamId/estimate', 'queryParams' => true]
'getWorkerEta' => ['method' => 'GET', 'path' => '/teams/:teamId/estimate', 'queryParams' => true],
'listUnassignedTasks' => ['method' => 'GET', 'path' => '/teams/:teamId/tasks', 'queryParams' => true]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had named this method getTasks in the python wrapper so, we should keep the same names across the wrappers, shouldn't we?

'setSchedule' => ['method' => 'POST', 'path' => '/workers/:workerId/schedule'],
'matchMetadata' => ['method' => 'POST', 'path' => '/workers/metadata']
'matchMetadata' => ['method' => 'POST', 'path' => '/workers/metadata'],
'listAssignedTasks' => ['method' => 'GET', 'path' => '/workers/:workerId/tasks', 'queryParams' => true]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had named this method getTasks in the python wrapper so, we should keep the same names across the wrappers, shouldn't we?

"warnings" => []
]
],
"listUnassignedTasks" => [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to create the test case in the tests/OnfleetTest.php file

"skipSMSNotifications" => false,
"metadata" => []
],
"listAssignedTasks" => [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to create the test case in the tests/OnfleetTest.php file

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.

3 participants