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

[MM-58155] Separate DM/GM option #643

Merged
merged 5 commits into from
May 14, 2024
Merged

[MM-58155] Separate DM/GM option #643

merged 5 commits into from
May 14, 2024

Conversation

JulienTant
Copy link
Member

@JulienTant JulienTant commented May 7, 2024

Summary

This PR separates the "Enable DM/GM" option into "Enable DM" + "Enable GM", with all the supporting code.

Idea behind how it's done

I kept the same code path mostly because, at least for now, we are treating DMs and GMs the same way.

I renamed a lot of isDirectMessage to isDirectOrGroupMessage to make it clearer that it could be both now that there are two options.

Though/questions

We do have a tag is_direct in a lot of our prometheus metrics, not quite sure if we should rename those, OR only set to true if the message is an actual DM (exclude GM from this tag). ANd do we add a is_gm tag?

Demo

Video of the PR in action:

2024-05-08.09-26-08.mp4

Ticket Link

https://mattermost.atlassian.net/browse/MM-58155

@JulienTant JulienTant marked this pull request as ready for review May 8, 2024 16:36
@JulienTant JulienTant added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels May 8, 2024
@JulienTant JulienTant requested review from lindy65, jespino and sbishel May 8, 2024 16:51
Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

Nice, LGTM.

Copy link

@lindy65 lindy65 left a comment

Choose a reason for hiding this comment

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

Thanks @JulienTant - I've QA deferred and we'll test this at a bug bash after merge

@lindy65 lindy65 added QA/Deferred Agreement with QA that these changes will be tested post-merge and removed 3: QA Review Requires review by a QA tester labels May 8, 2024
@JulienTant JulienTant merged commit 2fce008 into main May 14, 2024
7 checks passed
@JulienTant JulienTant deleted the MM-58155 branch May 14, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer QA/Deferred Agreement with QA that these changes will be tested post-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants