Skip to content

Feature : First iteration of message queuing #3011

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

Merged
merged 14 commits into from
Jun 12, 2024

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Jun 11, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

This is the first iteration of the message queuing, it includes :

  • automatically retry failed requests as soon as the network is availble again
  • remove manual retry options, and fail sending state in the UI (this will be back soon..)
  • redacting a local echo will cancel sending it

Motivation and context

Closes #2863
Closes #2862

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@ganfra ganfra marked this pull request as ready for review June 11, 2024 15:13
@ganfra ganfra requested a review from a team as a code owner June 11, 2024 15:13
@ganfra ganfra requested review from jmartinesp and removed request for a team June 11, 2024 15:13
@ElementBot
Copy link
Collaborator

ElementBot commented Jun 11, 2024

Warnings
⚠️

Please add a changelog. See instructions here

Messages
📖 Sign-off not required, allow-list

Generated by 🚫 dangerJS against 75c4f4f

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM after a quick review, just a couple of comments to double check.

* Enables or disables the sending queue, according to the given parameter.
*
* The sending queue automatically disables itself whenever sending an
* event with it failed (e.g., sending an event via the Timeline,
Copy link
Member

Choose a reason for hiding this comment

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

Very tiny nit: unclosed parenthesis 😅 .

editItem = it,
)
}
specialModeEventTimelineItem = null
Copy link
Member

Choose a reason for hiding this comment

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

This isn't needed for the other when branch?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, we want to remove edition of local echo, as it'll break the ordering in the sending queue.
I'll update the api and usage.

@ganfra ganfra changed the base branch from develop to feature/fga/update_rust_sdk_0.2.25 June 12, 2024 09:38
@ganfra ganfra merged commit c091813 into feature/fga/update_rust_sdk_0.2.25 Jun 12, 2024
10 of 17 checks passed
@ganfra ganfra deleted the feature/fga/message_queuing branch June 12, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Redesign sending state and remove Retry option for sending messages [Task] Use reachability APIs to enable/disable sending queue on the SDK
3 participants