-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ECO-5009][CHA-RL1] Room ATTACH #27
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6d2d24c
Added checks for current room state before room ATTACH operation
sacOO7 d018b0d
Implemented RoomStatus interface, added code to handle exceptions when
sacOO7 99c7363
Marked RoomOptions as optional as per spec
sacOO7 3067774
Added offAll method interface method to remove all listeners
sacOO7 8ffabb1
Refactored room interfaces, implemented DefaultRoomStatus class that
sacOO7 5b321c6
Replaced ChatEventEmitter with RoomStatusEventEmitter, implemented mi…
sacOO7 7943aba
Added proper logging for DefaultRoom room attach operation failure
sacOO7 21ac68a
Added RoomLifecycleManager class, defined basic interfaces needed for
sacOO7 0d7f9a9
Updated coroutine core as a direct dependency to chat-android package
sacOO7 ba0f81e
Implemented missing interfaces as a part of RoomLifeCycleManager
sacOO7 5daeaf3
Merge branch 'main' into feature/room-ATTACH
sacOO7 899363b
Fixed linting issues recommended by detekt
sacOO7 102513c
Updated ably-java dependency to latest version
sacOO7 572fd8d
Updated ContributesToRoomLifecycle channel property to CompletableDef…
sacOO7 da00860
Upgraded kotlinx.coroutines dependency to latest version
sacOO7 be11428
Renamed DefaultRoomStatusStatus class to DefaultStatus, same as chat-js
sacOO7 a68a2a7
Implemented basic definition for RoomLifeCycleManager
sacOO7 a5e837c
Added interface impl. for ContributesToRoomLifecycle and ResolvedCont…
sacOO7 5dfb474
Fixed linting errors in local files
sacOO7 e0d5dab
Made AblyRealtimeChannel as a explicit type for all room feature chan…
sacOO7 0460c5c
Added TODOs before initializing RoomLifeCycleManager, refactored room
sacOO7 b5a5e54
Removed unused coroutinescope from the RoomLifeCycleManager, added mi…
sacOO7 ce9c0ba
Fixed RoomStatusEventEmitter typo,
sacOO7 d689419
Merge branch 'main' into feature/room-ATTACH
sacOO7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 do you think enum here is better?
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.
Having type for given
ErrorCode
enforces compile time check for right assertions with reusability.Also, IDE gives proper suggestions when matching error codes, unlike when it's generic
Int
.This makes it easy to write ErrorCode assertions in code as well as tests.
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.
Also, in chat-js,
ErrorCode
is represented as an enum, this makes it super easy to correlate between two codebases.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.
Not sure I understand, could you give an example? Typescript's enums are nothing like Kotlin's enums. Error codes usually come from backend, and they come as
Int
. I currently don't understand what benefits we get, except we have to additionally serialize/deserializeInt
into enumThere 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.
Sure, I am closing this PR in favor of #33. We can continue discussion for the same there 👍