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

[DOC] Uniqueness of groups and devices #1633

Closed
mapedraza opened this issue Aug 6, 2024 · 3 comments
Closed

[DOC] Uniqueness of groups and devices #1633

mapedraza opened this issue Aug 6, 2024 · 3 comments

Comments

@mapedraza
Copy link
Collaborator

Is this correct?

### 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 several devices
with the same device_id are allowed in the same service and subservice as long as their apikeys are different.

Is not group defined by apikey and resource?
Devices by device_id and apikey?

CC: @fgalan @AlvaroVega

@AlvaroVega
Copy link
Member

AlvaroVega commented Aug 7, 2024

According with model/Group.js and lib/services/groups/* Group service uniqueness is defined by the combination of: service, subservice, resource and apikey .
I don't why ;-) but I've always use default resource, but it`s possible to use different resources.
Device uniqueness is as described: service, subservice, device_id and apikey.

@fgalan
Copy link
Member

fgalan commented Aug 8, 2024

Should this issue be closed after the merge of PR #1639 ?

@mapedraza
Copy link
Collaborator Author

Yes, it is solved after #1639

AlvaroVega added a commit that referenced this issue Oct 21, 2024
related with #1633 #1589

Given a measure (identified by an apikey) there is no way to identify group related if apikey is not unique for all services and subservices.

My comment #1633 (comment) was  taken directly from #1592 (comment)
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

No branches or pull requests

3 participants