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

fix: missing notifications due to LegalHold not Notified (WPB-10351) #2905

Merged

Conversation

yamilmedina
Copy link
Contributor


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

This PR solves a bug introduced by #2874 , assuming that we have always a notification about LH in the conversations

Causes (Optional)

Notifications not being received

Solutions

LEFT join and assume true (same default value for the table) in case missing.
Added test to cover the case.

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.

@yamilmedina yamilmedina self-assigned this Jul 26, 2024
@yamilmedina yamilmedina requested review from alexandreferris and removed request for a team July 26, 2024 09:34
@yamilmedina yamilmedina changed the title fix: missing notifications due to not LegalHold Notified (WPB-10351) fix: missing notifications due to LegalHold not Notified (WPB-10351) Jul 26, 2024
Copy link

@@ -16,12 +16,12 @@ SELECT
Conversation.type AS conversationType,
Conversation.degraded_conversation_notified AS degradedConversationNotified,
Conversation.legal_hold_status AS legalHoldStatus,
LegalHoldNotified.legal_hold_status_change_notified AS legalHoldStatusChangeNotified
IFNULL(LegalHoldNotified.legal_hold_status_change_notified, 1) == 1 AS legalHoldStatusChangeNotified
Copy link
Contributor Author

@yamilmedina yamilmedina Jul 26, 2024

Choose a reason for hiding this comment

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

Here I assumed the default value from the table (Boolean = 1), but please @borichellow that has more context, correct me if otherwise :D

Copy link
Contributor

github-actions bot commented Jul 26, 2024

Test Results

2 905 tests   2 782 ✔️  24s ⏱️
   494 suites     123 💤
   494 files           0

Results for commit f1bcada.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

Datadog Report

Branch report: fix/reply-allowed-nonotifications
Commit report: c99cea4
Test service: kalium-jvm

✅ 0 Failed, 2923 Passed, 107 Skipped, 6.3s Total Time

@yamilmedina yamilmedina enabled auto-merge (squash) July 26, 2024 10:02
@yamilmedina yamilmedina merged commit 0af67ce into release/android-cycle-4.6 Jul 26, 2024
19 checks passed
@yamilmedina yamilmedina deleted the fix/reply-allowed-nonotifications branch July 26, 2024 10:04
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 👕 size: S type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants