-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
PLT-6214 Move channel store and actions over to redux #6235
Conversation
@jwilander the build seems to fail |
Yeah, I'm looking into it. Seems unrelated to my changes EDIT: I broke a unit test -.- (fixed now) |
Tested on Win10/Chrome. i'll have time later today to test channel notification preferences for email/mobile, gotta hop into something else for a bit,
Observed: Expected:
observed: (for other users) Channel remains bolded in the sidebar. System message expected: (for other users) Channel disappears from the sidebar
EDIT: It seems the "Mark Channel Unread" option in the UI keeps changing based on "send desktop notification" setting, although the functionality doesn't actually change |
Also found a bug that repros on master: https://mattermost.atlassian.net/browse/PLT-6414 |
Thanks @jasonblais! I'll go through these and fix them a bit later |
@jasonblais fixed all above issues except for 7 which I wasn't able to reproduce |
Confirm 1 - 6 are fixed. Got better repro steps for 7
Observed: Send desktop notifications set to Testing email/mobile push notifications right now, |
8 - Setting one channel notification preference resets the other
Similarly, setting Send Desktop Notifications back to 'only for mentions' resets the Mark Channel Unread option. Clicking to edit the setting doesn't show either option being selected. 9 - Channel mobile push notification preferences don't work. They won't overwrite the account preferences.
Observed: Mobile push notifications for that channel keep coming. Same with different combinations of account/channel notification preferences. (PS: No issues with email notifications at the account-level - I realized we don't have channel-specific settings for them) |
Alright fixed 7,8,9. Thanks for the extra repro steps, that helped a lot |
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.
confirmed fixes
patchChannel, | ||
getChannelMembersByIds, | ||
deleteChannel as deleteChannelRedux | ||
} from 'mattermost-redux/actions/channels'; |
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.
Why not do something like import * as ChannelActions from 'mattermost-redux/actions/channels'
? im really 0/5 but it seems simpler that way
@@ -283,11 +239,11 @@ export function unmarkFavorite(channelId) { | |||
} | |||
|
|||
export function loadChannelsForCurrentUser() { | |||
AsyncClient.getChannels().then(() => { | |||
AsyncClient.getMyChannelMembers().then(() => { | |||
fetchMyChannelsAndMembers(TeamStore.getCurrentId())(dispatch, getState).then( |
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.
im also 0/5 on this but you could do
fetchMyChannelsAndMembers(TeamStore.getCurrentId())(dispatch, getState).
then(loadDMsAndGMsForUnreads);
config/config.json
Outdated
@@ -70,7 +70,7 @@ | |||
}, | |||
"SqlSettings": { | |||
"DriverName": "mysql", | |||
"DataSource": "mmuser:mostest@tcp(dockerhost:3306)/mattermost_test?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s", |
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.
Unintended change.
@crspeller fixed |
Summary
Move channel store and actions over to redux. Waiting on #6222 but ready for PM review.
Testing areas:
Ticket Link
https://mattermost.atlassian.net/browse/PLT-6214