telefonicaid / telefonicaid/iotagent-node-lib
APPEND api call
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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