Skip to content

fix: fetch MLS public keys the same way as feature config [WPB-17161] #3991

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

Open
wants to merge 35 commits into
base: develop
Choose a base branch
from

Conversation

saleniuk
Copy link
Contributor

@saleniuk saleniuk commented Apr 15, 2025

BugWPB-17161 [Android] Excessive frequency of fetching MLS public keys


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

Fetching MLS public keys should be treated the same way as feature-configs.
https://wearezeta.atlassian.net/wiki/spaces/ENGINEERIN/pages/160858877/Feature+flags+and+feature+configuration#Periodic-fetch-of-configuration

Solutions

Add fetching MLS public keys to the AppSyncViewModel. Update kalium version to the one with MLS public keys changes to be able to use MLSPublicKeysSyncWorker (it executes fetch every 24h as well).

Dependencies (Optional)

Needs releases with:

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

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.

MohamadJaara and others added 30 commits March 13, 2025 15:44
…into fix/fetch-mls-public-keys-on-foreground

# Conflicts:
#	kalium
@saleniuk saleniuk changed the title Fix/fetch mls public keys on foreground fix: fetch MLS public keys the same way as feature config [WPB-17161] Apr 15, 2025
Copy link

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.52%. Comparing base (f311bc4) to head (61c08a3).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3991   +/-   ##
========================================
  Coverage    47.51%   47.52%           
========================================
  Files          503      503           
  Lines        17652    17654    +2     
  Branches      2917     2917           
========================================
+ Hits          8388     8390    +2     
  Misses        8384     8384           
  Partials       880      880           
Files with missing lines Coverage Δ
...otlin/com/wire/android/ui/home/AppSyncViewModel.kt 82.85% <100.00%> (+1.03%) ⬆️

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 f311bc4...61c08a3. 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
Contributor

Built wire-android-staging-compat-pr-3991.apk is available for download

Copy link
Contributor

This PR is stale because it has been open 30 days with no activity. Please update it or close it in case is not relevant anymore.

@github-actions github-actions bot added the stale Inactivity alert label May 16, 2025
saleniuk added 3 commits June 17, 2025 12:18
…ic-keys-on-foreground

# Conflicts:
#	.github/workflows/build-prod-app.yml
#	app/src/main/kotlin/com/wire/android/di/accountScoped/DebugModule.kt
#	app/src/main/kotlin/com/wire/android/ui/authentication/devices/register/RegisterDeviceScreen.kt
#	app/src/main/kotlin/com/wire/android/ui/authentication/login/email/LoginEmailViewModel.kt
#	app/src/main/kotlin/com/wire/android/ui/debug/DebugDataOptions.kt
#	app/src/main/kotlin/com/wire/android/ui/debug/DebugDataOptionsViewModel.kt
#	app/src/main/kotlin/com/wire/android/ui/home/AppSyncViewModel.kt
#	app/src/main/kotlin/com/wire/android/ui/home/HomeState.kt
#	app/src/main/kotlin/com/wire/android/ui/home/HomeViewModel.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/ConversationScreen.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/media/ConversationMediaScreen.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModel.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/item/MessageContentAndStatus.kt
#	app/src/main/kotlin/com/wire/android/ui/home/conversations/model/messagetypes/audio/AudioMessageType.kt
#	app/src/main/play/release-notes/en-US/default.txt
#	app/src/test/kotlin/com/wire/android/ui/authentication/login/email/LoginEmailViewModelTest.kt
#	app/src/test/kotlin/com/wire/android/ui/calling/SharedCallingViewModelTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/AppSyncViewModelTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/HomeViewModelTest.kt
#	app/src/test/kotlin/com/wire/android/ui/home/conversations/messages/ConversationMessagesViewModelTest.kt
#	app/src/test/kotlin/com/wire/android/ui/settings/debug/DebugDataOptionsViewModelTest.kt
#	build-logic/plugins/src/main/kotlin/AndroidCoordinates.kt
#	kalium
@stale stale bot removed the stale Inactivity alert label Jun 17, 2025
@CLAassistant
Copy link

CLAassistant commented Jun 17, 2025

CLA assistant check
All committers have signed the CLA.

@saleniuk saleniuk changed the base branch from release/candidate to develop June 17, 2025 11:23
Copy link

Copy link
Contributor

Built wire-android-staging-compat-pr-3991.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3991.apk is available for download

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.

6 participants