-
Notifications
You must be signed in to change notification settings - Fork 8
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 searching and sorting #6
Comments
API Views we need to look at: |
Started working on this feature as I needed the search functionality. However it appears the search functionality is broken in Cachet 2.3 when applied with pagination, same applies to 2.4.. With a patched version of 2.3 or the forked and continued version 2.5 the following code enables searching Incidents and Components: https://github.com/fiveai/cachet-client/tree/support-searchable-list-query Not sure if this is the best way to approach this? Any thoughts and pointers would be appreciated. |
This explains quite a bit. I did play around with this for a bit and ran into some trouble as well. I think the sorting works ok (for the supported fields). Searching is another story. Would it maybe make sense to have a It really is a puzzle sometimes when trying to get these things running with all cachet versions. How something ends up is almost related to these limitations. I was really just planning to add some keyword arguments myself and experiment with what was possible in 2.3 and 2.4+ before making it more fancy. |
Some notes on searching is mentioned in the advanced section:
https://docs.cachethq.io/docs/advanced-api-usage#section-searching
What fields support
sort
andorder
is not well documented. Needs more investigation looking at the source.The text was updated successfully, but these errors were encountered: