-
Notifications
You must be signed in to change notification settings - Fork 624
Add API to filter overlays by batch ID #3145
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
Conversation
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (e08cfd0a) is created by Prow via merging commits: 710046b 309c0f4. |
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.
lgtm
/** Returns all saved overlay for the given collection. */ | ||
Map<DocumentKey, Mutation> getOverlays(ResourcePath collection); | ||
/** | ||
* Returns all saved overlay for the given collection. |
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.
nit: s/overlay/overlays
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
@@ -82,7 +82,7 @@ public void removeOverlaysForBatchId(int batchId) { | |||
} | |||
|
|||
@Override | |||
public Map<DocumentKey, Mutation> getOverlays(ResourcePath collection) { | |||
public Map<DocumentKey, Mutation> getOverlays(ResourcePath collection, int sinceBathId) { |
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.
s/Bath/Batch
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.
Ugh. Fixed.
result.put(entry.getKey(), entry.getValue().second); | ||
|
||
Pair<Integer, Mutation> batchIdToOverlay = entry.getValue(); | ||
if (batchIdToOverlay.first >= sinceBatchId) { |
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.
Just double checking that we want inclusive bound. We currently don't do that for sinceReadTime
link
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 guess we don't since we will already be at the largest batch Id.
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (e08cfd0a) is created by Prow via merging commits: 710046b 309c0f4. |
No description provided.