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

External User IDs Improvements #1092

Merged
merged 8 commits into from
Feb 3, 2025

Conversation

OlenaPostindustria
Copy link
Collaborator

Closes #1091

@OlenaPostindustria OlenaPostindustria marked this pull request as ready for review January 27, 2025 10:07
return StorageUtils.getExternalUserIds()
/// This method allows to get all External User Ids
@available(*, deprecated, message: "Deprecated. SDK doesn't support storing External User IDs in application storage. This method will be removed in future releases.")
public func fetchStoredExternalUserIds() -> [ExternalUserId]? {
Copy link
Contributor

Choose a reason for hiding this comment

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

The method storeExternalUserId should be also deprecated.

arrayExternalUserIds.removeAll()
StorageUtils.setExternalUserIds(value: arrayExternalUserIds)
}
externalUserIds = []
}

public func getExternalUserIds() -> [[AnyHashable: Any]]? {
Copy link
Contributor

Choose a reason for hiding this comment

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

There are a lot of changes in the PR, so I can miss something, but now I see incosistency in how external ids can be set and retirived.

I see two public items:

  • the property externalUserIds
  • the method getExternalUserIds

And the method has broader functionality. To make everything consistent, I'd suggest making externalUserIds private and to add the setExternalUserIds method. Or you can introduce a custom getter for externalUserIds.

Copy link
Contributor

@YuriyVelichkoPI YuriyVelichkoPI left a comment

Choose a reason for hiding this comment

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

LGTM

@YuriyVelichkoPI
Copy link
Contributor

@OlenaPostindustria, please, rebase the branch.

Copy link
Contributor

@YuriyVelichkoPI YuriyVelichkoPI left a comment

Choose a reason for hiding this comment

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

LGTM

@YuriyVelichkoPI YuriyVelichkoPI merged commit d44b4b1 into master Feb 3, 2025
4 checks passed
@YuriyVelichkoPI YuriyVelichkoPI deleted the 1091/external-user-ids-improvements branch February 3, 2025 08:52
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.

External User ID Improvements
2 participants