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

Handle bad plan IDs in Harvest REST API #4139

Merged
merged 11 commits into from
Mar 14, 2024
Merged

Handle bad plan IDs in Harvest REST API #4139

merged 11 commits into from
Mar 14, 2024

Conversation

paul-m
Copy link
Contributor

@paul-m paul-m commented Feb 28, 2024

  • Fixes some bugs in HarvestService and WebServiceApi.
  • Very minor refactoring in WebServiceApi.
  • Adds tests for coverage of WebServiceApi.
  • Renames some variables for clarity.

@paul-m paul-m changed the title Harvest API tests Handle bad plan IDs in Harvest REST API Mar 8, 2024
@paul-m paul-m marked this pull request as ready for review March 8, 2024 17:53
Copy link
Member

@dafeder dafeder left a comment

Choose a reason for hiding this comment

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

"message" => "Invalid payload.",
"documentation" => "/api/1/harvest",
'message' => 'Invalid payload.',
'documentation' => '/api/1/harvest',
];
return $this->jsonResponse($return, 422);
Copy link
Member

Choose a reason for hiding this comment

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

Just noting, I think 422 is the wrong code for this, but that's outside the scope of this PR

@dafeder dafeder merged commit c72b32f into 2.x Mar 14, 2024
10 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.

2 participants