accounts
accounts copied to clipboard
Phase 1 - extract model api V2 (wip for Review) DO NOT MERGE
- [x] differentiate between code running on the client and on the server
- [x] rename
ModelUser
to the more descriptiveAccountsProvider
- [x] only use (subclasses of)
AccountsProvider
on the server - [x] Remove DDP connection dependency from
AccountsCommon
- [ ] remove setting of
this.users
fromAccountsProvider
(in discussion) - [x] Make
user()
abstract and implement separately on the client and server. - [x] Accept DDP connection on
AccountsClient
- [x] Move
_initConnection
toAccountsClient
- [x] initialize
this.users
on the client. - [x] Client-side test code continue to use the minimongo API to access the users collection; full mutation support
- [ ] Pass
AccountsProvider
instance when creatingAccountServer
(figure out connection management - mongo vs other providers) - [ ] Publish current user to
users
collection from server (TBD) - [ ] Publish other users from server, design new API (TBD)
- [x] Add
this.accountsProvider
on server - [ ] implement backwards compatible method for caller wanting
this.users
whenAccountsProvider
is mongodb (in discussion) - [x] rename
findSingle
tofindById
- [ ] replace/rename
findCurrentUser
andfindSingleLoggedIn
, perhaps with expandedfindById
(opting for rename vs combine, in consideration of non-mongo providers) - [x] rename
insertHLoginToken
toinsertHashedLoginToken
- [ ] cleanup and/or remove
findUsersInServices
andgetMongoUsersForReactiveWork
- [x] pass all unit tests
- [x] added
Meteor.dataProvider
on server - [x] ensure all server code in unit tests access only
Meteor.dataProvider
and notMeteor.users
- [x] added new unit tests for `Meteor.users' access compatibility when data provider is mongo
- [x] use Meteor 1.3.2.4 dev bundle
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.