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

Task/allow devices same device id in same path but apikey #1592

Merged

Conversation

AlvaroVega
Copy link
Member

@AlvaroVega AlvaroVega commented Apr 3, 2024

#1589

Related with #1426 #1435) (#1430)

@AlvaroVega AlvaroVega marked this pull request as ready for review April 3, 2024 11:07
@AlvaroVega AlvaroVega requested a review from fgalan April 3, 2024 11:10
CHANGES_NEXT_RELEASE Outdated Show resolved Hide resolved
has been provisioned with `type=X`/`apiKey=111` and no other config group has been provisioned.
are identified by a `device_id`, and they are associated to an existing config group based in `apiKey` matching. For
instance, let's consider a situation in which a config group has been provisioned with `type=X`/`apiKey=111` and no
other config group has been provisioned.

The IoT Agents offer a provisioning API where devices can be preregistered, so all the information about service and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this more explicit, maybe we can add a new sub-section after ### Devices with the following text:

Uniqueness of groups and devices

  • Group service uniqueness is defined by the combination of: service, subservice and apiKey
  • Device uniqueness is defined by the combination of: service, subservice, device_id and apiKey. Note that the several devices with the same device_id are allowed in the same service and subservice as long as their apiKeys are different.

Please, check, just in case I can be wrong with the above text...

(Btw, it's a bit weird that device_id uses snake_case but apiKey uses camelCase. In the database the MongoDB fields use the same?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 2b802b2

doc/api.md Outdated Show resolved Hide resolved
doc/api.md Outdated Show resolved Hide resolved
Copy link
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fgalan fgalan merged commit 964ee27 into master Apr 4, 2024
7 checks passed
@fgalan fgalan deleted the task/allow_devices_same_device_id_in_same_path_but_apikey branch April 4, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants