-
Notifications
You must be signed in to change notification settings - Fork 265
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 #350
Comments
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
The following answer at SOF should be edited when this issue gets implemented: |
👍 |
3 similar comments
+1 |
+1 |
+1 |
Implemented (finally!) in PR #1679. Once that PR gets merged, it will be available in develop branch. In addition, it would be available in the next official release (0.27.0), which is expected by the end of January / beginning of February. |
Yay! 💃 |
QA Acceptance Test pending. Reopened and asigned to QATestPending milestone. |
LGTM |
NGSI standard ONCHANGE subscription always need a list of "triggering" attributes (see section 5.5.10 in the OMA spec). Thus, it is not possible to specify that the subscriber wants to be notified each time any of the attributes of the entities change without a previous knowledge of the list of attributes of the entity. This is a limitation on some scenarios.
This issue is about to enhance the ContextBroker, including a new type of subscriptions for changes in any attribute (let's name them ONANYCHANGE). In this case the condValue element is not required (this fits in NGSI spec, as this element is optional in subscribeContextRequests according to OMA spec).
Regarding implementation, it would be a matter of tuning the query done to MongoDB in the addTriggeredSubscriptions() function at mongoBackend. It also will involve changes in the processConditionVector(), taking into account the new subscription change (and using the corresponding query for that).
The text was updated successfully, but these errors were encountered: