telefonicaid / telefonicaid/iotagent-node-lib

Add interface call listConfigurations()

Open
#732 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Perhaps I am missing something, but I cannot find a call in iotagent-node-lib to list all configurations known by an agent. In the Atos LoRa agent I see a workaround to just use iotagent-node-lib/lib/services/groups/groupService, but that should be considered as an internal interface.

The call will be used to setup the proper MQTT subscriptions on startup of the agent for all configurations currently defined. If there is a different way then I really would like hear about it. New configurations can be handled through the addConfigurationProvisionMiddleware callback, so that is ok.

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 iotagent-node-lib/lib/services/groups/groupService and the public interfaces around configuration provisioning. Compare the internal workaround with the requested listConfigurations() call and verify that it supports retrieving all existing configurations for startup MQTT subscription setup while preserving addConfigurationProvisionMiddleware for new configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.