Skip to content

feat: add type safe message sync network dtos#3822

Open
MohamadJaara wants to merge 11 commits intoepic/shard-devicefrom
mo/message-sync-network-dtos
Open

feat: add type safe message sync network dtos#3822
MohamadJaara wants to merge 11 commits intoepic/shard-devicefrom
mo/message-sync-network-dtos

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

add type safe message sync network dtos

Dependencies (Optional)

If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.

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.

Introduce MessageSyncContentDTO and MessageSyncPayloadDTO to replace
the string-based payload in MessageSyncResultDTO and MessageSyncUpsertDTO.

This provides type-safe serialization for text, asset, and location
message content when syncing to the remote backup service.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 2531fd4.

♻️ This comment has been updated with latest results.

Base automatically changed from mo/remote-backup-database-ops to epic/shard-device January 27, 2026 15:34
…work-dtos

# Conflicts:
#	data/network-model/src/commonMain/kotlin/com/wire/kalium/network/api/authenticated/remoteBackup/MessageSyncResultDTO.kt
#	data/network-model/src/commonMain/kotlin/com/wire/kalium/network/api/authenticated/remoteBackup/MessageSyncUpsertDTO.kt
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 55.09259% with 97 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (epic/shard-device@b34301c). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ated/remoteBackup/RemoteBAckupMessageContentDTO.kt 12.98% 67 Missing ⚠️
...kalium/mocks/responses/RemoteBackupResponseJson.kt 75.20% 25 Missing and 5 partials ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##             epic/shard-device    #3822   +/-   ##
====================================================
  Coverage                     ?   59.70%           
====================================================
  Files                        ?     1915           
  Lines                        ?    59532           
  Branches                     ?     6431           
====================================================
  Hits                         ?    35541           
  Misses                       ?    21062           
  Partials                     ?     2929           
Files with missing lines Coverage Δ
...authenticated/remoteBackup/MessageSyncResultDTO.kt 100.00% <100.00%> (ø)
...authenticated/remoteBackup/MessageSyncUpsertDTO.kt 100.00% <100.00%> (ø)
...thenticated/remoteBackup/RemoteBackupPayloadDTO.kt 100.00% <100.00%> (ø)
...kalium/mocks/responses/RemoteBackupResponseJson.kt 75.20% <75.20%> (ø)
...ated/remoteBackup/RemoteBAckupMessageContentDTO.kt 12.98% <12.98%> (ø)

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 b34301c...2531fd4. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

* This mirrors the structure of BackupMessageContent.
*/
@Serializable
sealed class RemoteBAckupMessageContentDTO {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a typo in class name (uppercase A)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

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.

3 participants