Commit Graph

422 Commits

Author SHA1 Message Date
Harrison Healey
ff127bbaa3 Update schema for version 3.6 (#4972)
* Update schema for version 3.6

* Update version for version 3.6
2017-01-04 17:24:07 -05:00
Joram Wilander
3df8f33437 PLT-4935 Fix searching for full email (#4947)
* Fix searching for full email

* Fix unit test
2017-01-03 17:11:44 -05:00
Corey Hulen
f48c646208 Fixing should send event removing extra go channel creation (#4942) 2017-01-03 13:45:45 -03:00
Christopher Speller
96b4e0ed87 Adding metrics to cache for profile by ids api (#4925) 2017-01-03 11:57:38 -03:00
Christopher Speller
42e04d92c4 Adding memcache to getchannel (#4928) 2017-01-03 11:53:59 -03:00
Joram Wilander
217cdf447a PLT-5073 Improve performance of /channels/view endpoint (#4881)
* Improve performance of /channels/view endpoint

* Fix store unit test
2016-12-23 10:32:30 -05:00
Christopher Speller
ffd6ccde2e Adding caching of last 60 posts. (#4880) 2016-12-22 15:14:54 -08:00
George Goldberg
53847af2c4 API for getting channel members by IDs. (#4877) 2016-12-22 10:21:05 -08:00
enahum
139cb52c99 Fix teams unread count (#4848)
* Fix teams unread

* Moving logic out of the store

* fix unit test
2016-12-21 11:20:11 -08:00
Christopher Speller
148fd01b54 Modifying post etag cache to apply to getPostsSince (#4837) 2016-12-20 11:41:04 -03:00
enahum
a55e7a97ee PLT-5044 Fix unread team messages for deleted channels (#4836) 2016-12-19 10:26:52 -08:00
Christopher Speller
f96173528f Adding metrics for caching mechanisms (#4828) 2016-12-19 10:16:22 -05:00
enahum
999d1553e1 PLT-4167 Team Sidebar (#4569)
* PLT-4167 Team Sidebar

* Address feedback from PM

* change route from my_members to members

* bug fixes

* Updating styles for teams sidebar (#4681)

* Added PM changes

* Fix corner cases

* Addressing feedback

* use two different endpoints

* Bug fixes

* Rename model and client functions, using preferences to store last team and channel viewed

* Fix mobile notification count and closing the team sidebar

* unit test, fixed bad merge and retrieve from cached when available

* bug fixes

* use id for last channel in preferences, query optimization

* Updating multi team css (#4830)
2016-12-19 08:05:46 -05:00
George Goldberg
8406e854aa PLT-4332 Position field for Users (#4632)
* Add User.Position field to store & model.

* GOFMT

* Add Position to user settings.

* Unit tests.

* Add position to profile popup.

* i18n

* Fix log message for invalid position.

* Add Position field attribute to LDAP config.

* Add Position field attribute to SAML config.

* Reword empty position message.

* Change Position Max Length to 35.

* Better invalid position error message.

* Add new fields to config.json.

* Ensure position is never longer than max when displayed.

* Hard limit of 64 chars with soft limit still 35

* Put field with other attributes.
2016-12-14 08:11:51 -03:00
Christopher Speller
86fb0d87a3 Adding caching layer to some posts calls (#4779) 2016-12-14 00:24:24 -03:00
Corey Hulen
aacbe99548 PLT-4982 Adding caching to user profiles (#4782) 2016-12-14 00:23:36 -03:00
Harrison Healey
3c3d319be0 Removed code that would remove sessions when upgrading to 3.6 (#4773) 2016-12-13 08:42:58 -05:00
Joram Wilander
30a10d35a8 PLT-4767 Implement MFA Enforcement (#4662)
* Create MFA setup page and remove MFA setup from account settings modal

* Add enforce MFA to system console and force redirect

* Lockdown mfa required API routes, add localization, other changes

* Minor fixes

* Fix typo

* Fix some unit tests

* Fix more unit tests

* Minor fix

* Updating UI for MFA screen (#4670)

* Updating UI for MFA screen

* Updating styles for MFA page

* Add the ability to switch between email/sso with MFA enabled

* Added mfa change email

* Minor UI updates for MFA enforcement

* Fix unit test

* Fix client unit test

* Allow switching email to ldap and back when MFA is enabled

* Fix unit test

* Revert config.json
2016-12-12 10:16:10 -03:00
Harrison Healey
aaa41535f8 PLT-3736 Fixed duplicated create_direct api calls not returning the existing channel (#4745)
* Fixed duplicated create_direct api calls not returning the existing channel

* Added unit tests for duplicated create_direct api calls
2016-12-09 15:43:03 -08:00
Corey Hulen
c4974374d9 PLT-4853 Adding cache purging to the server (server) (#4735)
* PLT-4853 Adding caching invalidation to HA

* PLT-4853 Adding cach purging to the server
2016-12-08 10:18:15 -05:00
Joram Wilander
472a864060 Ignore double quotes in user search (#4725) 2016-12-07 07:55:36 -05:00
Christopher Speller
026553e4f8 Improving command line interface (#4689) 2016-12-06 10:49:34 -05:00
Joram Wilander
ea26c72dad PLT-4710 User search now obeys privacy settings (#4673)
* Consider privacy settings in user search

* Add sysadmin as exception to privacy settings for user search
2016-12-02 12:24:22 -05:00
Carlos Tadeu Panato Junior
c51afba71a Add Team Description to the Team Settings (#4652)
* draft

* Add Team Description to the Team Settings

* add tooltips for team description

* made changes per PM review

* add message when there is no description set in the team

* squash
2016-12-01 17:23:28 -05:00
Harrison Healey
165ad0d4f7 PLT-1378 Initial version of emoji reactions (#4520)
* Refactored emoji.json to support multiple aliases and emoji categories

* Added custom category to emoji.jsx and stabilized all fields

* Removed conflicting aliases for :mattermost: and :ca:

* fixup after store changes

* Added emoji reactions

* Removed reactions for an emoji when that emoji is deleted

* Fixed incorrect test case

* Renamed ReactionList to ReactionListView

* Fixed 👍 and 👎 not showing up as possible reactions

* Removed text emoticons from emoji reaction autocomplete

* Changed emoji reactions to be sorted by the order that they were first created

* Set a maximum number of listeners for the ReactionStore

* Removed unused code from Textbox component

* Fixed reaction permissions

* Changed error code when trying to modify reactions for another user

* Fixed merge conflicts

* Properly applied theme colours to reactions

* Fixed ESLint and gofmt errors

* Fixed ReactionListContainer to properly update when its post prop changes

* Removed unnecessary escape characters from reaction regexes

* Shared reaction message pattern between CreatePost and CreateComment

* Removed an unnecessary select query when saving a reaction

* Changed reactions route to be under /reactions

* Fixed copyright dates on newly added files

* Removed debug code that prevented all unit tests from being ran

* Cleaned up unnecessary code for reactions

* Renamed ReactionStore.List to ReactionStore.GetForPost
2016-11-30 13:55:49 -05:00
Corey Hulen
d86cdc3f91 PLT-4822 fixing max channels per team (#4675) 2016-11-30 07:48:32 -05:00
MARUYAMA Takayuki
8d9768dad3 Change Flag Posts ordering to show posts from newest to oldest (#4656) 2016-11-28 10:26:23 -05:00
Joram Wilander
981ea33b8e PLT-4403 Add server-based channel autocomplete, search and paging (#4585)
* Add more channel paging API

* Add channel paging support to client

* Add DB channel search functions

* Add API for searching more channels

* Add more channel search functionality to client

* Add API for autocompleting channels

* Add channel autocomplete functionality to the client

* Move to be deprecated APIs to their own file

* Final clean-up

* Fixes related to feedback

* Localization changes

* Add unit as suffix to timeout constants
2016-11-24 09:35:09 -05:00
Christopher Speller
c96ecae6da Merge branch 'release-3.5' 2016-11-24 09:08:46 -05:00
Corey Hulen
b212acf312 PLT-4429 disabling at_all at_channel metions mentions when channel has more than 1k users (#4627)
* PLT-4429 disabling explicit mentions when channel has more than 1k users

* Fixing test case

* Adding setting to the admin console

* Fixing bad translation
2016-11-24 08:26:45 -05:00
Joram Wilander
062f758e47 Fix user search when using an asterisk (#4586) 2016-11-21 12:17:53 -05:00
Joram Wilander
b55ec6148c Fix resetting of statuses on Postgres (#4538) 2016-11-11 15:32:29 -05:00
Corey Hulen
41b31b4c92 PLT-4716 fixes cache invalidation issue (#4518)
* PLT-4716 fixes cache invalidation issue

* Adding missing interface

* Adding cache invalidation to channel notification preferences

* Adding cache invalidation to channel notification preferences
2016-11-10 09:25:23 -05:00
enahum
be17e05d73 PLT-4665 Fix Max Channels limit wrong count (#4512) 2016-11-10 09:23:55 -05:00
Joram Wilander
707b01e1ab Don't count inactive users on statistic pages (#4482) 2016-11-08 09:59:40 -05:00
Harrison Healey
ebe7c6b76b Updated stored database schema number to 3.5 2016-11-07 09:17:08 -05:00
Christopher Speller
18745b2d5c Increase Channel Purpose length to 250, and add channel field length handling code to the slack importer (#4458)
* Increase Channel Purpose length to 250.

This commit increases the maxmimum length of the channel purpose field
to 250, including the database migration necessary.

It also adds a method to the Slack importer to check the lengths of
channel properties before importing, and truncate them if necessary.

Fixes #4168

* Fix database migration.
2016-11-04 17:20:21 -04:00
Joram Wilander
00787974d0 PLT-4481 Fix member count for team user lists and channel invite list (#4422)
* Fix member count for team user lists and channel invite list

* Fix client unit test
2016-11-04 12:27:19 -04:00
Joram Wilander
6da0ccd944 Update user search to match against username, full name, nickname and email (#4421) 2016-11-03 08:24:45 -07:00
Joram Wilander
137ade29d0 PLT-4535/PLT-4503 Fix inactive users in searches and add option functionality to DB user search (#4413)
* Add options to user database search

* Fix inactive users showing up incorrectly in some user searches

* Read JSON for searchUsers API into anonymous struct

* Move anonymous struct to be a normal struct in model directory and upadte client to use it

* Added clarification comment about slightly odd query condition in search
2016-11-02 14:38:34 -04:00
Joram Wilander
4887c9228c Fix user autocomplete with special characters (#4373) 2016-10-31 09:10:20 -04:00
Joram Wilander
ef363fd88e Fix channel autocomplete and fix channel member query to ignore deleted channels (#4371) 2016-10-28 09:41:28 -07:00
Joram Wilander
35ceedf968 Fix members being loaded before channel members and DM headers (#4369) 2016-10-28 08:55:17 -04:00
Christopher Speller
55803ebcc8 Changing read replica selection method to round-robin instead of random. (#4351) 2016-10-27 13:50:24 -04:00
enahum
f82667f3b8 PLT-4430 improve slow channel switching (#4331)
* PLT-4430 improve slow channel switching

* Update client side unit tests

* Convert getChannelsUnread to getMyChannelMembers and address other feedback

* Pull channel members on websocket reconnect
2016-10-27 11:24:30 -04:00
Corey Hulen
9071553165 PLT-4359 fixing push notification for more than 1 device (#4318)
* PLT-4359 fixing push notification for more than 1 device

* Addressing feedback
2016-10-24 21:04:11 -03:00
enahum
5fdb8223fc Add database indexes to timestamp columns (#4314)
* Add database indexes to timestamp columns

* add indexes to session table
2016-10-24 16:05:27 -04:00
Joram Wilander
4834b68ad1 Filter out non-team members from invite to channel modal (#4312) 2016-10-24 09:00:42 -07:00
Corey Hulen
486d12e1c3 PLT-4165 removing team name reserved words (#4289) 2016-10-21 17:19:28 -07:00
Joram Wilander
0a75b277dc Fix the multiple column full text search index for Postgres (#4282) 2016-10-20 12:30:44 -03:00