-
Notifications
You must be signed in to change notification settings - Fork 21
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
Added tests for capturing createdAt values and list function behavior #273
Conversation
ccec863
to
cda14df
Compare
// BUG - List returns in Reverse Chronological order on iOS | ||
// and Chronological order on Android | ||
const first = isIos() ? 1 : 0 | ||
const second = isIos() ? 0 : 1 |
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 have a tracking issue for this?
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.
#276, and there's two more issues linked in the description 👍
🎉 This PR is included in version 1.28.0-beta.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.30.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR adds tests for checking the order returned from
list()
,listGroups()
, andlistAll()
,stream()
,streamGroups()
, andstreamAll()
, and comparescreatedAt
field of items returned from list functions tocreatedAt
field of items returned bycreateGroup/Conversation
functions.My recommendation is to merge these new tests with the comments they have about where behavior is currently inconsistent between android and iOS. We can then update the tests as the below issues are fixed.
Issues Documented in the tests:
listGroups issues: See #276
conversations.listGroups()
returns in reverse chronological on iOS, and chronological order on AndroidcreatedAt
field returned bylistGroups()
does not match thecreatedAt
of group returned bycreateGroup
function on Android when the group was created by someone other than the client who calledlistGroups()
list / listAll issues: See #277
conversations.listAll()
sets values tocreatedAt
for groups that do not match the values ofcreatedAt
returned fromcreateGroup
function.list()
andlistAll()
methods for conversations returns in Chronological order for iOS and reverse Chronological order for Androidstream/streamAll issue: See #278
createAt
value of a group returned does not match thecreatedAt
value of the group returned by the createGroup() method on Android only.