-
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
id/type patterns for batch update operation #2389
Comments
This issue is related with:
Probablty the 3 issues should be addressed at once. |
The answer to this SOF question should be edited once this issue gets completed: http://stackoverflow.com/questions/39732799/orion-context-broker-delete-several-entities-at-one-call |
With regards to deletion, the following script can be useful to delete all entities (of a given type and/or matching a given filter) while this issue gets implemented: https://github.com/telefonicaid/fiware-orion/blob/master/scripts/utils/delete_entities.py |
In particular, NGSIv2 specs says:
and "JSON Entity Representation" is based in id/type. |
Out of the scope of NGSIv2, althouth it is a good idea that could (potentially) be included in a later version of the API (v2.1) in a backward compatible way. |
For
POST /v2/op/update
(and for the batch operations described at #2388, in the case that issue gets considered at the end) allow entity patterns. Currently theentities
vector only allows single ids and types, but idPattern and typePattern could be also considered.The implications of this operation has to be taken into account, e.g. multi-entity update could be considered dangerous (specially in the case of deletion) and this possibility not considered at the end.
The text was updated successfully, but these errors were encountered: