-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: at_commons remove isPaginated check in sync verb builder #738
base: trunk
Are you sure you want to change the base?
Conversation
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.
@murali-shris I know in the other comment I said a PR in at_lookup to change SyncVerbBuilder
but I meant a PR in at_commons
since SyncVerbBuilder is in at_commons
Completed the changes. |
if (isPaginated) { | ||
serverCommandBuffer.write(':limit:$limit'); | ||
} | ||
serverCommandBuffer.write(':limit:$limit'); |
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.
Does the comment on line 15 mean that limit
is ignored on the atServer? If so, then perhaps we shouldn't deprecate limit
but instead respect it on the atServer side?
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.
in SyncProgressiveVerbHandler, only fromCommitId and regex are read from verb params. limit is not read.
There are two options
- rely on default limit - 25 that is configured in SyncProgressiveVerbHandler --> commitLog.getEntries and deprecate limit param in sync verb builder
- Keep limit param in sync verb builder and modify SyncProgressiveVerbHandler to read limit from verb params and pass the limit to commitLog.getEntries
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.
@murali-shris Option 2 please, and change the default in the SyncVerbBuilder to be in line with whatever the current default is on the server (25)
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.
Done.
Server PR:
atsign-foundation/at_server#2182
Client PR:
atsign-foundation/at_client_sdk#1450
- What I did
- How I did it
- How to verify it
fix: remove sync verb builder deprecated params at_client_sdk#1450