Closed lcmcninch closed 2 years ago
I made the requested change based on option two from my response. I query the feed count, and use that as max_results, if it is given as None. I'm not 100% sure that that query will always work, but it was the way I was able to find to get the number of records in a feed. If there's a cleaner way, please let me know.
Apologies, I inadvertently deleted this branch, which closed the PR. I restored the branch and I am re-opening.
@lcmcninch Hi - could you resolve the conflicting files and I'll look at merging this in.
@lcmcninch Hi - could you resolve the conflicting files and I'll look at merging this in.
@brentru No problem, conflict resolved. Thanks for looking at this!
I think we should drop the default from 1000 records to something much lower. In fact, I think we may change the server to default to a lower limit as well. I'd like to think 100 records is a better default limit.
@jwcooper I'm happy to make the change, do you want me to reduce it to 100?
I lowered the default limit to 100.
Any update on getting this merged?
This PR resolves #108, at least partially. The end result is that the data method can use the limit query parameter and link header to return any number of data points (or all data points) of a feed. Current functionality returns all data up to 1000 points and doesn't provide the option to either decrease or increase that limit.
Scope of change:
Limitations: