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

Realm Web: allUser object keyed by ids #3346

Merged
merged 2 commits into from
Oct 16, 2020
Merged

Conversation

kraenhansen
Copy link
Member

What, How & Why?

This closes RJS-869 by aligning with the Realm JS (and other SDKs) implementation of the allUsers property on an instance of App.

☑️ 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

@kraenhansen kraenhansen self-assigned this Oct 15, 2020
@@ -259,7 +259,7 @@ declare namespace Realm {
* All authenticated users.
*/
readonly allUsers: Readonly<
User<FunctionsFactoryType, CustomDataType>[]
Record<string, User<FunctionsFactoryType, CustomDataType>>
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs a changelog entry in Realm JS

Copy link
Contributor

@blagoev blagoev Oct 16, 2020

Choose a reason for hiding this comment

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

@steffenagger suggested this one
* Fixed TS declaration for app.allUserstoRecord<string, User>instead ofArray ([#3346](https://github.com/realm/realm-js/pull/3346))

Copy link
Contributor

@blagoev blagoev left a comment

Choose a reason for hiding this comment

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

with a changelog entry

Copy link
Contributor

@steffenagger steffenagger left a comment

Choose a reason for hiding this comment

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

LGTM when TS declaration change is added to realm-js changelog.

@kraenhansen kraenhansen force-pushed the kh/web/all-users-object branch from 0805107 to 88ddd3b Compare October 16, 2020 10:16
@kraenhansen kraenhansen merged commit cb59258 into v10 Oct 16, 2020
@kraenhansen kraenhansen deleted the kh/web/all-users-object branch October 16, 2020 11:14
@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.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants