-
Notifications
You must be signed in to change notification settings - Fork 11
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-58438: simplify settings #688
Conversation
4e1a02f
to
8b9073d
Compare
8b9073d
to
7614655
Compare
cf30b87
to
4b65742
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm hesitant to say it's a good idea to re-merge DM and GM tho, I think our DM experience at this point is better than experimental but our GMs are not really at the same level.
@@ -332,7 +332,7 @@ func (ah *ActivityHandler) handleCreatedActivity(msg *clientmodels.Message, subs | |||
return metrics.DiscardedReasonOther | |||
} | |||
|
|||
post, skippedFileAttachments, errorFound := ah.msgToPost(channelID, senderID, msg, chat, ah.plugin.GetSyncFileAttachments(), []string{}) | |||
post, skippedFileAttachments, errorFound := ah.msgToPost(channelID, senderID, msg, chat, true, []string{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have cases where the attachements parameters is false
? and if not, should we remove this parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relative to this PR, yes: notifications currently don't process attachments. I have a separate (pending) PR to enable that, after which this parameter will go away.
I agree that GMs introduce the most experimental level of functionality, but the overhead to enable one without the other is non-trivial. Syncing with @esethna, we're aiming to deprioritize chat sync altogether, with no plan to "sell" only DMs to any customer. |
Sounds good then! Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question as to naming.
@@ -46,8 +42,8 @@ type configuration struct { | |||
SyntheticUserAuthService string `json:"syntheticUserAuthService"` | |||
SyntheticUserAuthData string `json:"syntheticUserAuthData"` | |||
AutomaticallyPromoteSyntheticUsers bool `json:"automaticallyPromoteSyntheticUsers"` | |||
DisableSyncMsg bool `json:"disableSyncMsg"` | |||
DisableCheckCredentials bool `json:"disableCheckCredentials"` | |||
UseSharedChannels bool `json:"experimentalUseSharedChannels"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious as to the word choice "Use". UseSharedChannels
makes me think this is related to the SharedChannels architecture. (EnableSharedChannels
). ShareChannels
or AllowSharedChannels
seems more appropriate. I'm 0/5 and may be misunderstanding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbishel, this is indeed referring to the shared channels architecture feature that won't be productized for v10. Agree the wording is confusing -- is there another term that might help clarify? Maybe even explicitly UseSharedChannelsArchitecture
or EnableSharedChannelsArchitecture
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbishel, just circling back to our conversation above -- any thoughts after the clarification?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is referring to the architecture, I think the current naming is fine, no need to add Architecture
. Its use in plugin.go
made me think it was more of an on/off flag rather than which architecture to use. My misunderstanding of its full purpose...only looking at the PR.
Summary
We're simplifying the plugin configuration to focus users towards the GA functionality for v10:
enabledTeams
setting altogethersyncReactions
and always sync reactions (as appropriate)syncFileAttachments
and always sync file attachments (as appropriate)syncDirectMessages
andsyncGroupMessages
under a newexperimentalSyncChat
selectiveSync
asexperimentalSelectiveSync
certificatepublic
asexperimentalcertificatepublic
andcertificatekey
asexperimentalcertificatekey
.disableSyncMsg
asexperimentalUseSharedChannels
so that it defaults off.disableCheckCredentials
asinternalDisableCheckCredentials
plugin.json
to hide them from the system console.Ticket Link
Fixes: https://mattermost.atlassian.net/browse/MM-58438