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
Replication #26
Replication #26
Conversation
Currently missing: - Caching of the last_modified stamp for the collection; - Support for BATCHing of more records than the max per batch;
r? @leplatrem |
return self._paginated(next_page, records, | ||
with_headers=with_headers, | ||
if_none_match=if_none_match) | ||
if with_headers is True: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really sure about this one: it's a way to return the headers, as they can be useful sometimes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum, yes but that is strange to alter the return type based on input parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it, it seems not to be used anymore in the kinto-updater.
This PR introduces a regression in the kinto-updater. I'm investigating which tests are missing here :) |
request = { | ||
'method': method.upper(), | ||
'path': url} | ||
'path': url.replace('v1/', '')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have a test somewhere for this one?
I like it globally, except the |
Otherwise the replication doesn't work properly and new last_modified values are created for each record, whereas we need to have the same one between servers.
It's not used anymore in the clients and makes the API a bit weird by returning a different thing (not the same number of arguments) depending on parameters.
- Better wording for the replication function. - Add default values for exceptions.response and exception.request - Add tests for utils.quote() - Improve readability of some function.
r+ ! |
That's now ready for review!