telefonicaid / telefonicaid/iotagent-node-lib

APPEND api call

Open
#547 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
62
Forks
90
Avg merge
2h 35m
Merged PRs (30d)
1

Description

When I try to UPDATE a new attribute in my ngsi context, I encounter 407 error from Orion Context Broker (offending attribute). I can't find in this version of the library an api call for APPEND mode for Orion POST. I find only this piece of code inside ngsiService.js:
if (config.getConfig().appendMode) { payload.updateAction = 'APPEND'; } else { payload.updateAction = 'UPDATE'; }
This piece of code uses a system environment variable to set in OS, not too comfortable in developer environments.
Is it possible to have a different api function alternative to update()?

BR
Antonio.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading ngsiService.js, the update() path, and the existing appendMode configuration that sets the Orion update action. Clarify the intended alternative API and its behavior for appending attributes, then check the existing API coverage and define completion around a callable append operation that avoids requiring the system environment setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.