Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

ABC-79: use autocomplete channels endpoint #684

Merged
merged 2 commits into from
Jan 31, 2018

Conversation

ccbrown
Copy link
Contributor

@ccbrown ccbrown commented Jan 30, 2018

Summary

See mattermost/mattermost#8163 and mattermost/mattermost-redux#384

Won't work until the other PRs are merged.

Ticket Link

https://mattermost.atlassian.net/browse/ABC-79

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)
  • Ran make test to ensure unit and component tests passed
  • Has server changes
  • Has redux changes

@ccbrown ccbrown added the 2: Dev Review Requires review by a core commiter label Jan 30, 2018
@ccbrown ccbrown added the 1: PM Review Requires review by a product manager label Jan 30, 2018
@jasonblais jasonblais added the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Jan 30, 2018
@jasonblais jasonblais self-assigned this Jan 30, 2018
@grundleborg grundleborg removed the 2: Dev Review Requires review by a core commiter label Jan 31, 2018
@jasonblais jasonblais added Setup Old Test Server Triggers the creation of a test server and removed Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) Setup Old Test Server Triggers the creation of a test server labels Jan 31, 2018
@jasonblais
Copy link
Contributor

@ccbrown Server-side results not loading for me on channel autocomplete. Client-side results displayed immediately. The test server has 24 channels of which the user-0 account has joined 6.

image

Network should be fine. Waited for several seconds. Other channel searches seem fine.

@mattermost mattermost deleted a comment from mattermod Jan 31, 2018
@mattermost mattermost deleted a comment from mattermod Jan 31, 2018
@ccbrown ccbrown added Setup Old Test Server Triggers the creation of a test server and removed Setup Old Test Server Triggers the creation of a test server labels Jan 31, 2018
@mattermod
Copy link
Contributor

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

@mattermod
Copy link
Contributor

Spinmint test server created at: http:https://i-0aa0065b1b13eeba7.spinmint.com

Test Admin Account: Email: [email protected] | Password: user-0

Test User Account: Email: [email protected] | Password: user-1

@ccbrown
Copy link
Contributor Author

ccbrown commented Jan 31, 2018

@jasonblais Had to update redux after its PR was merged. This spinmint is good to test now.

@jasonblais
Copy link
Contributor

@ccbrown This looks good to me. The difference in perf is great. It was usable at even slow 3G connection.

It's hard to say if users would notice the difference when returning X arbitrary results instead of the first X.. I personally didn't when I tested. And given it's standard in other apps I suspect users wouldn't.

One issue though: Off-Topic channel always shows at the top of my "Other Channels" list:

image

Copy link
Contributor

@jasonblais jasonblais left a comment

Choose a reason for hiding this comment

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

One minor note above about Off-Topic

@ccbrown
Copy link
Contributor Author

ccbrown commented Jan 31, 2018

@jasonblais I'm not sure I see the problem. The user wasn't in the off-topic channel. So it should have been there, right? I just joined the off-topic channel and it was moved from the "other channels" list as expected.

@ccbrown
Copy link
Contributor Author

ccbrown commented Jan 31, 2018

Oh. I guess you're referring to the sorting. Yeah, it looks like capitalized channel names are sorted before lowercase. That would be a server-side fix though, not part of this PR.

@ccbrown
Copy link
Contributor Author

ccbrown commented Jan 31, 2018

Here's the PR to fix that: mattermost/mattermost#8176

@amyblais
Copy link
Member

The new PR (mattermost/mattermost#8176) is now merged.

Copy link
Contributor

@jasonblais jasonblais left a comment

Choose a reason for hiding this comment

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

That's good then, @ccbrown we can merge this PR

@jasonblais jasonblais removed their assignment Jan 31, 2018
@jasonblais jasonblais added 4: Reviews Complete All reviewers have approved the pull request and removed 1: PM Review Requires review by a product manager Setup Old Test Server Triggers the creation of a test server labels Jan 31, 2018
@ccbrown ccbrown merged commit 39b8326 into mattermost:master Jan 31, 2018
@amyblais amyblais added the Changelog/Done Required changelog entry has been written label Feb 2, 2018
@lindalumitchell lindalumitchell added the Tests/Not Needed Does not require new release tests label Feb 2, 2018
@amyblais amyblais added the Docs/Not Needed Does not require documentation label Feb 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
7 participants