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

feat: Ask user about messaging in Degraded conversation (WPB-1771) #2220

Merged

Conversation

borichellow
Copy link
Contributor

What's new in this PR?

Users need to be notified that the conversation where he/she going to send a message is degraded.
For that:

  • Added should_inform_about_verification_before_messaging flag into Conversation DB table
  • added UseCases to observe and update that flag
  • added DB trigger to automatically update that flag when the conversation's verification degraded

@@ -1056,6 +1061,19 @@ internal class ConversationDataSource internal constructor(
}
}

override suspend fun updateInformAboutVerificationBeforeMessagingFlag(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
override suspend fun updateInformAboutVerificationBeforeMessagingFlag(
override suspend fun setInformAboutVerificationBeforeMessagingFlag(

@@ -1056,6 +1061,19 @@ internal class ConversationDataSource internal constructor(
}
}

override suspend fun updateInformAboutVerificationBeforeMessagingFlag(
conversationId: QualifiedID,
updateFlag: Boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: updatedValue, or even value.

@@ -42,7 +42,8 @@ CREATE TABLE Conversation (
archived_date_time INTEGER AS Instant,
-- mls_verification_status
verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED",
proteus_verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED"
proteus_verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED",
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0
Copy link
Contributor

@mchenani mchenani Nov 13, 2023

Choose a reason for hiding this comment

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

Suggested change
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0
degraded_conversation_notified INTEGER AS Boolean NOT NULL DEFAULT 0

or

Suggested change
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0
notified_degraded_conversation INTEGER AS Boolean NOT NULL DEFAULT 0

Copy link
Contributor

@mchenani mchenani left a comment

Choose a reason for hiding this comment

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

Looks good👍, added some naming suggestions.

Copy link
Contributor

github-actions bot commented Nov 14, 2023

Unit Test Results

   385 files   -   85     385 suites   - 85   34s ⏱️ - 1m 53s
2 253 tests  - 369  2 187 ✔️  - 331  66 💤  - 38  0 ±0 

Results for commit 7147791. ± Comparison against base commit ea4ec38.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Nov 14, 2023

Datadog Report

All test runs dabd1d8 🔗

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 2187 66 7m 15.02s Link
kalium-jvm 0 0 0 2520 104 7m 18s Link

@borichellow borichellow added this pull request to the merge queue Nov 14, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 14, 2023
@borichellow borichellow added this pull request to the merge queue Nov 14, 2023
Merged via the queue into develop with commit b0c7e37 Nov 14, 2023
15 checks passed
@borichellow borichellow deleted the feat/ask_user_about_messaging_in_degraded_conversation branch November 14, 2023 15:27
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. 🚨 Potential breaking changes 👕 size: M type: feature ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants