Skip to content

feat: implement SyncServicesUseCase to sync services from backend and update ObserveAllServicesUseCase to avoid network calls [WPB-25762]#4750

Merged
MohamadJaara merged 8 commits into
developfrom
mo/don't-wait-for-remote-api-to-show-the-list-of-bots
May 19, 2026
Merged

feat: implement SyncServicesUseCase to sync services from backend and update ObserveAllServicesUseCase to avoid network calls [WPB-25762]#4750
MohamadJaara merged 8 commits into
developfrom
mo/don't-wait-for-remote-api-to-show-the-list-of-bots

Conversation

@MohamadJaara
Copy link
Copy Markdown
Member

@MohamadJaara MohamadJaara commented Apr 23, 2026

https://wearezeta.atlassian.net/browse/WPB-25762


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

ObserveAllServicesUseCase only return after a remote API update even tho the list of bots is

Causes (Optional)

the use case will update first and then return

Solutions

split it into ObserveAllServicesUseCase and SyncServicesUseCase and call SyncServicesUseCase from the view model when needed to update

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.17%. Comparing base (b189b69) to head (798b793).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4750   +/-   ##
========================================
  Coverage    51.16%   51.17%           
========================================
  Files          611      611           
  Lines        21139    21143    +4     
  Branches      3399     3400    +1     
========================================
+ Hits         10816    10820    +4     
  Misses        9308     9308           
  Partials      1015     1015           
Files with missing lines Coverage Δ
...e/conversations/search/apps/SearchAppsViewModel.kt 98.07% <100.00%> (+0.16%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b189b69...798b793. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@saleniuk saleniuk left a comment

Choose a reason for hiding this comment

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

One question

… update ObserveAllServicesUseCase to avoid network calls
@MohamadJaara MohamadJaara force-pushed the mo/don't-wait-for-remote-api-to-show-the-list-of-bots branch from d87cf3d to 2dd7682 Compare May 19, 2026 10:39
@MohamadJaara MohamadJaara changed the title feat: implement SyncServicesUseCase to sync services from backend and update ObserveAllServicesUseCase to avoid network calls feat: implement SyncServicesUseCase to sync services from backend and update ObserveAllServicesUseCase to avoid network calls [WPB-25762] May 19, 2026
@MohamadJaara MohamadJaara requested a review from a team as a code owner May 19, 2026 12:43
@MohamadJaara MohamadJaara requested review from Garzas, ohassine, sbakhtiarov, typfel and yamilmedina and removed request for a team May 19, 2026 12:43
@MohamadJaara MohamadJaara enabled auto-merge May 19, 2026 12:47
@MohamadJaara
Copy link
Copy Markdown
Member Author

  • [ ]

auto-merge was automatically disabled May 19, 2026 12:59

Pull request was closed

@MohamadJaara MohamadJaara reopened this May 19, 2026
@MohamadJaara MohamadJaara enabled auto-merge May 19, 2026 12:59
@MohamadJaara MohamadJaara added this pull request to the merge queue May 19, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch May 19, 2026
@MohamadJaara MohamadJaara merged commit 985c4cd into develop May 19, 2026
7 checks passed
@MohamadJaara MohamadJaara deleted the mo/don't-wait-for-remote-api-to-show-the-list-of-bots branch May 19, 2026 13:30
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants