-
Notifications
You must be signed in to change notification settings - Fork 217
WIP: Ability to use multiple QB instances, refactored logs format and bug fixes #231
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
Conversation
spec/QB-UsersSpec.js
Outdated
| expect(res).not.toBeNull(); | ||
| expect(res.full_name).toBe('QuickBlox Test'); | ||
| userId = res.id; | ||
| console.info(userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console or this need for something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove
spec/QB-UsersSpec.js
Outdated
| it('can reset password', function(done) { | ||
|
|
||
| QB.users.resetPassword(QBUser1.email, function(err, res){ | ||
| console.log(err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this console?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove
| }); | ||
|
|
||
| afterAll(function(done){ | ||
| QB.destroySession(function (err, result){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't check err or result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove
| 'password': "js_jasmine11", | ||
| 'email': "js_jasmine11@quickblox.com" | ||
|
|
||
| var NEW_SERVER = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the New_server?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is our new implementation with fully clustered Chat server solution, will be released in some near future.
|
Also, I remove the |
|
Also, need to describe in release notes that need to update npm dependencies. |
Made/Proposed changes:
QB.chat.disconnectinsideQB.chat.connect's callback (Node.js)onKickOccupant(dialogId, initiatorUserId)to handle a case where User2 joined chat dialog and User1 removed him from occupants.QB.chat.privacylist.deletemethod does not work under Node.js.QB.chat.privacylist.setAsDefault('', callback)andQB.chat.privacylist.setAsActive('', callback)) does not work properly. Also, now you can passnullinstead of empty string''to decline.QB.chat.privacylist.getNamesmethod does not return anything if a user does not have any active/default lists.QB.chat.privacylist.getNamesreturns all names except active/default atnameskey under Node.js. Made it similar to browser env behaviour.npm run buildNotMinifiednode_modules/.bin/karma start karma.conf.js. To see a report look at subdirectorycoveragein the default location. Warning! Before run you need to rebuild sdk withbuildNotMinifiedtask.onJoinOccupant(dialogId, userId)andonLeaveOccupant(dialogId, userId)to handle group dialog changes.QB.chat.muc.listOnlineUsersmethod not returns an array of integers instead of array of strings.onMessageErrorListenerdoes not work under Node.jsQB.chat.privacylist.updatemethod does not work properly when change deny-> allow.QB.users.resetPasswordalways returns an errorHow should this be manually tested?
do 'npm install'
run tests
Does the documentation needs an update?
onKickOccupant(dialogId, initiatorUserId)onJoinOccupant(dialogId, userId)onLeaveOccupant(dialogId, userId)