Skip to content

Commit 7b50a96

Browse files
committed
remove append mode
1 parent 10aa0b4 commit 7b50a96

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

doc/admin.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- [subservice](#subservice)
1717
- [providerUrl](#providerurl)
1818
- [iotaVersion](#iotaversion)
19-
- [appendMode](#appendmode)
2019
- [dieOnUnexpectedError](#dieonunexpectederror)
2120
- [singleConfigurationMode](#singleconfigurationmode)
2221
- [timestamp](#timestamp)
@@ -350,12 +349,6 @@ URL to send in the Context Provider registration requests. Should represent the
350349
indicates the version of the IoTA that will be displayed in the about method (it should be filled automatically by each
351350
IoTA).
352351

353-
#### `appendMode`
354-
355-
if this flag is activated, the update requests to the Context Broker will be performed always with APPEND type, instead
356-
of the default UPDATE. This have implications in the use of attributes with Context Providers, so this flag should be
357-
used with care. This flag is overwritten by `autoprovision` flag in group or device provision.
358-
359352
#### `dieOnUnexpectedError`
360353

361354
if this flag is activated, the IoTAgent will not capture global exception, thus dying upon any unexpected error.
@@ -496,7 +489,6 @@ overrides.
496489
| IOTA_MONGO_SSL | `mongodb.ssl` |
497490
| IOTA_MONGO_EXTRAARGS | `mongodb.extraArgs` |
498491
| IOTA_SINGLE_MODE | `singleConfigurationMode` |
499-
| IOTA_APPEND_MODE | `appendMode` |
500492
| IOTA_POLLING_EXPIRATION | `pollingExpiration` |
501493
| IOTA_POLLING_DAEMON_FREQ | `pollingDaemonFrequency` |
502494
| IOTA_AUTOCAST | `autocast` |

doc/devel/northboundinteractions.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ As it can be seen in the example, the payload is a JSON Object with the followin
155155
with the information needed to identify the target entity `id` and `type` attributes. The `entities` attribute is an
156156
array, so a single update context batch operation can be used to update multiple devices
157157

158-
- An `actionType` indicating the type of update: if this attribute has the value `"append"` the appropriate entity and
159-
attributes will be created if the don't exist; if the value is `"update"`, an error will be thrown if the target
160-
resources don't exist.
158+
- An `actionType` indicating the type of update. It has the value `"append"` the appropriate entity and attributes
159+
will be created if the don't exist.
161160

162161
The equivalent **NGSI-LD** payload is associated to an update operation (PATCH `/ngsi-ld/v1/entities/<entity>/attrs/`).
163162

@@ -600,20 +599,6 @@ It is worth mentioning that the Context Broker will reply with a 200 OK status c
600599
refer to transport protocol level errors, while the status codes inside of a payload give information about the
601600
application level protocol.
602601

603-
The example shows an error updating an non-existent attribute (due to the use of UPDATE instead of APPEND).
604-
605-
The following error payload is also valid in standard NGSI:
606-
607-
```json
608-
{
609-
"error": "NotFound",
610-
"description": "The requested entity has not been found. Check type and id"
611-
}
612-
```
613-
614-
Different kinds of errors can return their information in different formats, so NGSI implementations should check for
615-
the existence of both.
616-
617602
### Scenario 2: lazy attributes (happy path)
618603

619604
Scenario 2 relies on the Context Provider mechanism of the Context Broker. For this scenario to work, the IoTAgent must

0 commit comments

Comments
 (0)