mattermost-webapp icon indicating copy to clipboard operation
mattermost-webapp copied to clipboard

[MM-38335] Prioritize results of add members to channel based on recent DMs

Open ksankeerth opened this issue 2 years ago • 12 comments

Summary

  • Find channels and filter DM and GM
  • Sort channels as per last viewed time
  • Find Userprofiles associated with channels and sort(alphabetically for GM Channenl)
  • Max 10 - Userprofiles from DMs and Max 25 profiles
  • 2 test cases

Ticket Link

Fixes https://github.com/mattermost/mattermost-server/issues/21174

Related Pull Requests

Screenshots

before after

Before

| before|

After

after|

Release Note

  • Enhanced user experience for adding users to channel. Users from recent DMs will be loaded for user selection and user profiles from server will be merged when they are available.
Prioritized members of recently viewed DMs/GMs when adding users to a channel

ksankeerth avatar Oct 09 '22 14:10 ksankeerth

@ksankeerth: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

I understand the commands that are listed here

mm-cloud-bot avatar Oct 09 '22 14:10 mm-cloud-bot

Hello @ksankeerth,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

mattermod avatar Oct 09 '22 14:10 mattermod

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

mattermod avatar Oct 09 '22 14:10 mattermod

@ksankeerth could you please fix the lint issues

AshishDhama avatar Oct 11 '22 03:10 AshishDhama

@ksankeerth could you please fix the lint issues

Sorry for delay. I've fixed lint issues

ksankeerth avatar Oct 14 '22 15:10 ksankeerth

Creating a new SpinWick test server using Mattermost Cloud.

mm-cloud-bot avatar Oct 18 '22 18:10 mm-cloud-bot

Mattermost test server created! :tada:

Access here: https://mattermost-webapp-pr-11316.test.mattermost.cloud

Account Type Username Password
Admin sysadmin Sys@dmin123
User user-1 User-1@123

mm-cloud-bot avatar Oct 18 '22 18:10 mm-cloud-bot

Thanks for the review. I'll fix them

ksankeerth avatar Oct 21 '22 10:10 ksankeerth

/update-branch

ksankeerth avatar Oct 25 '22 10:10 ksankeerth

Thanks for making those changes. There's a few other things I noticed as well when re-reviewing that I'd like changed, but that should be it then

Thanks for taking time time to review again 🙂. I have updated the branch with the suggestions.

ksankeerth avatar Oct 28 '22 02:10 ksankeerth

New commit detected. SpinWick will upgrade if the updated docker image is available.

mm-cloud-bot avatar Oct 28 '22 02:10 mm-cloud-bot

Mattermost test server updated with git commit a612298b9106b98ce25aded226323d5ceab2e3c3.

Access here: https://mattermost-webapp-pr-11316.test.mattermost.cloud

mm-cloud-bot avatar Oct 28 '22 03:10 mm-cloud-bot

/e2e-test

jgilliam17 avatar Nov 01 '22 21:11 jgilliam17

Successfully triggered e2e testing! https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/257215

mattermod avatar Nov 01 '22 21:11 mattermod

Thanks @ksankeerth Tested manually, verified recent DMs and GMs are prioritized when adding members to channel Few test are failing, related to channel member RHS, I've pulled the specs below but you can also view the full E2E report here tests/integration/channel_settings/add_users_to_channel_spec.js tests/integration/channel/channel_members_rhs_spec.js tests/integration/channel/channel_info_rhs_spec.js

jgilliam17 avatar Nov 02 '22 15:11 jgilliam17

This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!

mattermod avatar Nov 13 '22 01:11 mattermod

@ksankeerth Please feel free to ping me for review once you are done with the e2e changes.

AshishDhama avatar Nov 14 '22 04:11 AshishDhama

@ksankeerth Do you need help with this.

AshishDhama avatar Dec 13 '22 06:12 AshishDhama

@ksankeerth Do you need help with this.

Really sorry for missing this PR. Unfortunately, I've been busy in moving to another country. Please give me a few days, try to clear this by the weekend. Sorry again.

ksankeerth avatar Dec 13 '22 09:12 ksankeerth

Thanks @ksankeerth Tested manually, verified recent DMs and GMs are prioritized when adding members to channel Few test are failing, related to channel member RHS, I've pulled the specs below but you can also view the full E2E report here tests/integration/channel_settings/add_users_to_channel_spec.js tests/integration/channel/channel_members_rhs_spec.js tests/integration/channel/channel_info_rhs_spec.js

Hi Matermost team,

I checked the above integration tests locally. The below was my observations.

** tests/integration/channel_settings/add_users_to_channel_spec.js **

  • fails in master and this PR branch
  • image

**tests/integration/channel/channel_members_rhs_spec.js **

  • a few times it failed in this PR branch, but not able to reproduce all the times.
  • when I increased timeout https://github.com/mattermost/mattermost-webapp/blob/master/e2e/cypress/tests/integration/channel/channel_members_rhs_spec.js#L126 , it doesn't fail at all

** tests/integration/channel/channel_info_rhs_spec.js **

  • a few times, it failed in this PR branch, but not able to reproduce all the times

I could not think of any fixes for above its except increasing timeout. not sure how the code I added in this PR impacts these ITS. Any ideas?

Thanks!

ksankeerth avatar Dec 18 '22 13:12 ksankeerth

/e2e-test

jgilliam17 avatar Dec 19 '22 17:12 jgilliam17

Successfully triggered E2E testing! GitLab pipeline | Test dashboard

mattermod avatar Dec 19 '22 17:12 mattermod

@AshishDhama can you verify at your end and merge please

M-ZubairAhmed avatar Dec 20 '22 00:12 M-ZubairAhmed

/update-branch

AshishDhama avatar Dec 20 '22 05:12 AshishDhama

LGMT, I will merge it after smoke testing on the test server, as soon as we can create a test server (broken right now).

AshishDhama avatar Dec 28 '22 06:12 AshishDhama

Test server destroyed

mm-cloud-bot avatar Dec 29 '22 13:12 mm-cloud-bot

Test server destroyed

mm-cloud-bot avatar Dec 29 '22 13:12 mm-cloud-bot