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

Exposing all data of the profile.data on User#profile, renamed userId… #3481

Merged
merged 6 commits into from
Jan 7, 2021

Conversation

kraenhansen
Copy link
Member

What, How & Why?

Merging this PR will:

  • Expose all data of the profile.data on User#profile (Realm Web only - still missing on Realm JS)
  • Rename userId to id on User#identities elements (Realm JS and types)
  • Expose providerType on a User (Realm Web).
  • Add three properties missing from the RPC User proxy object.

This closes #3268 and a few other untracked issues.

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

If this PR adds or changes public API's:

  • typescript definitions file is updated
  • jsdoc files updated
  • Chrome debug API is updated if API is available on React Native

return {
id: identity.id,
providerId: identity["provider_id"],
// providerId: identity["provider_id"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the line be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably 😊 I might have wanted to leave it in as a signal that this is infact also returned from the API, but it should probably be removed.

docs/sync.js Outdated
*/

/**
* Describes an error when an incompatible synced Realm is opened. The old version of the Realm can be accessed in readonly mode using the configuration() member
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the description of IncompatibleSyncedRealmError. We need a correct description of UserIdentity.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

Copy link

@fronck fronck left a comment

Choose a reason for hiding this comment

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

LGTM

@kraenhansen kraenhansen requested a review from kneth January 4, 2021 15:10
@kraenhansen kraenhansen merged commit c84f1db into master Jan 7, 2021
@kraenhansen kraenhansen deleted the kh/user-data-fixed branch January 7, 2021 14:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JWT metadata missing on User object
5 participants