Skip to content
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

Open
fgalan opened this issue Jul 27, 2016 · 5 comments
Open

id/type patterns for batch update operation #2389

fgalan opened this issue Jul 27, 2016 · 5 comments
Labels
APIv2.1 To be included in a potential NGSI v2.1 API version backlog help wanted
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Jul 27, 2016

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 the entities 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.

@fgalan fgalan added this to the NGSIv2SpecPending milestone Jul 27, 2016
@fgalan fgalan changed the title id/type patterns for bath update operation id/type patterns for batch update operation Jul 28, 2016
@fgalan
Copy link
Member Author

fgalan commented Oct 3, 2016

This issue is related with:

Probablty the 3 issues should be addressed at once.

@fgalan
Copy link
Member Author

fgalan commented Oct 3, 2016

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

@fgalan
Copy link
Member Author

fgalan commented Mar 7, 2018

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

@fgalan
Copy link
Member Author

fgalan commented Jul 12, 2018

Currently the entities vector only allows single ids and types, but idPattern and typePattern could be also considered.

In particular, NGSIv2 specs says:

entities, an array of entities, each entity specified using the JSON entity representation format (described in the section "JSON Entity Representation").

and "JSON Entity Representation" is based in id/type.

@fgalan fgalan added APIv2.1 To be included in a potential NGSI v2.1 API version and removed APIv2 labels Jul 12, 2018
@fgalan
Copy link
Member Author

fgalan commented Jul 12, 2018

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.

CC: @jmcanterafonseca

@fgalan fgalan removed this from the NGSIv2SpecPending milestone Jul 12, 2018
@fgalan fgalan added this to the 3.3.0 milestone Sep 3, 2021
@fgalan fgalan modified the milestones: 3.3.0, 3.4.0 Oct 22, 2021
@fgalan fgalan modified the milestones: 3.4.0, 3.5.0 Dec 14, 2021
@fgalan fgalan modified the milestones: 3.5.0, 3.6.0 Jan 28, 2022
@fgalan fgalan modified the milestones: 3.6.0, 3.7.0 Feb 25, 2022
@fgalan fgalan modified the milestones: 3.7.0, 3.8.0 May 25, 2022
@fgalan fgalan modified the milestones: 3.8.0, 3.9.0 Oct 21, 2022
@fgalan fgalan removed this from the 3.9.0 milestone Jun 2, 2023
@fgalan fgalan modified the milestones: 3.10.0, 3.11.0 Jun 2, 2023
@fgalan fgalan modified the milestones: 3.11.0, 3.12.0 Jan 25, 2024
@fgalan fgalan modified the milestones: 3.12.0, 3.13.0 Feb 29, 2024
@fgalan fgalan modified the milestones: 4.0.0, 4.1.0 Jun 6, 2024
@fgalan fgalan modified the milestones: 4.1.0, 4.2.0 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIv2.1 To be included in a potential NGSI v2.1 API version backlog help wanted
Projects
None yet
Development

No branches or pull requests

1 participant