Skip to content
This repository has been archived by the owner. It is now read-only.

Add support for conditional matching filters based on tags #192

Merged
merged 2 commits into from Mar 13, 2019

Conversation

@bbondy
Copy link
Member

bbondy commented Mar 3, 2019

See here for a description of the task:
Fix #191

@bbondy bbondy requested review from emerick and SergeyZhukovsky Mar 3, 2019
@emerick
emerick approved these changes Mar 3, 2019
Copy link
Contributor

emerick left a comment

LGTM, just had one question about the buffer management (which could be totally innocuous, just wasn't sure).

@@ -1472,6 +1495,15 @@ int serializeFilters(char * buffer, size_t bufferSizeAvail,
}
bufferSize++;

if (f->tagLen > 0) {
if (buffer) {
buffer[bufferSize] = '#';

This comment has been minimized.

Copy link
@emerick

emerick Mar 3, 2019

Contributor

Is it safe to assume the buffer has the space available for this additional data? Wasn't quite sure how that side of things works.

This comment has been minimized.

Copy link
@bbondy

bbondy Mar 3, 2019

Author Member

Yep how it works is it calls the function 2 times. The first with nullptr buffer to get the size. The second it specifies a buffer of that size.

This comment has been minimized.

Copy link
@emerick

emerick Mar 3, 2019

Contributor

OK, got it!

Copy link
Member

SergeyZhukovsky left a comment

there are risky changes with memory management. I hope unit tests covered it. Looks good otherwise.

@bbondy bbondy force-pushed the condition-tagging branch 3 times, most recently from d8ec43b to e8b9af3 Mar 7, 2019
@bbondy bbondy mentioned this pull request Mar 11, 2019
9 of 19 tasks complete
@bbondy bbondy force-pushed the condition-tagging branch from e8b9af3 to ba76cab Mar 12, 2019
@bbondy bbondy force-pushed the condition-tagging branch from ba76cab to 8ddfa91 Mar 12, 2019
@bbondy bbondy merged commit 78cc836 into master Mar 13, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@bsclifton bsclifton deleted the condition-tagging branch Apr 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.