-
Notifications
You must be signed in to change notification settings - Fork 266
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
ONANYCHANGE subscriptions #1679
ONANYCHANGE subscriptions #1679
Conversation
…bscriptions filters)
@@ -0,0 +1,422 @@ | |||
# Copyright 2016 Telefonica Investigacion y Desarrollo, S.A.U |
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.
The 4 tests included in this PR are almost identical. Thus, you can review just one and check in the others just the following bits:
- brokerStart line uses -noCache in the proper files
- That condValues is
[]
or has been omitted in the proper files.
* | ||
* matchExpression | ||
*/ | ||
static bool matchExpresion(ContextElementResponse* cerP, const std::string& q) |
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.
matchExpression (one 's' missing)
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.
Fixed in 72c5ebc
@@ -1206,6 +1206,10 @@ static bool addTriggeredSubscriptions_withCache | |||
aList, | |||
cSubP->subscriptionId, | |||
cSubP->tenant); | |||
|
|||
// FIXME P10 #1316: expression needs to be stored in the cache |
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.
P10 ...
Is this something you marked to not forget and then forgot?
Looks important enough to be included in this PR ... ?
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 think it is better to be included in a next PR.
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.
NTC
LGTM |
…b_in_subs_ngsiv2 ONANYCHANGE subscriptions
This PR stated as preparation for expression
q
filter in NGSIv2 subscriptions (thus the name of the branch, referring #1316) but at the end has become an implementation of ONANYCHANGE subscriptions, i.e. #350 (functionality that it is also needed for NGSIv2 subscriptions).(Commit history is a bit weird, maybe due to a not-so-good rebase, but the diff agains develop seems to be ok anyway).