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

Support List options #25

Merged
merged 7 commits into from
May 12, 2016
Merged

Support List options #25

merged 7 commits into from
May 12, 2016

Conversation

weppos
Copy link
Member

@weppos weppos commented May 10, 2016

This PR adds support for the new sort and filter options.

I think we hit the limit of our current implementation. We currently
don't handle nested structures, whereas go-querystring provides the
"same" feature but it also does.

It was a nice game to create such custom `url:` handler, but it is
worthless to make further changes as I end up reimplementing pretty
much the same amount of code.
@weppos weppos self-assigned this May 10, 2016
@weppos weppos added the feature label May 10, 2016
@weppos
Copy link
Member Author

weppos commented May 10, 2016

/cc @aeden @jacegu @jodosha

@weppos weppos added the ready-for-review Pull requests that are ready to be reviewed by other team members. label May 11, 2016
@weppos
Copy link
Member Author

weppos commented May 11, 2016

Ready for review.

// Here's a few example:

// get the list of domains filtered by name and sorted by expiration
client.Domains.ListDomains(whoami.Account.ID, &DomainListOptions{NameLike: "com", Sort: "expiration:DESC"})
Copy link
Contributor

Choose a reason for hiding this comment

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

@weppos This should be desc instead. ..or we can add case insensitive support on the server side.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it should be case insensitive.

Copy link
Contributor

Choose a reason for hiding this comment

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

@weppos both field and order?

Copy link
Member Author

Choose a reason for hiding this comment

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

Any reason to not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review Pull requests that are ready to be reviewed by other team members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants