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

Pagination, additional parameters, and tests for the Connections endpoint #258

Merged
merged 6 commits into from
Jun 8, 2018

Conversation

joshcanhelp
Copy link
Contributor

Similar implementation as #256

@joshcanhelp joshcanhelp added this to the v5-Next milestone Jun 4, 2018
@joshcanhelp
Copy link
Contributor Author

Will replace #247

@joshcanhelp joshcanhelp force-pushed the add-connections-pagination-tests branch from 5af41c7 to 13143d2 Compare June 5, 2018 21:16
Add pagination to getAll method via page and per_page parameters. Add
application type to getAll method via app_type parameter and app_type
constants. Change apiClient fluent methods to explicit. Add
validation for required 'name' parameter in create method. Add
docblocks throughout Clients. Add additional testing for Clients
and BasicCrudTest.
@joshcanhelp joshcanhelp force-pushed the add-connections-pagination-tests branch from 13143d2 to f404503 Compare June 6, 2018 17:38
$add_params = []
) {
// Set additional parameters first so they are over-written by function parameters.
$params = is_array($add_params) ? $add_params : [];
Copy link
Contributor

Choose a reason for hiding this comment

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

again. Is array? shouldn't $param be a dictionary structure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, which is == array in PHP ... no special data structure for that

{
return $this->apiClient->patch()
->connections($id)
->withHeader(new ContentType('application/json'))
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is now missing. Was missing from #256 too. Are you covering this somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

method('patch') adds that header automatically

* @return mixed
* Delete a specific User for a Connection.
*
* @param string $id - Connection ID (currently only database connections are supported).
Copy link
Contributor

Choose a reason for hiding this comment

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

AKA auth0 strategies. Is there another way to rephrase this database only warning?

Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

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

👨‍🎓

@joshcanhelp joshcanhelp merged commit 6a92e0b into master Jun 8, 2018
@joshcanhelp joshcanhelp deleted the add-connections-pagination-tests branch June 8, 2018 03:24
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants