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

[SDK-4043] transition: method refactoring #1863

Merged
merged 6 commits into from
Feb 23, 2024
Merged

Conversation

maratal
Copy link
Collaborator

@maratal maratal commented Jan 28, 2024

Solves #1858
This should be merged after #1714

Summary:
Now it's a single method for transition with more clear name and it passes resume through metadata directly rather than in two steps (metadata->state change->method). Read commit messages for more.

@github-actions github-actions bot temporarily deployed to staging/pull/1863/features January 28, 2024 22:38 Inactive
@maratal maratal changed the base branch from main to feature/no-connection-serial January 28, 2024 22:39
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc January 28, 2024 22:42 Inactive
@maratal maratal changed the title transition: method refactoring [WIP]transition: method refactoring Jan 28, 2024
@maratal maratal marked this pull request as ready for review January 29, 2024 13:27
Source/ARTRealtime.m Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to staging/pull/1863/features February 2, 2024 14:33 Inactive
@maratal maratal changed the title [WIP]transition: method refactoring transition: method refactoring Feb 2, 2024
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc February 2, 2024 14:39 Inactive
@maratal maratal force-pushed the transition-refactoring branch from d75c5c1 to fea657b Compare February 2, 2024 19:50
@github-actions github-actions bot temporarily deployed to staging/pull/1863/features February 2, 2024 19:50 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc February 2, 2024 19:54 Inactive
@maratal maratal changed the title transition: method refactoring [SDK-4043] transition: method refactoring Feb 5, 2024
Copy link
Contributor

@sacOO7 sacOO7 left a comment

Choose a reason for hiding this comment

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

LGTM

@maratal maratal force-pushed the feature/no-connection-serial branch 7 times, most recently from 6e62c70 to 9618f95 Compare February 22, 2024 18:06
Base automatically changed from feature/no-connection-serial to main February 22, 2024 23:59
@github-actions github-actions bot temporarily deployed to staging/pull/1863/features February 23, 2024 00:18 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc February 23, 2024 00:21 Inactive
@maratal maratal force-pushed the transition-refactoring branch from 7acd692 to e1ea275 Compare February 23, 2024 00:30
@github-actions github-actions bot temporarily deployed to staging/pull/1863/features February 23, 2024 00:30 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc February 23, 2024 00:33 Inactive
…nd this is to reduce confusion when to call what and just call one transition on `CONNECTED` event.

Test "test__013__Connection..." began to fail because it explicitly expects `errorReason` on conection to be nil, while RTN24 tells nothing about not setting this property (but RTN25 gives a specs list where the `Connection#errorReason` should be set which doesn't include RTN24 for some reason, but I think this is discussabe).
…`. Now `resumed` from metadata can be used directly since everything is inside one `transition:` method now.
…commit 66e5500 both calls to `connect` were generating `CONNECTING` event. After this change the second event is an `UPDATE`, and the first one is fired before listener subscribes to it (for that reason other tests using `once(.connecting)` also set `options.autoConnect` to false or control this process in some other way, like waiting for `CONNECTED` first or explicitly drop connection).
@maratal maratal force-pushed the transition-refactoring branch from e1ea275 to 77cc141 Compare February 23, 2024 00:53
@github-actions github-actions bot temporarily deployed to staging/pull/1863/features February 23, 2024 00:54 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1863/jazzydoc February 23, 2024 00:59 Inactive
Also renamed `transition:` to `performTransitionToState` for realtime channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants