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: Basic structure and MongoDB Realm App types #2741

Merged
merged 28 commits into from
Apr 28, 2020

Conversation

kraenhansen
Copy link
Member

What, How & Why?

This closes the Realm Web part of #2699.

☑️ 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 Feb 28, 2020
@kneth
Copy link
Member

kneth commented Feb 28, 2020

Please rebase on v10 instead of master - or maybe kneth/remove-qbs.

@kneth kneth mentioned this pull request Mar 1, 2020
7 tasks
@kraenhansen
Copy link
Member Author

kraenhansen commented Mar 3, 2020

@kneth I'll wait for the QBS change to be merged.

@kraenhansen kraenhansen force-pushed the kh/mongodb-realm-app branch 2 times, most recently from 50a21c7 to 016d279 Compare March 6, 2020 09:16
@kraenhansen kraenhansen changed the base branch from master to v10 March 6, 2020 09:16
@kraenhansen kraenhansen marked this pull request as ready for review April 2, 2020 16:14
@kraenhansen
Copy link
Member Author

I continued working from #2762 - so I think this is ready to be reviewed (and merged).

Copy link
Member

@kneth kneth left a comment

Choose a reason for hiding this comment

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

Please add license header to files.

lib/app.d.ts Show resolved Hide resolved
packages/realm-web/src/App.test.ts Show resolved Hide resolved
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.

Overall very nice, with some comments for changes

integration-tests/tests/package.json Outdated Show resolved Hide resolved
lib/app.d.ts Outdated Show resolved Hide resolved
lib/app.d.ts Outdated Show resolved Hide resolved
lib/app.d.ts Show resolved Hide resolved
lib/app.d.ts Show resolved Hide resolved
packages/realm-web/src/test/MockNetworkTransport.ts Outdated Show resolved Hide resolved
packages/realm-web/src/transports/PrefixedTransport.ts Outdated Show resolved Hide resolved
packages/realm-web/tsconfig.build.json Outdated Show resolved Hide resolved
lib/app.d.ts Outdated Show resolved Hide resolved
scripts/test.sh Outdated Show resolved Hide resolved
@kraenhansen kraenhansen force-pushed the kh/mongodb-realm-app branch 2 times, most recently from 16796ab to 5443902 Compare April 21, 2020 20:31
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.

👍

@kraenhansen kraenhansen requested a review from kneth April 27, 2020 15:41
@kraenhansen kraenhansen changed the title MongoDB Realm App types & Realm Web Realm Web: Basic structure and MongoDB Realm App types Apr 27, 2020
/**
* Log out the currently authenticated user and clear any persisted authentication information.
*/
logOut(): Promise<void>;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't logOut be on user only?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah - but I'll postpone that for phase 2, since this has already shipped before I learned about that change to the API.

/**
* Pass an object implementing this interface to the app constructor.
*/
interface AppConfiguration {
Copy link
Member

Choose a reason for hiding this comment

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

We should also include name and version.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you have a link to a description of those parameters? I didn't see them in any scopes but I do see them in the existing SDK.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added this a as a task on phase 2.

@kraenhansen kraenhansen merged commit 967a03c into v10 Apr 28, 2020
blagoev pushed a commit that referenced this pull request May 5, 2020
* Adding realm-web and realm-web-integration

* Improving iterating integration tests

* Implemented UserState & refactored transports

* Using app-importer and running tests from node.js

* Fixed BaseTransport issue

* Using explicit devDependencies

* Renamed FF to FunctionsFactoryType

* Renaming Credentials#material to Credentials#toJSON()

* Renamed "fetcher" to "transport"

* Fixed a typo

* App constructor now takes string or configuration

* Moved from tslint to eslint

* Moved "realm-web-integration" to "realm-web-integration-tests"

* Changed from targeting es5 to es6

* Removed unneeded dependencies on ts-mocha

* Fixed a test

* Adding symbolic links to the LICENSE

* Updated tests of the app

* Incorporated feedback from review

* Refactored "UsernamePasswordCredentials" into "EmailPasswordCredentials"

* Renamed "Credentials" directory to "credentials"

* Updated package locks

* Updates and exports the base and default functions factories

* Removed automatically bootstrapping on postinstall

* Re-implemented Credentials

* Updated the functions factory types

* Adding the header eslint plugin

* Adding headers to sourcefiles in ./packages
@kraenhansen kraenhansen deleted the kh/mongodb-realm-app branch June 9, 2020 08:36
@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.

None yet

5 participants