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

refactor: remove the fetch of full team members during slow sync #2253

Conversation

MohamadJaara
Copy link
Member


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

we don not need to maintain a full list of team members

Solutions

nuke any mention to fetching a full list of team members

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.

Copy link
Contributor

github-actions bot commented Nov 23, 2023

Unit Test Results

   345 files   - 130     345 suites   - 130   11s ⏱️ - 2m 17s
1 866 tests  - 783  1 836 ✔️  - 709  30 💤  - 74  0 ±0 

Results for commit 150240c. ± Comparison against base commit 802a22e.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

Merging #2253 (150240c) into develop (802a22e) will decrease coverage by 0.01%.
The diff coverage is 72.72%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2253      +/-   ##
=============================================
- Coverage      57.94%   57.93%   -0.01%     
  Complexity        21       21              
=============================================
  Files           1082     1082              
  Lines          41053    41036      -17     
  Branches        3798     3796       -2     
=============================================
- Hits           23789    23776      -13     
+ Misses         15640    15638       -2     
+ Partials        1624     1622       -2     
Files Coverage Δ
...e/kalium/logic/feature/team/SyncSelfTeamUseCase.kt 92.85% <100.00%> (-0.90%) ⬇️
.../com/wire/kalium/logic/data/team/TeamRepository.kt 81.81% <50.00%> (-0.90%) ⬇️

... and 2 files with indirect coverage changes


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 802a22e...150240c. Read the comment docs.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Nov 23, 2023

Datadog Report

All test runs 2e5927c 🔗

2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Branch View
kalium-ios 0 0 0 1836 30 12.1s Link
kalium-jvm 0 0 0 2543 104 7m 21.04s Link

teamRepository.fetchTeamById(teamId = teamId)
.map { }
.onSuccess {
teamRepository.syncServices(teamId = teamId)
Copy link
Member Author

Choose a reason for hiding this comment

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

we still need to fetch the full list of services since those are not included in search result

@MohamadJaara MohamadJaara added this pull request to the merge queue Nov 24, 2023
Merged via the queue into develop with commit 1bdd10c Nov 24, 2023
15 checks passed
@MohamadJaara MohamadJaara deleted the refactor/stop-maintaining-a-local-list-of-all-team-members branch November 24, 2023 09:51
MohamadJaara added a commit that referenced this pull request Dec 4, 2023
augustocdias pushed a commit that referenced this pull request Dec 5, 2023
* refactor: remove the fetch of full team members during slow sync

* detekt
github-merge-queue bot pushed a commit that referenced this pull request Dec 5, 2023
…2284)

* Revert "refactor: remove the fetch of full team members during slow sync (#2253)"

This reverts commit 1bdd10c.

* add flag to fetchAllTeamMembersEagerly

* add flag to fetchAllTeamMembersEagerly

* fetch all team members pages

* fetch all team members pages

* MayBeConst

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants