rokwire / rokwire/groups-building-block

[BUG] Fix external ID handling

Open
#239 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Currently the external IDs are handled in separate external_id and net_id fields within the group member model. The net_id field is not set appropriately when first creating new member records.

Expected behavior
We should have a single external_ids map that stores the latest values of each of the external IDs in a user's token. These should be set whenever a new membership record is created, or if we notice that the external IDs in a user's token have changed.

For the moment, we should leave the external_id and net_id fields as deprecated fields for backwards compatibility, but once we have had a chance to review the impact and update the clients they can be removed completely.

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.