Commit graph

1542 commits

Author SHA1 Message Date
Corey Hulen
2e0cf56e86 Fixing websocket auth then sending challenge (#5406) 2017-02-14 17:25:40 -05:00
Corey Hulen
0a21eed004 Disabling email mention test (#5381) 2017-02-13 11:36:18 -05:00
Joram Wilander
e4effd0c15 Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4

* Implement GET /channels/{channel_id}/posts endpoint for APIv4

* Implement GET /posts/{post_id} endpoint for APIv4

* Implement GET /posts/{post_id}/thread endpoint for APIv4

* Skip team get if it's a DM channel in handlePostEvents
2017-02-13 10:52:50 -05:00
Joram Wilander
ff741740ee Increase performance when receiving messages (#5375) 2017-02-13 09:27:28 -05:00
Debanshu Kundu
eab15da321 PLT-5455 Added caching for OG metadata of link preview. (#5361) 2017-02-12 11:31:49 -05:00
Corey Hulen
1359f7f391 Adding go vet from hack-a-thon (#5328)
* Adding go vet to the api package

* Adding go vet to app package

* Adding go vet to manualtesting package

* Adding go vet to the model package

* Adding go vet to the store dir

* Adding go vet to utils package

* Adding missing dirs with go files

* Fixing up makefile

* Fixing up makefile

* Removing root dir
2017-02-09 21:39:15 +00:00
Joram Wilander
487bb56a9b Add caching for file infos (#5330) 2017-02-07 12:36:37 -08:00
Joram Wilander
ba18374bd1 Implement a few team endpoints for APIv4 (#5296)
* Implement GET /teams/{team_id} endpoint for APIv4

* Implement GET /users/{user_id}/teams endpoint for APIv4

* Implement GET /teams/{team_id}/members/{user_id} endpoint for APIv4
2017-02-07 08:57:41 -08:00
Debanshu Kundu
5cc30fa061 PLT-5379 Fix the error occuring while fetching OG metadata for links which don't exist. (#5308) 2017-02-07 07:26:14 -08:00
Joram Wilander
7ff2aef7fa Implement GET /users endpoint for APIv4 (#5277) 2017-02-03 15:17:34 -05:00
Joram Wilander
ccb0343828 Implement POST /users/ids endpoint for APIv4 (#5274) 2017-02-03 09:30:57 -05:00
Christopher Speller
701d1ab638 Updating server dependancies (#5249) 2017-02-02 09:32:00 -05:00
Joram Wilander
609d4f43d9 Implement POST /channels endpoint for APIv4 (#5241) 2017-02-02 09:04:36 -05:00
Christopher Speller
6054dee806
Fixing websocket origin policy 2017-01-31 12:23:05 -05:00
Joram Wilander
7431050b42 Implement POST /teams endpoint (#5220) 2017-01-31 07:59:36 -05:00
Joram Wilander
c01d9ad6cf Implement APIv4 infrastructure (#5191)
* Implement APIv4 infrastructure

* Update parameter requirement functions per feedback
2017-01-30 08:30:02 -05:00
Harrison Healey
65b76c2712 PLT-5225 Added separate post types for certain system messages (#5193)
* Added separate post types for system_join_leave and system_add_remove posts

* Added username prop to channel deleted posts

* Changed slack import to properly generate the new join/leave messages

* Added username prop to channel update posts

* Moved Post(AddTo/RemoveFrom)ChanneMessage into app package
2017-01-27 15:58:50 -05:00
Joram Wilander
097289f8e4 Merge 3.6.2 into master (#5211)
* Add webhook cache

* Add channel by name cache

* Fxing profiles in channels cache

* Fix merge
2017-01-27 14:07:34 -05:00
Joram Wilander
504f3e1723 Fix siteURL not being set correctly (#5189) 2017-01-25 11:11:26 -05:00
Joram Wilander
d245b29f82 More app code migration (#5170)
* Migrate admin functions into app package

* More user function refactoring

* Move post functions into app package
2017-01-25 09:32:42 -05:00
Christopher Speller
27f76afb28 Closing response body when fetching link previews (#5181) 2017-01-24 20:02:41 -05:00
Joram Wilander
58b3c76c94 Fix adding user to team and add test check (#5172) 2017-01-23 13:43:07 -05:00
Joram Wilander
e9c9688b34 Move permissions code into app package (#5146)
* Move permissions code into app package

* Revert getPosts permission
2017-01-23 08:12:05 -05:00
Christopher Speller
11a688d381 Adding active users statistics to system console (#5141) 2017-01-20 17:24:53 -03:00
Debanshu Kundu
3aaf71fdea #4257 Added functionality to create previews for post links using open graph data from those links. (#4890) 2017-01-20 14:41:13 -03:00
George Goldberg
2de6c5394e Move Slack Import to App Layer. (#5135) 2017-01-20 09:47:14 -05:00
Joram Wilander
d3a285e64d Migrate functions to app package (#5106)
* Refactor and move session logic into app package

* Refactor email functions into the app package

* Refactor password update into app package

* Migrate user functions to app package

* Move team functions into app package

* Migrate channel functions into app package

* Pass SiteURL through to app functions

* Update based on feedback
2017-01-19 09:00:13 -05:00
George Goldberg
8cf4a8d2d7 PLT-4845: Slack import of channel purpose changed messages. (#5110)
Also includes channel header changed messages and channel name changed
messages.
2017-01-18 17:47:32 -03:00
Amit Yadav
99cf08ac38 Message Editing and Deleting permissions (#4692) 2017-01-18 08:08:31 -05:00
George Goldberg
0685afd1d1 PLT-2978: Add channel purpose change system message. (#5094)
Completes original patch by David Lu.
2017-01-17 15:45:18 -05:00
George Goldberg
140bdeb60f PLT-5279: Show username for slash cmd notification. (#5091) 2017-01-17 09:24:55 -05:00
Carlos Tadeu Panato Junior
dc54e640c2 Add inbucket docker image to allow local and automated testing of emails (#4901)
* add docker container for inbucket

* Add way to get the emails using inbucket and add a test for reset password

* add config setting to send emails

* update TestEmailTest

update

* add another test and fix wrong assert

* update per review

fix lint

change senders email

* Revert config.json to default values for EmailSettings section

* update test

* add setup to make the test run
2017-01-17 09:01:41 -05:00
Joram Wilander
4386432834 Fix preferences not loading correctly (#5084) 2017-01-16 18:33:25 -05:00
Joram Wilander
0e2b321e6f Refactor and migrate more functions out of api into app package (#5063) 2017-01-13 15:17:50 -05:00
Joram Wilander
97558f6a6e PLT-4938 Add app package and move logic over from api package (#4931)
* Add app package and move logic over from api package

* Change app package functions to return errors

* Move non-api tests into app package

* Fix merge
2017-01-13 13:53:37 -05:00
George Goldberg
4e160c78ab PLT-5050 (Server). API to update channel member roles. (#5043)
Implements API reference proposal mattermost-api-reference:#66.
2017-01-13 10:52:32 -03:00
George Goldberg
6c814c72ec PLT-4317: Fix Desktop App platform in sessions list. (#5048)
Incidentally fixes displaying the Linux icon next to sessions on Linux
at the same time.
2017-01-13 10:47:10 -03:00
Christopher Speller
8fb66c2b83 Merge branch 'release-3.6' 2017-01-12 19:59:37 -05:00
Joram Wilander
046d2c61a5 Fix slack link parsing for integrations without attachments (#5050) 2017-01-12 15:08:48 -05:00
Debanshu Kundu
739f32272f PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923) 2017-01-12 10:47:29 -05:00
Christopher Speller
5be99e1f85 Fixing DM channel emails (#5038) 2017-01-10 16:17:08 -05:00
Joram Wilander
4101b28de5 Use status cache for checking @here notifications (#5035) 2017-01-10 11:38:03 -05:00
Joram Wilander
78cadf7d60 Allow joining team from an invite before setting up MFA (#5022) 2017-01-09 14:22:46 -05:00
Zeger-Jan van de Weg
12662d0c87 Slack format for Slash command messages (#4999)
* Slash commands accept Slack format

Until this commit the slash commands only accepted 'text' properties.
For better styling however, Slack formatting support was added.

However, ephemeral messages are not supported, and only text will be
displayed.

* Allow emphemeral Slack messages
2017-01-09 09:25:02 -05:00
Corey Hulen
ba336dce69 PLT-5079 fixing archiving channel not being removed (#5000) 2017-01-06 15:20:02 -05:00
Carlos Tadeu Panato Junior
61771a0fc5 inital draft (#4883) 2017-01-06 12:10:00 -05:00
Corey Hulen
4fb9787fee Fixing bulk loading perf issue (#4974) 2017-01-06 10:03:31 -05:00
Joram Wilander
1ddac9ccf9 Fix SiteURL in join team email (#4979) 2017-01-06 09:10:21 -05:00
George Goldberg
bc08cc0ca5 PLT-4096 fix error/panic on replying to integrations. (#4968) 2017-01-06 09:02:37 -05:00
Christopher Speller
3d8acd4ee1 Fixing minio not closing read object (#4971) 2017-01-04 16:34:37 -05:00
Joram Wilander
461a39c497 Fix bad merge causing unread update issue (#4966) 2017-01-04 16:17:12 -05:00
Christopher Speller
635628cf30 Removing old signup team API (#4950) 2017-01-04 14:11:47 -05:00
George Goldberg
95172f1b4b PLT-5017 Fix import of Slack webhook/bot messages. (#4964) 2017-01-04 13:42:23 -05:00
Christopher Speller
a71fc7ff7f Removing old createTeamFromSignup api (#4945) 2017-01-03 17:12:55 -05:00
Corey Hulen
f48c646208 Fixing should send event removing extra go channel creation (#4942) 2017-01-03 13:45:45 -03:00
Corey Hulen
4467ce65cb Fixing TODO comment in web_hub.go (#4938) 2017-01-03 10:58:58 -05:00
Corey Hulen
d2c43a6b1c Removing un-needed go func (#4939) 2017-01-03 10:58:38 -05:00
Joram Wilander
8945bd6cd0 Fix msg command so that it doesn't try to pull all user profiles at once (#4936) 2017-01-03 10:09:19 -05:00
Christopher Speller
4bca74d5c1 Adding Etag to user profile pictures. (#4926) 2017-01-03 11:56:30 -03:00
Christopher Speller
42e04d92c4 Adding memcache to getchannel (#4928) 2017-01-03 11:53:59 -03:00
George Goldberg
547524e5ad PLT-4955 Fixes DM initiation by Slack Import users. (#4933)
Fixes #4707
2017-01-03 11:51:27 -03:00
George Goldberg
53509174b1 PLT-5018 Fix thumbnails of imported attachments. (#4934) 2017-01-03 11:50:53 -03:00
Joram Wilander
8bd50724a6 Remove TODOs that now have tickets (#4935) 2017-01-03 11:39:29 -03:00
Joram Wilander
2a91e5e031 Clean up /logout command flow and errors (#4918) 2016-12-30 13:12:43 -05:00
Carlos Tadeu Panato Junior
21af988e49 Add initial unit test for post.getPostById() (#4910)
* add itinial tests for GetPostById

update per review

fix lint

* add missing comment
2016-12-30 13:44:04 -03:00
Joram Wilander
5811acca7f Fix join message sometimes not appearing (#4909) 2016-12-28 09:25:11 -05:00
Yusuke Nemoto
2294936595 PLT-4648 break /shortcuts block (#4829) 2016-12-28 10:46:11 -03:00
Carlos Tadeu Panato Junior
5fd11bd674 Add API call to get a user by their email address (#4884)
* Add API call to get a user by their email address

* update per review
2016-12-28 10:44:32 -03:00
Joram Wilander
6f4e6386fb Don't autocomplete users by email (#4896) 2016-12-26 09:38:34 -05: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
ca61b4bed9 PLT-5080 (Server): Channel-Admin level permissions (#4874)
Adds permissions for manage/delete public/private channels at the
Channel Admin level.
2016-12-22 15:44:37 -05:00
Joram Wilander
a793eb8651 Skip intensive stat DB queries when more than a set number of users on the system (#4876) 2016-12-22 17:00:05 -03:00
Joram Wilander
15638d7405 Return 400 bad request codes for webhooks when attachment or text is too long (#4879) 2016-12-22 16:58:21 -03:00
George Goldberg
53847af2c4 API for getting channel members by IDs. (#4877) 2016-12-22 10:21:05 -08:00
Joram Wilander
52c4538817 Remove new user event handling on client (#4822) 2016-12-22 10:35:55 -05:00
Christopher Speller
c434e84114 Adding session cache directly to web-conn (#4861) 2016-12-22 07:52:02 -05:00
Joram Wilander
ba6e370ca7 PLT-5012 Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API (#4840)
* Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API

* Remove preference DB writes
2016-12-21 16:35:01 -05: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
George Goldberg
dce4205699 PLT-4990 - Server: Split out channel permissions to Create/Manage/Delete (#4864)
* Server side changes.

* Fix unit tests and default config.
2016-12-21 11:18:41 -08:00
Corey Hulen
2c09582d89 Fixing image profiles (#4863)
* Fixing image profiles

* Fixing break
2016-12-21 08:33:04 -05:00
Carlos Tadeu Panato Junior
b9092ca2f5 Fix API Get channels for a user returns users' dm channels with blank teamid (#4748)
* fix API Get channels for a user returns users' dm channels with blank team ID

add check in the context.go

add suggestion

made adjustment per review and support from @joram

* update tests

* add check if needd user or admin permissions

* update per review
2016-12-20 07:55:22 -08:00
Christopher Speller
148fd01b54 Modifying post etag cache to apply to getPostsSince (#4837) 2016-12-20 11:41:04 -03:00
Joram Wilander
2da388d297 Fixes for the /echo command (#4843) 2016-12-20 09:28:00 -05:00
Joram Wilander
1f67c91fce Prevent accidental removal of user from town square (#4842) 2016-12-20 09:27:29 -05:00
Nick Frazier
e9a1a8d3d9 GH-4685 Post a System Message when channel is renamed (#4762)
* test changes

* added system message when displayname changed

* added test

* gofmt
2016-12-20 08:56:45 -05: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
Zeger-Jan van de Weg
f4450c4bbc Fix typo (#4814) 2016-12-16 13:10:11 +00:00
Corey Hulen
2e5ae55e69 PLT-4923 Changing missing license to info msg (#4810) 2016-12-16 08:01:15 -05:00
Christopher Speller
86fb0d87a3 Adding caching layer to some posts calls (#4779) 2016-12-14 00:24:24 -03:00
Corey Hulen
2e58f7504b PLT-4983 Adding file info caching (#4781) 2016-12-14 00:23:56 -03:00
Corey Hulen
aacbe99548 PLT-4982 Adding caching to user profiles (#4782) 2016-12-14 00:23:36 -03:00
Harrison Healey
51b794501e Fixed encoding of file name when downloading attachments (#4787) 2016-12-14 00:18:54 -03:00
Corey Hulen
1b6b69fa87 Fixing etag issue with load tests (#4777) 2016-12-13 12:10:28 -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
Carlos Tadeu Panato Junior
f0d71d8789 Add API call to get a channel by its name (#4700)
* add api for getByChannelName

* add tests

* fix test

* rename and tests

* check for permissions and test
2016-12-11 21:30:37 -08:00
Yusuke Nemoto
b5fcfd608c gh-4759 add system message feedbak for expand/collapse command (#4761) 2016-12-11 21:26:53 -08:00
Yusuke Nemoto
ddacfa58ba PLT-1598 Slash command works in RHS (#4367)
* PLT-1598 Slash command works in RHS

* fix UserProfile in the reply for Slash Command

* fix some problem about the system messages in RHS
* system message in RHS isn't displayed as comment for root message

* remove status indicator for system message in RHS

* system message in RHS is colored to grey

* system messages don't count as commented post

* fix bug about cleaning draft in RHS

* remove unnecessary function

* implement new model for executing command
2016-12-09 23:35:16 -05: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
Harrison Healey
caec18a2fb Handled possible race confition in TestGetMessageForNotification (#4737) 2016-12-08 12:41:00 -03:00
Harrison Healey
ba8c98d722 Fixed sender's username not being sent with websocket posted messages (#4736) 2016-12-08 10:34:38 -05:00
Carlos Tadeu Panato Junior
d402b1d010 Add API call to get a team by its name (#4690)
* Add API call to get a team by its name

* add tests for client side and update route regex

* remove action

* add check for permissions and create tests
2016-12-08 10:21:43 -05: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
Carlos Tadeu Panato Junior
53cd544710 Push and Email Notifications should follow "Teammate Name Display" setting (#4660)
* Push Notifications and Email Notifications should follow "Teammate Name Display" setting

* get the display name notification from the receiver
2016-12-07 18:14:04 -05:00
enahum
e57cba15ea PLT-4762 Prevent turn off of (at)mentions (server) (#4714) 2016-12-06 10:57:38 -05:00
Christopher Speller
026553e4f8 Improving command line interface (#4689) 2016-12-06 10:49:34 -05:00
Corey Hulen
05783664cd Fixing crash when attempting to login (#4704) 2016-12-05 07:45:29 -05:00
Joram Wilander
06daf8b5ac Invalidate user channel members cache when creating a new channel (#4694) 2016-12-02 15:53:28 -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
George Goldberg
275188ad04 PLT-4839 Split too-long Slack messages on import. (#4679)
* PLT-4839 Split too-long Slack messages on import.

This PR also takes the opportunity to make the max values for Post
properties into constants for easier use elsewhere, as has previously
been done for Channel properties.

* Only count runes once.
2016-12-02 08:13:15 -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
Joram Wilander
f013d91b89 Count posts to DMs as mentions when from webhooks (#4676) 2016-12-01 09:22:38 -03: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
Joram Wilander
2bf0342d13 Temporarily disable websocket test causing random build failures (#4680)
* Temporarily disable websocket test causing random build failures

* Comment out imports
2016-11-30 10:25:53 -05:00
George Goldberg
e7710cf1d2 PLT-4847 Fix formatting of links imported from Slack. (#4674)
This fixes mailto: links built from email addresses posted to Slack as
described in the ticket, but also fixes any other type of URL that has
been auto-linked in the Slack messages.
2016-11-29 14:07:07 -05:00
Joram Wilander
02d581c159 PLT-4697 Update channel switcher to autocomplete all users on the system (#4624)
* Add autocomplete API for system-wide users

* Update channel switcher to autocomplete all users on the system
2016-11-29 10:12:59 -05:00
Corey Hulen
0383c58d01 PLT-4357 Adding stats to HA (#4638)
* PLT-4357 adding stats to HA

* PLT-4357 adding stats to HA

* Fixing getting stats from the current server
2016-11-28 10:40:02 -05:00
George Goldberg
be0ae36422 Fix failure to import same Slack archive to 2 teams. (#4650)
This fixes the issue where you can't import 2 Slack exports with any
users who's emails appear in both exports onto different teams of the
same server.

Fixes #4126
2016-11-28 10:39:06 -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
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
Corey Hulen
7961599b2e PLT-4357 adding performance monitoring (#4622)
* WIP

* WIP

* Adding metrics collection

* updating vendor packages

* Adding metrics to config

* Adding admin console page for perf monitoring

* Updating glide

* switching to tylerb/graceful
2016-11-22 14:05:54 -05:00
George Goldberg
e1fca412fc PLT-4442 Generate preview images sequentially in Slack importer (#4617)
* Break out image preparation to its own function.

This is preparatory work to make it easier to handle the thumbnail image
generation in a non-racy way in the Slack command line importer.

* Build preview images sequentially in Slack import.

This removes the use of goroutines from the image preview generation
code run when importing Slack attachments. This slows things down, but
it has important benefits:

1) Avoids a race condition with the goroutines and the command line
   exiting.

2) Avoids the problem of massive memory consumption when importing a
   Slack channel with a lot of large images attached in quick succession.

Fixes PLT-4442.

* Use mutliple return values instead of struct.
2016-11-22 10:14:25 -05:00
Iraquitan Cordeiro Filho
48d64f3f68 PLT-4277: Allow larger custom emojis by resizing (#4447)
Add function to resize image using resize.Thumbnail. Add function to
resize gif using previous function. Add function to convert image.Image
to image.Palleted. Add logic to identify image type and resize them if
they are larger than MaxEmojiHeight or MaxEmojiWidth. Also increase
MaxEmojiFileSize.

* fix: Add github.com/nfnt to vendor

* fix: Fix max file size and if logic in resizeEmoji

* test: Fix and add new tests for new resize feature

* fix: Fix and update translations to fit new feature

* fix: Add requested changes
2016-11-21 23:00:13 -03:00
Corey Hulen
bc0c52fb77 PLT-4598 add team id to push notification (#4623) 2016-11-21 22:55:43 -03:00
Carlos Tadeu Panato Junior
d57ab7a81e PLT-3762 - Add API call to get a user by their username (#4611)
* PLT-3762 - Add API call to get a user by their username

* fix lint

* update rote

* update per code review

* update per code review

* remove first/last name is not used in this test
2016-11-21 18:50:57 -05:00
Joram Wilander
29cfa2e64f Clear context error on post creation when create_at is set (#4615) 2016-11-21 12:19:21 -05:00
enahum
5cf0405411 Fix DM panic when user hasn't joined any team (#4604) 2016-11-21 07:18:05 -08:00
Rachel Willmer
a25afb1134 Fix SystemAdmin use of CreateAt in CreatePost API (#4349) (#4408) 2016-11-17 14:05:53 -05:00
Yusuke Nemoto
be74ec2241 plt-2610 allow slash command to override username/icon_url (#4378) 2016-11-17 09:19:11 -05:00
Carlos Tadeu Panato Junior
3d2249edfc PLT-4524 Update password reset page (#4522)
* Implement PLT-4524 Update password reset page

* fix lints

* changes based on review

* update per request/review

* update tests

* add css for alert-success

* change per request
2016-11-17 09:07:16 -05:00
Brian Olecki
6297922ab9 Add support for editing slash commands (#4335) 2016-11-15 12:43:16 -03:00
Joram Wilander
c77d3ae614 Fix websocket authentication test build gremlin (#4549) 2016-11-15 12:39:23 -03:00
Joram Wilander
9c36ca9aca Deauthenticate websockets and set status to offline when user account deactivated (#4551) 2016-11-15 12:38:58 -03:00
Raphaël Bournhonesque
526c392aad Update error message when uploading too large images (#4535) 2016-11-15 09:37:52 -05:00
Christopher Speller
e4f46124b0 Merge branch 'release-3.5' 2016-11-15 08:06:58 -05:00
Corey Hulen
e39a50e4d6 Fixing problem with email verification link (#4547) 2016-11-14 13:48:33 -05:00
Raphaël Bournhonesque
602f85d2ef Increase unit test coverage of api/user.go (#4541)
* Add test to CheckUserDomain

* Add unit test to IsUsernameTaken
2016-11-14 09:36:59 -03:00
enahum
baf1fb6fea PLT-4618 Fix email subjects (#4537) 2016-11-14 07:11:54 -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
39675afab4 Only send WS hello event once authenticated (#4509) 2016-11-10 09:20:36 -05:00
Alexander Smaga
70e0d5c298 PLT-4670 DM channel creation via webhook fails (#4523) 2016-11-10 09:20:22 -05:00
Harrison Healey
a6526aa03d Added small delay to TestUpdateChannelHeader (#4478) 2016-11-07 13:14:12 -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
enahum
205ccd1bd4 PLT-4492 Mentions with a comma after them don't trigger notification jewel (#4451)
* PLT-4492 Mentions with a comma after them don't trigger notification jewel

* Fix mentions for usernames with dots
2016-11-04 15:15:17 -04:00
Christopher Speller
ec7f3ceee8 Fixing websocket unregister so it unregisters from the correct hub. (#4452) 2016-11-04 13:43:49 -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
enahum
772b57386f PLT-4550 move webrtc to TE (#4440)
* PLT-4550 move webrtc to TE

* remove webrtc from makefile enterprise tests
2016-11-04 12:05:32 -04:00
George Goldberg
4476adf131 Channel link marker changed from ! to ~ (#4433)
Fixes PLT-4570
2016-11-03 15:26:00 -04:00
George Goldberg
7d91f17914 Import Slack bot_message type posts. (#4261)
This includes all messages from integrations, as far as I can tell.

Messages are "owned" by a special user that is deactivated once the
import completes.

Override User Names are only shown where the individual Slack posts have
a username override in them. Ones set centrally through the Slack Web
Hooks administration, or by Slack-official integrations, aren't known so
we can't set them on the imported posts. Same for icons.

The attachment "colors" aren't imported as Mattermost does not appear to
have any equivalent feature.

Fixes PLT-48
2016-11-03 15:04:01 -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
0234f793f2 EE: PLT-4512 Show secret in addition to QR code when activating MFA (#4427)
* EE: Update MFA to display secret for manual entry

* Width adjustments for secret (#4423)

* Add unit test
2016-11-03 10:41:11 -04: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
Christopher Speller
420bc367fa Fixing permissions issue when deleting slash commands (#4414) 2016-11-01 13:16:16 -07:00
Christopher Speller
b0f38f8a84 Fixing websocket and team store issues when leaving team (#4412) 2016-11-01 15:50:34 -04:00
Christopher Speller
98131a293a Fixing joining of channels via permalinks for system admins. (#4409) 2016-11-01 13:23:26 -04:00
Christopher Speller
aa6cb03b20 Prevent system_admin role mistake (#4405) 2016-11-01 09:05:48 -07:00
George Goldberg
54277eae28 Warning in log when a Slack channel import fails. (#4262)
Previously it just wrote to the summary, and as a debug level message in
the log, so if you had the log level set to warn, you might never find
out that importing a channel failed.
2016-10-31 09:02:54 -04:00
Joram Wilander
316b155a42 PLT-3562 Switch websocket over to post-connect authentication (#4327)
* Switch websocket over to post-connect authentication

* Add ability to specify token in websocket js driver, add unit tests

* Temporarily disable client websocket tests until issues are resolved

* Minor refactoring and fix status test

* Add isAuthenticated method to WebConn and minor status updates
2016-10-31 08:59:23 -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
Harshavardhana
f02620b291 Moving away from goamz to use minio-go instead. (#4193)
minio-go does fully managed way of handling S3 API requests

  - Automatic bucket location management across all s3 regions.
  - Transparently upload large files in multipart if file 64MB
    or larger.
  - Right GetObject() API provides compatibility with
    io.ReadWriteSeeker interface.
  - Various other APIs including bulk deletes, server side object
    copy, bucket policies and bucket notifications.

Fixes #4182
2016-10-26 08:21:07 -04:00
Corey Hulen
3e1fc76bf9 Fixing clustering problem (#4320) 2016-10-25 08:56:06 -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
Corey Hulen
486d12e1c3 PLT-4165 removing team name reserved words (#4289) 2016-10-21 17:19:28 -07:00
Joram Wilander
3885532750 Fix notifications for public/private channels and add basic unit test (#4295) 2016-10-21 16:23:59 -04:00
S4KH
234958e007 HW 4139: Make channel limits configurable in the System Console (#4154)
* Auto Changes

* 4139 Made channel limits configurable in the System Console as described in the issue

* Removed error message entries from other locales, made maxChannelsPerteam type to pointer

* Added * symbol to maxChannelsPerTeam inside isValid function

* Update team_test.go

* Restored to old test

* Checked maximum number channels per team when creating channel

* Fixed code to pass api/channel_test.go

* Reverted changes on config except MaxChannelsPerTeam

* Update channel.go

* Ran gofmt -w .

* Reverted vendor directoy
2016-10-21 08:36:13 -04:00
Harrison Healey
4688d4981a Explicitly set Content-Type field when getting file attachments (#4280) 2016-10-20 12:31:15 -03:00
Joram Wilander
2e34d8843e PLT-4138 Fix /join command for non-admin accounts (#4265)
* Fix /join command for non-admin accounts

* Implement found check in join command unit test properly
2016-10-20 10:27:18 -04:00
Harrison Healey
6517b0f9e1 Fixed handleImages to properly capture loop variables (#4275) 2016-10-20 09:13:33 -04:00
Joram Wilander
365b8b465e Merging performance branch into master (#4268)
* improve performance on sendNotifications

* Fix SQL queries

* Remove get direct profiles, not needed anymore

* Add raw data to error details if AppError fails to decode

* men

* Fix decode (#4052)

* Fixing json decode

* Adding unit test

* Initial work for client scaling (#4051)

* Begin adding paging to profiles API

* Added more paging functionality

* Finish hooking up admin console user lists

* Add API for searching users and add searching to all user lists

* Add lazy loading of profiles

* Revert config.json

* Fix unit tests and some style issues

* Add GetProfilesFromList to Go driver and fix web unit test

* Update etag for GetProfiles

* Updating ui for filters and pagination (#4044)

* Updating UI for pagination

* Adjusting margins for filter row

* Adjusting margin for specific modals

* Adding relative padding to system console

* Adjusting responsive view

* Update client user tests

* Minor fixes for direct messages modal (#4056)

* Remove some unneeded initial load calls (#4057)

* UX updates to user lists, added smart counts and bug fixes (#4059)

* Improved getExplicitMentions and unit tests (#4064)

* Refactor getting posts to lazy load profiles correctly (#4062)

* Comment out SetActiveChannel test (#4066)

* Profiler cpu, block, and memory profiler. (#4081)

* Fix TestSetActiveChannel unit test (#4071)

* Fixing build failure caused by dependancies updating (#4076)

* Adding profiler

* Fix admin_team_member_dropdown eslint errors

* Bumping session cache size (#4077)

* Bumping session cache size

* Bumping status cache

* Refactor how the client handles channel members to be large team friendly (#4106)

* Refactor how the client handles channel members to be large team friendly

* Change Id to ChannelId in ChannelStats model

* Updated getChannelMember and getProfilesByIds routes to match proposal

* Performance improvements (#4100)

* Performance improvements

* Fixing re-connect issue

* Fixing error message

* Some other minor perf tweaks

* Some other minor perf tweaks

* Fixing config file

* Fixing buffer size

* Fixing web socket send message

* adding some error logging

* fix getMe to be user required

* Fix websocket event for new user

* Fixing shutting down

* Reverting web socket changes

* Fixing logging lvl

* Adding caching to GetMember

* Adding some logging

* Fixing caching

* Fixing caching invalidate

* Fixing direct message caching

* Fixing caching

* Fixing caching

* Remove GetDirectProfiles from initial load

* Adding logging and fixing websocket client

* Adding back caching from bad merge.

* Explicitly close go driver requests (#4162)

* Refactored how the client handles team members to be more large team friendly (#4159)

* Refactor getProfilesForDirectMessageList API into getAllProfiles API

* Refactored how the client handles team members to be more large team friendly

* Fix js error when receiving a notification

* Fix JS error caused by current user being overwritten with sanitized version (#4165)

* Adding error message to status failure (#4167)

* Fix a few bugs caused by client scaling refactoring (#4170)

* When there is no read replica, don't open a second set of connections to the master database (#4173)

* Adding connection tacking to stats (#4174)

* Reduce DB writes for statuses and other status related changes (#4175)

* Fix bug preventing opening of DM channels from more modal (#4181)

* 	Fixing socket timing error (#4183)

* Fixing ping/pong handler

* Fixing socket timing error

* Commenting out status broadcasting

* Removing user status changes

* Removing user status changes

* Removing user status changes

* Removing user status changes

* Adding DoPreComputeJson()

* Performance improvements (#4194)

* * Fix System Console Analytics queries
* Add db.SetConnMaxLifetime to 15 minutes
* Add "net/http/pprof" for profiling
* Add FreeOSMemory() to manually release memory on reload config

* Add flag to enable http profiler

* Fix memory leak (#4197)

* Fix memory leak

* removed unneeded nil assignment

* Fixing go routine leak (#4208)

* Merge fixes

* Merge fix

* Refactored statuses to be queried by the client rather than broadcast by the server (#4212)

* Refactored server code to reduce status broadcasts and to allow getting statuses by IDs

* Refactor client code to periodically fetch statuses

* Add store unit test for getting statuses by ids

* Fix status unit test

* Add getStatusesByIds REST API and move the client over to use that instead of the WebSocket

* Adding multiple threads to websocket hub (#4230)

* Adding multiple threads to websocket hub

* Fixing unit tests

* Fixing so websocket connections from the same user end up in the same… (#4240)

* Fixing so websocket connections from the same user end up in the same list

* Removing old comment

* Refactor user autocomplete to query the server (#4239)

* Add API for autocompleting users

* Converted at mention autocomplete to query server

* Converted user search autocomplete to query server

* Switch autocomplete API naming to use term instead of username

* Split autocomplete API into two, one for channels and for teams

* Fix copy/paste error

* Some final client scaling fixes (#4246)

* Add lazy loading of profiles to integration pages

* Add lazy loading of profiles to emoji page

* Fix JS error when receiving post in select team menu and also clean up channel store
2016-10-19 14:49:25 -04:00
enahum
38568c2769 PLT-3968 Require user for getMe API (#4225) 2016-10-17 10:43:28 -04:00
Alexander Smaga
e7b25f4cd8 GH-4187 Create direct channel during incoming webhook if not exists (#4206) 2016-10-17 08:12:56 -04:00
enahum
f555f104c1 Make tests pass without internet connection (#4211) 2016-10-13 14:04:46 -04:00
Alexander Smaga
69e90255aa GH-4087 added extra fields to Props in header update system message (#4209) 2016-10-13 11:13:12 -04:00
George Goldberg
8c8bc7111c Slack import unit tests (#4201)
* Slack Import unit tests (for some functions).

Covers the completely self contained functions in the Slack Importer
that are straightforward to unit test.

JSON processing functions are not yet unit tested.

* Unit tests for Slack Import JSON parsing.

This tests the 3 functions for parsing JSON, using a sample set of
Slack data for posts, channels, and users.
2016-10-12 10:03:30 -04:00
Stan Hu
d4268cf0d8 Trim trailing slashes to prevent OAuth2 URI mismatch errors (#4204)
Closes https://gitlab.com/gitlab-org/gitlab-mattermost/issues/84
2016-10-12 09:51:57 -04:00
George Goldberg
552508706d Import /me messages from Slack. (#4164)
Use message formatting consistent with how Mattermost does for the /me
command for new messages.
2016-10-12 09:33:58 -04:00
George Goldberg
5ca05124cf Import Slack uploads if present in zip archive. (#4088)
* Import Slack uploads if present in zip archive.

This is part 3 of PLT-4280, to support importing file uploads when
importing from Slack. It is assumed the uploads in the zip archive will
be present as per the output of slack-advanced-exporter:

https://github.com/grundleborg/slack-advanced-exporter

If the uploads are not present (ie. this is a vanilla Slack export
archive) uploads are treated in the same way as before this patch,
providing only a link to the upload on Slack's servers.

* Update to new Files API.
2016-10-12 09:31:05 -04:00
Harrison Healey
7fb818d4ce PLT-3105 Fixed bugs with FileInfos migration, including duplicate FileInfos being saved (#4134)
* Added a limit to GetByPath for the rare cases when two old files had the same path

* Fixed files still being displayed for deleted posts

* Added a lock to prevent migrateFilenamesToFileInfos from migrating multiple posts at once
2016-10-06 17:44:41 -03:00
George Goldberg
cd5bf7cb5a Correctly import Slack topic and purpose. (#4152)
In order to maintain consistency with how topic and purpose are used in
Slack, the mapping is as follows:

Slack   -> Mattermost
=====      ==========
Purpose -> Purpose
Topic   -> Header
2016-10-05 08:14:36 -04:00
George Goldberg
1a5a624470 Fix import of Slack file_comment messages. (#4132)
At the moment, the importer fails to parse the JSON of these types of
message, and so ignores them.

This fix means they are now parsed and imported just as if they were
standalone messages (not file comments), which is better, and what the
existing code clearly intended to happen.

For the future, they should probably be changed to be imported as
replies to the message with the file attached that they are commenting
on.

Fixes #4131.
2016-10-04 08:51:38 -04:00
Christopher Speller
8f91c77755 Adding ability to serve TLS directly from Mattermost server (#4119) 2016-10-03 16:03:15 -04:00
Harrison Healey
8a0e649f98 PLT-3105 Files table migration (#4068)
* Implemented initial changes for files table

* Removed *_benchmark_test.go files

* Re-implemented GetPublicFile and added support for old path

* Localization for files table

* Moved file system code into utils package

* Finished server-side changes and added initial upgrade script

* Added getPostFiles api

* Re-add Extension and HasPreviewImage fields to FileInfo

* Removed unused translation

* Fixed merge conflicts left over after permissions changes

* Forced FileInfo.extension to be lower case

* Changed FileUploadResponse to contain the FileInfos instead of FileIds

* Fixed permissions on getFile* calls

* Fixed notifications for file uploads

* Added initial version of client code for files changes

* Permanently added FileIds field to Post object and removed Post.HasFiles

* Updated PostStore.Update to be usable in more circumstances

* Re-added Filenames field and switched file migration to be entirely lazy-loaded

* Increased max listener count for FileStore

* Removed unused fileInfoCache

* Moved file system code back into api

* Removed duplicate test case

* Fixed unit test running on ports other than 8065

* Renamed HasPermissionToPostContext to HasPermissionToChannelByPostContext

* Refactored handleImages to make it more easily understandable

* Renamed getPostFiles to getFileInfosForPost

* Re-added pre-FileIds posts to analytics

* Changed files to be saved as their ids as opposed to id/filename.ext

* Renamed FileInfo.UserId to FileInfo.CreatorId

* Fixed detection of language in CodePreview

* Fixed switching between threads in the RHS not loading new files

* Add serverside protection against a rare bug where the client sends the same file twice for a single post

* Refactored the important parts of uploadFile api call into a function that can be called without a web context
2016-09-30 11:06:30 -04:00
Harrison Healey
fc54aececc Added a short wait to TestSetActiveChannel to stop randomly failing tests (#4115)
* Added a short wait to TestSetActiveChannel to stop randomly failing tests

* Increased the timeout in TestWebSocketEvent
2016-09-29 12:57:37 -04:00
enahum
caeadde2f2 PLT-4155 Show correct login method in system console (#4102)
* PLT-4155 Show correct login method in system console

* Remove checking for system admin privileges in getProfiles
2016-09-28 08:49:54 -04:00
enahum
60347559c7 PLT-3734 Cleaning up shouldSendEvent function (#4024)
* PLT-3734 Cleaning up shouldSendEvent function

* Fix LHS unread highlight and jewel mentions
2016-09-27 10:19:50 -04:00
Corey Hulen
bfca752940 Fixing the console level debug statements (#4092) 2016-09-27 11:07:32 -03:00
Christopher Speller
667db6e10c Cleaning up some old code from the permissions system change (#4090) 2016-09-26 13:41:50 -04:00
Christopher Speller
7fcc004beb Modifications to rate limiting settings. (#4091) 2016-09-26 09:56:12 -07:00
Ryan Wang
1479c4a2ca Message is displayed when user joins Off_Topic (#4067) 2016-09-26 07:47:17 -04:00
Christopher Speller
2ca0e8f9a0 Updating golang dependancies (#4075) 2016-09-23 10:17:51 -04:00
Joram Wilander
353761b917 Fix TestSetActiveChannel unit test (#4071) 2016-09-22 16:59:33 -04:00
Christopher Speller
efdb0dfa0b Fixing update roles API (#4060) 2016-09-22 08:31:38 -04:00
George Goldberg
de79343b9a Fix !channel linking in Slack import. (#4065)
Original version of the patch didn't take into account that, like with
@mentions, there's an "old" and a "new" format in the Slack export files
for channel mentions. This version imports both correctly.
2016-09-21 15:17:48 -03:00
Corey Hulen
185387e277 Fixing build break (#4063) 2016-09-21 10:36:38 -07:00
Corey Hulen
fc5df5c435 Fix issue when saving session has an error (#4053)
* Fix issue is saving session has an error

* Fixing break break
2016-09-21 07:17:58 -04:00
enahum
33e20b874e PLT-4202 fix javascript error manage OAuth2 apps (#4039)
* PLT-4202 fix javascript error manage OAuth2 apps

* Fix unit tests
2016-09-20 12:02:08 -04:00
enahum
4e3d465210 PLT-4179 send push notifications with override_username (#4040) 2016-09-20 12:01:12 -04:00
George Goldberg
33eda94db3 PLT-1764 #channels => !channels on Slack import. (#4028) 2016-09-19 08:22:08 -04:00
enahum
9d40538106 PLT-4157 CLI to make a user active or inactive (#4025) 2016-09-15 11:33:16 -04:00
enahum
b180bb46e3 PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side

* WebRTC System Console

* Consistency on variable names

* Add turn and stun uri validation
2016-09-15 08:35:44 -04:00
Joram Wilander
837808eba3 Update getUser API and add it to the JS driver (#4020) 2016-09-14 09:57:33 -03:00
Christopher Speller
1e7985a87a Modifying permissions system. (#3897) 2016-09-13 12:42:48 -04:00
Joram Wilander
132be6a02b Accept nil values for incoming webhook attachments (#4011) 2016-09-13 11:56:03 -04:00
Pierre Rudloff
987cb10e71 Unescape HTML entities in e-mail titles (fixes #3906) (#3969) 2016-09-12 16:20:41 -04:00
Christopher Speller
adfcda4802 Some improvments to slack import (#4010) 2016-09-12 11:57:36 -04:00
Jason Blais
b6ed10a31e PLT-3766 Change remaining LDAP references to AD/LDAP (#3985)
* Update user.go

* Update en.json

* Update ldap_test_button.jsx

* Update en.json
2016-09-08 09:48:12 -03:00
Joram Wilander
ba2e131804 Include build number in server version given to the client (#3984) 2016-09-08 09:48:02 -03:00
Harrison Healey
73692f010e PLT-3775/PLT-4067 Fixes for email notifications for 3.4 2016-09-06 18:51:42 -03:00
Jason Blais
449b066598 PLT-3766 Change LDAP references to AD/LDAP in the UI (#3925) 2016-09-06 16:27:32 -03:00
enahum
35b816b922 PLT-3921 Fix System Console Recent Active Users (#3856)
* PLT-3921 System Console Recent Active Users
2016-09-06 15:48:43 -03:00
George Goldberg
af0df81a97 Fix @channel, @here and @everyone Slack import. (#3946)
Does this by adding special case regexes to the @mention importing code
in the Slack importer for these three special mention types.

Fixes PLT-4053
2016-09-06 12:56:29 -04:00
Joram Wilander
dda0ea3552 PLT-3875 Update error page to use Markdown and add error for missing OAuth code (#3934)
* Update error page to use Markdown and add error for missing OAuth code

* Add line breaks to error messages 

This is to make the error message easier to read.

* Update en.json
2016-09-06 08:29:14 -04:00
Joram Wilander
9d11dd437f Send hello event containing server version on WebSocket connect (#3936) 2016-09-04 20:45:34 -03:00
Joram Wilander
f32eb525f3 Do not send push notifications for channels being actively viewed (#3931) 2016-09-02 12:50:15 -04:00
Christopher Speller
eb0111f6bb Fixing SanitizeProfile (#3930) 2016-09-02 08:24:20 -08:00
enahum
ae46819b8e Update LastViewAt in create post API if not from a webhook (#3913) 2016-09-02 11:19:42 -04:00
Christopher Speller
5d7f239962 Adding LDAP test connection button. Reordering LDAP settings. (#3912) 2016-09-01 17:05:20 -04:00
Joram Wilander
26f96b240d PLT-3462 Add the ability to clear push notifications after channel is viewed (#3834)
* Add the ability to clear push notifications after channel is viewed

* Fix race condition between updating the mention count and reading it when sending push notifications
2016-08-31 12:52:14 -04:00
Joram Wilander
b0b39ce71c Add debug logging when receiving an oauth redirect (#3916) 2016-08-31 10:56:31 -03:00
Dmitri Aizenberg
dc09b7781a PLT-1527 Add a slash command to set yourself away (#3752)
* added handlers for slash commands

* added manual status persistance

* added tests

* removed extra debug output and comments

* rebase - fixing the PR

* making echo messages after slash commands ephemeral
2016-08-31 09:24:14 -04:00
enahum
1326ab66a1 PLT-3984 Add the ability to regenerate OAuth Client Secret (#3899) 2016-08-30 21:15:40 -03:00
enahum
18808faead PLT-3994 Fix OAuth2: Properly handle allowing an app fails (#3888)
* PLT-3994 Fix OAuth2: Properly handle allowing an app fails

* Remove Content-Type from allowOAuth
2016-08-30 13:40:30 -04:00
enahum
6c8746dbdc PLT-4026 Use client dir constant for OAuth Authorization page (#3895) 2016-08-30 09:00:50 -08:00
David Lu
d252e61c66 Revert/Fix PLT-2805 (#3873) 2016-08-29 09:51:29 -04:00
George Goldberg
55342e8fe1 Convert @mentions on Slack import. (#3837)
Converts @mentions in Slack imports for regular messages, comments and
Slack upload messages.

Updates the description on the Team Settings Import tab to remove
mention of @mentions not importing.
2016-08-29 09:45:27 -04:00
Corey Hulen
11270262a4 Moving CheckBrowserCompatability to debug (#3889) 2016-08-26 18:24:56 -03:00
Corey Hulen
839f1ad444 Fixing license (#3878)
* Fixing sanitize license

* Fixing license

* Fixing unit tests
2016-08-25 08:32:44 -04:00
enahum
e6d15f77e8 PLT-3942 Add real-time updates for center channel profile picture popover (#3871)
* PLT-3942 Add real-time updates for center channel profile picture pop-over

* Send user data with the websocket event to prevent further requests

* Add helper for profile sanitation
2016-08-24 18:10:49 -03:00
Sang Jun Lee
deb1361a0d Add channel name on email notification. (#3824) 2016-08-24 08:54:58 -08:00
Joram Wilander
03fd4bc4e6 Temporarily add response body logging for access token request to help debugging (#3872) 2016-08-24 10:16:57 -04:00
enahum
9ab5a79962 PLT-3745 - Deauthorize OAuth Apps (#3852)
* Deauthorize OAuth APIs

* Deautorize OAuth Apps Account Settings

* Fix typo in client method

* Fix issues found by PM

* Show help text only when there is at least one authorized app
2016-08-23 18:06:17 -04:00
Joram Wilander
065d01c121 Add notification settings to control what statuses allow push notifications (#3829) 2016-08-23 08:47:25 -04:00
Joram Wilander
80d83ae77c Prevent flagging of deleted posts and don't show deleted posts in flagged post list (#3846) 2016-08-22 16:36:01 -08:00
Harrison Healey
f0c672e3ad Changed /teams/all api to only return teams the current user is a member of if they're not an admin (#3853) 2016-08-22 21:08:09 -03:00
Joram Wilander
391d685aa4 Reset context error for incoming webhooks after checking permission (#3847) 2016-08-22 15:19:39 -04:00
David Lu
ecb6fd8769 Split /shortcuts programmatically (#3850) 2016-08-22 15:19:29 -04:00
Corey Hulen
c7150c4c80 Fixing 404 errors (#3838) 2016-08-22 10:06:35 -04:00
David Lu
8c2ea22892 Refactored CreatePost to not use context (#3813) 2016-08-19 08:08:31 -04:00
enahum
ed6b69aab3 PLT-3754 EE: Add a Display Option to disable Join/Leave messages (#3808)
* PLT-3754 EE: Add a Display Option to disable Join/Leave messages

* Differentiate between join/leave add/remove messages

* Update user removed from channel text message
2016-08-18 14:37:55 -08:00
Harrison Healey
2b277729fd PLT-3955/PLT-3956 Fixing issues with mentions (#3820)
* PLT-3955 Fixed @here sending push notifications to people not in the channel

* PLT-3956 Fixed mention numbers not being incremented
2016-08-18 08:41:31 -05:00
Corey Hulen
fdda090ca2 PLT-3822 after admin leaves team he cannot get admin access anymore (#3814) 2016-08-17 11:18:11 -04:00
Corey Hulen
eafc802831 PLT-3881 Fix websocket errors after leaving the team (#3815) 2016-08-17 11:17:44 -04:00
Harrison Healey
8203fd16ce PLT-3647 Email Batching (#3718)
* PLT-3647 Added config settings for email batching

* PLT-3647 Refactored generation of email notification

* PLT-3647 Added serverside code for email batching

* PLT-3647 Updated settings UI to enable email batching

* PLT-3647 Removed debug code

* PLT-3647 Fixed 0-padding of minutes in batched notification

* PLT-3647 Updated clientside UI for when email batching is disabled

* Go fmt

* PLT-3647 Changed email batching to be disabled by default

* Updated batched email message

* Added email batching toggle to system console

* Changed Email Notifications > Immediate setting to a 30 second batch interval

* Go fmt

* Fixed link to Mattermost icon in batched email notification

* Updated users to use 30 second email batching by default

* Fully disabled email batching when clustering is enabled

* Fixed email batching setting in the system console

* Fixed casing of 'Send Email notifications' -> 'Send email notifications'

* Updating UI Improvements for email batching (#3736)

* Updated text for notification settings and SiteURL.

* Prevented enabling email batching when SiteURL isn't set in the system console

* Re-added a couple debug messages

* Added warning text when clustering is enabled
2016-08-16 14:41:47 -04:00
Harrison Healey
dde158c57f Refactored mention parsing and added unit tests (#3806) 2016-08-16 11:36:46 -05:00
Harrison Healey
c5fc504cb2 PLT-3617 Switched public file links to use a sha256 hash (#3792)
* Changed FileSettings.PublicLinkSalt to be a pointer

* Switched public file links to use a sha256 hash
2016-08-15 16:38:55 -05:00
Joram Wilander
7da58ceb9b Send verification email if user has never logged in, send email changed email otherwise (#3759) 2016-08-12 07:50:35 -04:00
enahum
53c068952c EE: PLT-3747 Add create_channel to command line (#3760)
* PLT-3747 Add create_channel command line

* Added tests

* Set as EE feature
2016-08-12 07:50:11 -04:00
enahum
4dcbe4bf09 fix OAuth provider when running test multiple times (#3782) 2016-08-11 08:47:12 -08:00
enahum
b523f98675 PLT-3879 Fix OAuth provider routes (#3780) 2016-08-10 14:20:31 -05:00
enahum
6b0e3d62fb PLT-3865 Fix OAuth provider routes (#3768) 2016-08-09 10:43:54 -05:00
Harrison Healey
0afa28de09 Changed autodetection of SiteURL (#3764)
* Changed autoconfiguration of SiteURL to be done on every request

* Added SiteURL to system console
2016-08-09 08:53:22 -05:00
MARUYAMA Takayuki
953b14ab22 Fix garbled mail subject (#3694)
* Fix garbled mail subject

* Notification email subject including full month
2016-08-04 13:27:15 -04:00
Corey Hulen
59d971dc75 PLT-2899 adding clustering of app servers (#3682)
* PLT-2899 adding clustering of app servers

* PLT-2899 base framework

* PLT-2899 HA backend

* PLT-2899 Fixing config file

* PLT-2899 adding config syncing

* PLT-2899 set System console to readonly when clustering enabled.

* PLT-2899 Fixing publish API

* PLT-2899 fixing strings
2016-08-04 13:25:37 -04:00
Joram Wilander
0184d6059b PLT-3506 Added flagged posts functionality (#3679)
* Added flagged posts functionality

* UI Improvements to flags (#3697)

* Added flag functionality for mobile

* Updating flagged text (#3699)

* Add back button to RHS thread when coming from flagged posts

* Updating position of flags (#3708)

* Plt 3506 - Reverting flag position (#3724)

* Revert "Updating position of flags (#3708)"

This reverts commit aaa05632c5.

* Fixing the icon in search

* Help text and white space improvements (#3730)

* Updatng help text and some white spacing.

* Updating help text
2016-08-04 10:38:09 -05:00
enahum
5bc3cea6fe PLT-3484 OAuth2 Service Provider (#3632)
* PLT-3484 OAuth2 Service Provider

* PM text review for OAuth 2.0 Service Provider

* PLT-3484 OAuth2 Service Provider UI tweaks (#3668)

* Tweaks to help text

* Pushing OAuth improvements (#3680)

* Re-arrange System Console for OAuth 2.0 Provider
2016-08-03 13:19:27 -04:00
Harrison Healey
790dd91e7d PLT-3702 Fixed outgoing webhook creation API to properly clear error flags for public channels (#3719) 2016-08-02 17:47:16 -04:00
Harrison Healey
c4a3118e9f PLT-3408 Add SiteURL to config.json (#3692)
* PLT-3408 Changed serverside code to get the service's URL from config.json

* PLT-3408 Changed most clientside code to use the SiteURL config setting instead of window.location

* PLT-3408 Changed default SiteURL to be autodetected
2016-08-02 16:37:09 -04:00
Joram Wilander
3f8dda6f5a PLT-3633 EE: Add Google and Office365 SSO through OAuth2 (#3660)
* EE: Add Google and Office365 SSO through OAuth2

* Add localization strings

* Text tweaks for PLT-3633

* Added sign-up button for Office 365

* Updated some error messages and a bit of licensing

* Updated sign-in method section in user settings to include Google and Office365

* Added more localization strings
2016-07-29 14:58:37 -04:00
Harrison Healey
56fd348123 PLT-3752 Changed email connection test to use the existing password if unchanged by client (#3685) 2016-07-29 10:09:22 -04:00
Christopher Speller
f5375254f9 Adding migration support to LDAP from other account types (#3655) 2016-07-26 17:39:51 -04:00
Christopher Speller
528890dba0 Changing LDAP behavour so users disabled in LDAP server are disabled in Mattermost. (#3669) 2016-07-26 12:39:35 -04:00
Pierre Rudloff
564dffec35 Add option to trigger outgoing webhook if first word starts with trigger word (#3611) 2016-07-26 08:04:28 -04:00
Harrison Healey
9c2c941449 PLT-1866/PLT-3509 Added links to download the native apps (#3651)
* PLT-1866 Added configurable links for native app downloads

* PLT-1866 Added native app download link to main menu

* PLT-3509 Added native app link to tutorial

* PLT-3509 Added native app link to welcome email

* PLT-3509 Made link to apps in welcome email conditional on being set
2016-07-22 10:53:57 -04:00
Corey Hulen
946302d9a2 PLT-3691 Fixing mobile session (#3652)
* PLT-3691 Fixing mobile session

* Fixing unit tests
2016-07-21 12:36:11 -04:00
Joram Wilander
bfa04c0ab0 PLT-2408 Adds here mention for online users (#3619)
* Added @here mention that notifies online users

* Fixed existing race condition that would sometime cause clients to miss mention count changes

* Added missing localization strings

* Prevent @here from mentioning the user who posted it
2016-07-21 10:00:09 -04:00
David Lu
f0e9ec2dd1 Fixed /join (#3647) 2016-07-21 09:16:20 -04:00
enahum
86d496c9b7 PLT-3629 fix uploading certificates if the files in the config do not exists (#3634) 2016-07-20 13:01:10 -08:00
Christopher Speller
24bef929dc Restricting visibility of detailed_error message (#3629) 2016-07-19 08:40:13 -08:00
samogot
f31e8e09f5 PLT-914 Add mention notifications for replies on a comment thread (#3130)
* PLT-914 Add mention notifications for replies on a comment thread

* remove useless store method
fix highlighting comments posted before th user write something to thread

* refactor out isCommentMention function after rebase

* change comment bar highlighting to replay icon mention highlighting

* settings and always visible highlight

* fix unit tests for new settings

* change highlight behaviour
- if any message in comment thread generates mention - all thread is highlighted
- remove always visible highlightion

* fix bug about the textarea in the center channel not clearing

* fix default settings value notify_props.comments

* do not highlight own comments if there is no other user's messages in thread

* refactor out ReactDOM.findDOMNode

* refactor out using of UserStore from component
2016-07-19 08:27:23 -04:00
Joram Wilander
4d3b831fd4 Fix possible race condition in TestUserTyping test case (#3612) 2016-07-18 11:20:32 -04:00
Joram Wilander
c0ab2636d6 PLT-2241 Refactored statuses into a more real-time system (#3573)
* Refactored statuses into a more real-time system

* Updated package.json with correct commit and fixed minor bug

* Minor updates to statuses based on feedback

* When setting status online, update only LastActivityAt if status already exists
2016-07-18 11:10:03 -04:00
Harrison Healey
f7b3731b2b Merge branch 'release-3.2' into 'master' 2016-07-15 12:26:32 -04:00
Christopher Speller
942ae4c527 Cleaning up old export code (#3601) 2016-07-15 11:20:39 -04:00
David Lu
34077a407b made /shortcuts separate for mac (#3571) 2016-07-14 11:57:06 -08:00
Joram Wilander
c67729d7b6 Increased wait time for TestUserTyping event test case (#3587) 2016-07-14 09:06:15 -08:00
Harrison Healey
caabfbcdd5 PLT-2992 Added the ability to use different themes for each team (#3411)
* Cleaned up user_settings_theme.jsx and import_theme_modal.jsx

* Made ImportThemeModal use a callback to return the theme to the user settings modal instead of saving it directly

* Moved user theme from model to preferences

* Added serverside API to delete preferences TODO update package with client stuff

* Changed constants.jsx so that Preferences and ActionTypes can be imported on their own

* Updated ThemeProps migration code to properly rename solarized code themes

* Fixed warnings thrown by AppDispatcher

* Added clientside UI to support team-specific themes

* Removed debugging code from test

* Fixed setting a user's theme when they haven't set their theme before
2016-07-14 10:08:36 -04:00
David Lu
8e810bc2eb PLT-3153 Converted slash command triggers to lowercase on save (#3577)
* Converted slash command triggers to lowercase on save

* Made slash commands case insensitive
2016-07-14 10:05:25 -04:00
samogot
9b9facd3d2 PLT-3366 Holding down the ALT key and clicking on a message adds a new messages indicator (squashed) (#3374) 2016-07-14 08:19:27 -04:00
David Lu
2e7e0d09b8 Removed system message on /msg success (#3579) 2016-07-14 08:17:24 -04:00
enahum
8346bfec37 PLT-3584 Fix no team found when creating account (#3552) 2016-07-13 09:13:13 -08:00
enahum
0a6bdceccb PLT-3384 Improve the "Verify Email" email (#3564) 2016-07-13 09:03:46 -08:00
David Lu
1df0488932 Fixed invalid password error when admin resets password (#3578) 2016-07-13 12:44:26 -04:00
Christopher Speller
4775631ed4 Revert "Login error messages fix (#3525)"
This reverts commit 2e513c8fd4.
2016-07-12 15:18:25 -04:00
Christopher Speller
7c8654171e Revert "Letting email not validated error message through login. Changing invalid credentials error. (#3546)"
This reverts commit 128e4f984a.
2016-07-12 15:17:46 -04:00
Harrison Healey
954e251188 Merged release-3.2 into master 2016-07-12 10:52:43 -04:00
Christopher Speller
c976c2881c Some improvments to password handling (#3549) 2016-07-12 10:09:04 -04:00
Christopher Speller
128e4f984a Letting email not validated error message through login. Changing invalid credentials error. (#3546) 2016-07-12 10:08:54 -04:00
Joram Wilander
ad343a0f4a Added infrastructure for basic WebSocket API (#3432) 2016-07-12 09:36:27 -04:00
Harrison Healey
9481a4f0ef Merge release 3.2 into master (#3548)
* Bumping version to: 3.2.0-rc1

* PLT-2863 fixing bad merge that broke this PR (#3523)

* PLT-2863 adding remove user from team

* PLT-2863 adding the client side UI

* Fixing trailing space

* Fixing reported issues

* Adding documentatino

* Switching to final javascript driver

* Fixing bad merge

* Fixing bad merge

* PLT-3538 Fix Login page doesn't show SAML option if gitlab is enabled (#3524)

* Login error messages fix (#3525)

* daily translations 20160708 (#3533)

* Fixed permissions when getting a file attachment to use the correct user id (#3535)

* PLT-3575 Fix Cannot upload certificates with .cer file extension on SAML (#3534)

* PLT-3560 blocking adding to channel once user is removed (#3537)

* Always allow system admins to see the Integrations sidebar (#3536)

* Plt 3475 - Post control improvements (#3538)

* Adding class to post when dropdown is active.

* plt-3475 - Post controls improvements

* daily translations 20160711 (#3544)
2016-07-11 14:21:51 -04:00
Corey Hulen
dd99252278 PLT-3560 blocking adding to channel once user is removed (#3537) 2016-07-11 08:37:20 -04:00
Harrison Healey
2d1c0924ee Fixed permissions when getting a file attachment to use the correct user id (#3535) 2016-07-08 17:03:28 -04:00
Christopher Speller
2e513c8fd4 Login error messages fix (#3525) 2016-07-08 09:17:14 -04:00
David Lu
683f713319 PLT-1465 Added password requirements (#3489)
* Added password requirements

* added tweaks

* fixed error code

* removed http.StatusNotAcceptable
2016-07-06 14:54:54 -08:00
Corey Hulen
d5f243dad6 PLT-2863 adding remove user from team (#3429)
* PLT-2863 adding remove user from team

* PLT-2863 adding the client side UI

* Fixing trailing space

* Fixing reported issues

* Adding documentatino

* Switching to final javascript driver
2016-07-06 13:40:59 -08:00
Corey Hulen
b1520d0b94 PLT-3512 adding join/leave channel to the CLI (#3498)
* PLT-3512 adding join/leave channel to the CLI

* PLT-3512 adding list channels to the CLI

* PLT-3512 adding restore channel

* Adding make run-cli command

* Updating txt

* Fixing txt purposed by PMs
2016-07-06 14:11:21 -04:00
enahum
9d0f9169df PLT-3502 Fix Team admins can't give "team admin" privilege to members (#3499) 2016-07-06 13:57:32 -04:00
Joram Wilander
5f7cb8cfbf PLT-3346/PLT-3342/PLT-3360 EE: Add the ability to restrict channel management permissions (#3453)
* EE: Add the ability to restrict channel management permissions

* Always allow last user in a channel to delete that channel
2016-07-06 08:23:24 -04:00
Joram Wilander
19d452c74e Fix connection leaks in push notifications, diagnostics and oauth (#3469) 2016-07-06 08:23:06 -04:00
enahum
5f04dc4f45 SAML support (#3494)
* PLT-3073: Implement SAML/Okta Server side (EE) (#3422)

* PLT-3137 Support for SAML configuration

* PLT-3410 SAML Database Store

* PLT-3411 CLI to add Identity Provider Certificate and Service Provider Private Key

* PLT-3409 SAML Interface for EE

* PLT-3139 Handle SAML authentication server side

* Add localization messages

* PLT-3443 SAML Obtain SP metadata

* PLT-3142 Login & Switch to/from SAML

* Remove Certs for Database & Clean SAML Request

* Make required Username, FirstName and LastName

* PLT-3140 Add SAML to System Console (#3476)

* PLT-3140 Add SAML to System Console

* Move web_client functions to client.jsx

* Fix issues found by PM

* update package.json mattermost driver

* Fix text messages for SAML
2016-07-05 15:49:00 -04:00
Joram Wilander
f89e7c6d54 Sanitize personal information out of license for non system admin users (#3487) 2016-07-05 14:02:00 -04:00
Harrison Healey
dc2f2a8001 PLT-3145 Custom Emojis (#3381)
* Reorganized Backstage code to use a view controller and separated it from integrations code

* Renamed InstalledIntegrations component to BackstageList

* Added EmojiList page

* Added AddEmoji page

* Added custom emoji to autocomplete and text formatter

* Moved system emoji to EmojiStore

* Stopped trying to get emoji before logging in

* Rerender posts when emojis change

* Fixed submit handler on backstage pages to properly support enter

* Removed debugging code

* Updated javascript driver

* Fixed unit tests

* Fixed backstage routes

* Added clientside validation to prevent users from creating an emoji with the same name as a system one

* Fixed AddEmoji page to properly redirect when an emoji is created successfully

* Fixed updating emoji list when an emoji is deleted

* Added type prop to BackstageList to properly support using a table for the list

* Added help text to EmojiList

* Fixed backstage on smaller screen sizes

* Disable custom emoji by default

* Improved restrictions on creating emojis

* Fixed non-admin users seeing the option to delete each other's emojis

* Fixing gofmt

* Fixed emoji unit tests

* Fixed trying to get emoji from the server when it's disabled
2016-07-05 11:58:18 -04:00
Joram Wilander
f9e5a9029c Fixed error when adding incoming webhook to public channel not currently in (#3483) 2016-07-05 11:32:28 -04:00
enahum
0f873c01da PLT-3454 Verification Email fails to send when logging in with username (#3475) 2016-07-05 11:20:26 -04:00
enahum
2305b2597f PLT-3456 Fix Errors while starting the server (#3445)
* PLT-3456 AppErrors that are triggered before translations are loaded crash server or produce bad error messages.

* Fixing tests
2016-07-04 09:30:57 -04:00
Corey Hulen
b7e7474a5e Fixing invalid session (#3463) 2016-07-01 11:57:17 -08:00
Harrison Healey
74f86da822 Revert "Moved file attachments to be stored in data/channels instead of data/teams/ID/channels (#3416)" (#3461)
This reverts commit ed75dfc6c0.
2016-06-30 10:53:36 -08:00
David Lu
1c8962cf99 enabled team creation for sysadmins (#3433) 2016-06-30 08:43:46 -04:00
Joram Wilander
b97b3ae617 EE: Add the ability to restrict the user roles that can send team invites (#3442) 2016-06-29 14:16:17 -04:00
Corey Hulen
b63f61fe7d PLT-3440 (#3440) 2016-06-29 08:16:20 -04:00
Christopher Speller
6c5a8be6bf Implementing server side of LDAP sync now button (#3430) 2016-06-28 16:11:33 -08:00
Christopher Speller
422e12c364 Changing email notifications to use permalinks (#3399) 2016-06-28 14:44:37 -04:00
Harrison Healey
ed75dfc6c0 Moved file attachments to be stored in data/channels instead of data/teams/ID/channels (#3416) 2016-06-28 14:44:06 -04:00
Thiyagaraj Krishna
11afa405ba Email check shouldn't be case-sensitive #3349 (#3350)
Email address "allowed domains" check appears to be case-sensitive #3349
2016-06-27 08:08:16 -04:00
enahum
944966f7d1 PLT-3415 Fix Sending Test email fails with error (#3396) 2016-06-22 09:32:39 -04:00
Joram Wilander
5f176e4974 Make sure profile is not nil when assigning in sendNotifications (#3395) 2016-06-21 23:05:54 -04:00
enahum
e6fcea8459 PLT-3261 Fix Can't create a team with GitLab if the email domain is restricted (#3379) 2016-06-21 05:49:48 -08:00
Joram Wilander
878465b528 Only check team Id in getChannel for non-DMs (#3382) 2016-06-20 15:39:13 -06:00
David Lu
dbcf8572e5 Fixed @all not working as intended (#3335) 2016-06-15 08:13:47 -04:00
Corey Hulen
c7e9f3cb1b PLT-3264 remove session cookie when switching accounts (#3341) 2016-06-15 08:10:22 -04:00
Joram Wilander
1cfb35fd32 Fix channels showing up across teams when multiple teams open in same browser (#3329) 2016-06-15 08:00:55 -04:00
Joram Wilander
8f87e60231 Fix bad condition on hiding email addresses and update user etag to include privacy settings (#3327) 2016-06-14 12:12:46 -04:00
Harrison Healey
a0cc913b85 PLT-3143 Added serverside code for custom Emoji (#3311)
* Added model objects for emoji

* Added database tables for emoji

* Added settings for custom emoji

* Added serverside APIs and unit tests for custom emoji

* Added additional validation to catch duplicate emoji names earlier on

* Added additional validation to prevent users from adding emoji as another user
2016-06-14 07:38:19 -06:00
David Lu
661f221727 Made error message clearer (#3318) 2016-06-14 08:59:55 -04:00
JoramWilander
5af526c259 Merge branch 'release-3.1'
Conflicts:
	webapp/components/create_comment.jsx
2016-06-13 15:29:24 -04:00
Martin Schenck
24a2805456 PLT-2058 Debugging incoming web hook content (#3150)
* PLT-2058 Debugging incoming web hook content

This change debugs contents of incoming webhooks using l4g.

The problem is that in order to debug the request body, it neads to be
read. And a Reader can only be read once. Hence, the body is only read
for Debugging if it is actually enabled. Furthermore, a new reader is
created from the content of the old reader in order for the rest of the
method to work as usual (with or without debugging).

The debug statement is wrapped in a closure, so that the content is
only copied if Debug is actually enabled.

It is not possible to return `(string, string)` from the closure to
`l4g.Debug()`. That is the reason the debugging is not done with `=%v`,
but the translations strings end with a space.

I tested the change with a `application/json` HTTP header as well as
`payload=`

The debug method is extracted into util/log.go in order to be re-usable
for debugging `io.Reader`

* Added a config flag to turn off incoming webhook debugging

Setting `EnableWebhookDebugging` to false in the `config.json` will
disable the printing of the content of incoming webhooks to the console

* Defaulting webhook debugging to true

* Added the setting of debugging incoming webhooks to the system console
2016-06-10 09:59:24 -04:00
Thomas Balthazar
252d1c7e98 CLI: invite user by email - missing siteURL in email (#3297) 2016-06-10 07:59:20 -04:00
Joram Wilander
68c2b070da Auto join teams if coming from team sign-up page to login for GitLab (#3284) 2016-06-07 17:43:06 -04:00
Joram Wilander
c0d1b8fbb9 System messages trigger notifications when user is mentioned (#3235) 2016-06-06 14:29:10 -04:00
Joram Wilander
1e245f19c7 PLT-3114 Moved preview collapse out of pre-release features (#3206)
* Added user setting to auto collapse image previews

* Added slash commands for collapsing/expanding image previews

* Added translation strings for collapse setting

* Add default props for preview collapse setting
2016-06-06 10:41:54 -07:00
Harrison Healey
384d0eb245 PLT-2559 Always return successful when trying to join a channel that the user is already a member of (#3265)
* Added unit tests for SqlChannelStore.GetMember

* Fixed api routes for accessing channels by name when the name includes an underscore

* Changed join channel API to always return successful when the user is already a member of the channel
2016-06-06 13:03:56 -04:00
enahum
6cee1f87f2 PLT-2990 Clicking on a desktop notification from another team opens the team (#3253) 2016-06-06 09:46:09 -04:00
enahum
6ab893dcba PLT-2939 Fix Default slash command icon is invalid (#3250) 2016-06-06 08:59:19 -04:00
Christopher Speller
919eea73b6 LDAP users should not be subject to password guess limits or email verification (#3245) 2016-06-05 03:38:36 -03:00
David Lu
f3825ba766 PLT-2994 Added @all (#3233)
* Added @all

* Uncomment @all server side
2016-06-04 14:21:50 -04:00
Joram Wilander
971149d2b2 Don't allow users to be added to a channel they are not in the team of (#3246) 2016-06-04 10:52:25 -04:00
Christopher Speller
ea3342aa6c Adding LDAP Syncronization (#3219) 2016-06-03 09:33:59 -04:00
Joram Wilander
8165f5d91f PLT-3131 Add slash command for sending email invites (#3218)
* Add slash command for sending email invites

* Add response for empty message and trim commas

* Check for @ in email addresses before sending

* Update invite people error message
2016-06-02 19:39:23 -03:00
enahum
159953050a PLT-1800 Load server side locale from the config.json (#3202)
* PLT-1800 Load server side locale from the config.json

* Add support for locales with country specifics

* Fix localization on served locale file as plain/text

* Remove github.com/cloudfoundry/jibber_jabber as vendor dependency

* Fix get locale on login_controller
2016-06-02 12:47:26 -07:00
Joram Wilander
0788e83647 Close HTTP response bodies properly in golang driver (and some api functions) (#3217) 2016-06-02 12:40:34 -07:00
Joram Wilander
3ce6dfc71e Allow system admins to update and delete channels (#3161) 2016-06-01 13:04:06 -07:00
Christopher Speller
786e4dce7d Revert "PLT-1800 Load server side locale from the config.json" (#3201) 2016-06-01 11:56:27 -04:00
enahum
b00a60ab71 PLT-1800 Load server side locale from the config.json (#3135)
* PLT-1800 Load server side locale from the config.json

* Add support for locales with country specifics

* Fix localization on served locale file as plain/text

* Remove github.com/cloudfoundry/jibber_jabber as vendor dependency
2016-06-01 08:56:13 -04:00
Joram Wilander
8563fbc41e Add a wait condition in outgoing webhook test to prevent race condition (#3177) 2016-05-31 12:56:15 -04:00
Thomas Balthazar
c226cabc04 PLT-2170 Send payload in application/json for outgoing webhooks (#3160)
* Send payload in application/json for outgoing webhooks

The Add outgoing webhook UI now has a 'Content-Type' field that allows
to choose between application/x-www-form-urlencoded and
application/json. All outgoing webhooks created before this change will
be considered as x-www-form-urlencoded. There's also a minor change in
the way the outgoing webhook summary is displayed: the 'Callback URLs'
label was missing.

* Fix JS formatting errors

* Increase ContentType field length to 128
2016-05-31 10:51:28 -04:00
Joram Wilander
8f984771ae Send websocket event for system message posts (#3162) 2016-05-31 10:45:45 -04:00
Khoa Lê
397e0a3f68 PLT-2061 Include FULL PATH in logs when referring to a directory (#3170) 2016-05-31 10:35:08 -04:00
Joram Wilander
d2aacdbb07 Don't allow gitlab users to activate mfa (#3125) 2016-05-27 08:36:53 -07:00
David Lu
0d0734ac98 Added duplicated trigger validation (#3124) 2016-05-27 08:35:55 -07:00
Christopher Speller
ec7a273550 Revert "PLT-1800 Load server side locale from the config.json" (#3133) 2016-05-27 09:01:35 -04:00
enahum
a2c183f401 PLT-1800 Load server side locale from the config.json (#3092)
* PLT-1800 Load server side locale from the config.json

* Add support for locales with country specifics

* Fix localization on served locale file as plain/text
2016-05-27 08:25:37 -04:00
Thomas Balthazar
934ff34ccb Send Post ID in webhooks (#3120) 2016-05-26 11:37:54 -04:00
David Lu
6bd9996daf Made message command for all users (#3122) 2016-05-26 10:03:06 -04:00
Corey Hulen
56cca6be7c PLT-2976 Adding checkout for missing SMTP server when testing email connection (#3115)
* PLT-2976 Adding checkout for missing SMTP server when testing email connection

* Fixing unit test
2016-05-26 07:55:37 -04:00
rompic
20302c6953 fixed type speical -> special (#3052) 2016-05-25 08:19:54 -04:00
Corey Hulen
09863c0b80 Adding APIs to reload config, recycle db connections and ping server (#3096)
* Adding APIs to reload config, recycle db connections and ping server

* Fixing unit test

* Adding unit tests
2016-05-24 14:31:30 -07:00
Christopher Speller
4ae7128ecb Revert "PLT-1800 Load server side locale from the config.json (#3076)"
This reverts commit 34beaa569b.
2016-05-24 10:39:56 -04:00
Thomas Balthazar
7e2b539de4 Max_File_Size setting in System Console > File Settings (#3070) 2016-05-24 09:07:42 -04:00
David Lu
8e5c318590 Removed isTestDomain (#3069) 2016-05-24 08:39:11 -04:00
enahum
34beaa569b PLT-1800 Load server side locale from the config.json (#3076)
* PLT-1800 Load server side locale from the config.json

* Add support for locales with country specifics
2016-05-24 08:36:27 -04:00
David Lu
981a08e80e Fixed double join messages (#3059) 2016-05-20 09:14:18 -04:00
Joram Wilander
1492d1a3cb PLT-2664 Split out push notifications from email notifications (#3049)
* Split out push and email notification logic, always send push notifications on mention

* Add user setting to control push notifications

* Minor changeto simplify code
2016-05-19 14:33:04 -04:00
David Lu
5ace856e72 Added /shortcuts (#3048)
Added message and tests

Remember that lower vs uppercase matters

Accidentally removed \n

Added more

Formatted
2016-05-19 07:35:12 -04:00
Thomas Balthazar
55f6a0b21c Move away from the "andForget" style of function (#3046)
This is the second and last part of the refactoring.
First part is documented here:
https://github.com/mattermost/platform/pull/3043
2016-05-18 16:34:31 -04:00
Thomas Balthazar
d48be63513 Move away from the "andForget" style of function (#3043)
As suggested by @crspeller here:
https://github.com/mattermost/platform/pull/3022#issuecomment-220004020
2016-05-18 11:14:55 -04:00
Thomas Balthazar
99b8eef7e3 Send email notification when username changed (#3022) 2016-05-18 07:54:33 -04:00
Christopher Speller
edd453c6cd Merge branch 'release-3.0' 2016-05-17 17:51:42 -04:00
=Corey Hulen
ac509b114d Fixing websocket connection 2016-05-17 13:55:51 -07:00
Harrison Healey
d2b556aa77 Removed check of email signup from creating a team (#3029) 2016-05-17 15:52:03 -04:00
Harrison Healey
0fe75cb782 PLT-1909 Removed the ability to edit system posts (#3013)
* Removed the ability to edit system posts

* Added increased timeout to SpinnerButton unit tests
2016-05-17 12:27:03 -04:00
Thomas Balthazar
5580c28e54 PLT-2188 Integrations: Support raw new lines in the text payload (#2993)
* Integrations: Support raw new lines in the text payload

* Improve support for raw new lines in text payload

The regexp used to escape control characters now also searches for
additional fields:
text|fallback|pretext|author_name|title|value
2016-05-17 08:56:38 -04:00
Joram Wilander
1f609e9cf7 Check team member instead of session for team admin role when updating/deleting channels (#3007) 2016-05-16 12:55:22 -04:00
Christopher Speller
dcba917d60 Merge branch 'release-3.0' 2016-05-16 07:54:38 -04:00
Christopher Speller
38ee83e45b Moving to glide 2016-05-12 23:56:07 -04:00
Corey Hulen
9d94869cc6 Fixing issue with missing user (#2989) 2016-05-12 18:36:30 -07:00
Joram Wilander
e46c1b8d52 Inlcude team Id for fake context for incoming webhooks (#2988) 2016-05-12 18:36:15 -07:00
Harrison Healey
4f22cbc92b Stopped login code from falling back to LDAP when it's disabled (#2986) 2016-05-12 18:36:02 -07:00
Christopher Speller
d1efb66ad7 Merge branch 'release-3.0' 2016-05-12 12:11:02 -04:00
Harrison Healey
6631f28d92 Improved handling of edge case where an LDAP user shares a username with a non-LDAP user (#2980) 2016-05-12 12:06:26 -04:00
thoemy
04dfa2a9eb Improve incoming webhook slack compatibility (#2972) (#2973)
By checking for form urlencoded content instead of JSON, requests without
or with a wrong Content-Type header and a JSON body are correctly parsed.
2016-05-12 12:04:59 -04:00
thoemy
97450762db Fix parsing attachment field links into markdown (#2958) (#2959)
Field contents are stored in 'value' not 'text'.
2016-05-12 12:04:12 -04:00
thoemy
3f0325fd22 Fix parsing attachment field links into markdown (#2958) (#2959)
Field contents are stored in 'value' not 'text'.
2016-05-12 08:30:44 -04:00
thoemy
b4adf77693 Improve incoming webhook slack compatibility (#2972) (#2973)
By checking for form urlencoded content instead of JSON, requests without
or with a wrong Content-Type header and a JSON body are correctly parsed.
2016-05-12 07:44:44 -04:00
Corey Hulen
3928535456 PLT-2905 fixing upgrade of SSO accounts (#2962)
* PLT-2905 fixing upgrade of SSO accounts

* Fixing multiple Auths mapped to different emails
2016-05-11 14:04:30 -04:00
Christopher Speller
e1388877ad Merge branch 'release-3.0' 2016-05-11 11:53:04 -04:00
Corey Hulen
d7197943f0 Fixing compliance reporting (#2964) 2016-05-11 09:24:20 -03:00
Christopher Speller
720222f3a6 Removing export route (#2955) 2016-05-11 08:04:01 -04:00
Corey Hulen
c8285185a9 PLT-2806 sending websocket when adding user to team (#2953)
* PLT-2806 sending websocket when adding user to team

* Fixing config file
2016-05-10 12:54:11 -04:00
enahum
45b22f312d PLT-2674 Private Group should not have Leave option when only one member remains (#2888) 2016-05-10 08:24:52 -04:00
Harrison Healey
ff72a126d3 PLT-2862 Re-added LDAP login boxes as part of signup flow (#2937)
* Added ldap_only parameter for login API

* Re-added LDAP login boxes as part of signup flow
2016-05-09 15:56:50 -04:00
Joram Wilander
07126101d3 Recent mention searches now OR terms instead of AND (#2931) 2016-05-09 09:00:08 -07:00
Harrison Healey
e1cae3b15b PLT-2600/PLT-2770 Changed getPublicLink api call to return a proper JSON string (#2914)
* Removed unused channelId and userId parameters from web client getPublicLink method

* Changed getPublicLink api call to return a proper JSON string
2016-05-06 11:32:08 -07:00
Corey Hulen
6c75662b82 PLT-2697 Fixing team admins (#2900)
* PLT-2697 Fixing team admins

* Fixing eslint error

* Fixing loc issues

* Fixing func

* Fixing func
2016-05-06 14:28:22 -04:00
Joram Wilander
0cfcf5c5de Add separator between DMs on your team and not (#2910) 2016-05-06 12:08:58 -04:00
Christopher Speller
d2f9fd52fe Fixing /logout command (#2908) 2016-05-06 12:08:49 -04:00
Joram Wilander
d75cb02948 Multiple cross-team functionality fixes (#2902) 2016-05-06 08:06:34 -04:00
Joram Wilander
f2e788f4b1 Allow system admins to switch user accounts to email/password (#2893) 2016-05-05 16:36:42 -04:00
Harrison Healey
d2ddf40f56 PLT-2600/PLT-2770 Added Get Public Link modal and added new API for public file links (#2892)
* Switched public file links to use a GetLinkModal

* Separated getFile and the new getPublicFile api calls
2016-05-05 16:35:03 -04:00
Corey Hulen
6611229cd7 PLT-2707 Adding option to show DM list from all of server (#2871)
* PLT-2707 Adding option to show DM list from all of server

* Fixing loc
2016-05-04 09:31:42 -04:00
Joram Wilander
b18cf58c8f Sanitize sensitive data of out config file for the system console (#2849) 2016-05-03 14:45:36 -04:00
Harrison Healey
87989b8afd PLT-2258 Unified login screen and related APIs (#2820)
* Unified login screen and related APIs

* Refactored login API call to be less convoluted

* Removed LDAP login prompt from invite process

* Fixed existing LDAP users being able to log in if LDAP was configured, but disabled

* Gofmt

* Future proofed login API

* Updated login APIs based on feedback

* Added additional auditing to login API

* Actually removed loginById
2016-05-03 14:10:36 -04:00
Arif Usman
e76a30bca0 Fixed typo (#2862) 2016-05-03 13:07:49 -04:00
David Lu
e4b744362b Added query escaping to emails (#2867) 2016-05-03 13:06:43 -04:00
Joram Wilander
08a3cf6b38 Port HPNS from 2.2 to master (#2863) 2016-05-03 08:54:49 -07:00
Christopher Speller
f8ed606a5f Fixing edit direct channel header (#2842) 2016-05-02 12:57:32 -04:00
=Corey Hulen
f31108b7c4 Fixing cookie 2016-04-28 17:14:19 -07:00
=Corey Hulen
62901defae Merge branch 'master' of https://github.com/mattermost/platform 2016-04-28 17:03:59 -07:00
=Corey Hulen
ad9dfc9c42 Fixing cookie 2016-04-28 17:03:52 -07:00
Christopher Speller
f3fa435a1b Fixing slack import. (#2819) 2016-04-28 16:29:13 -04:00
Joram Wilander
383cddd3d1 Don't return error if already part of channel being joined (#2814) 2016-04-28 10:56:19 -04:00
Corey Hulen
9fecf96d3b PLT-2687 sending email on upgrade and moving profile pic to new location (#2808)
* Fixing CLI and adding unit tests

* Adding the upgrade_db_30 to the help text

* Adding the upgrade_db_30 to the help text

* Adding the upgrade_db_30 to the help text

* Fixing CLI tests

* PLT-2687 sending email on upgrade and moving profile pic to new location

* Fixing img move

* Fixing moving of profile image

* making upgrade email localizable

* Fixing email template
2016-04-28 09:53:30 -04:00
Joram Wilander
7695cbd1b4 Add websocket event and cache invalidation for deleting channels (#2807) 2016-04-27 16:05:39 -04:00
Christopher Speller
fa807d8e43 Fixing permalinks to channels your not a memeber of (#2805) 2016-04-27 16:02:58 -04:00
Corey Hulen
d962e175f8 Fix CLI to make -team_name optional or not required. I also added a -join_team cmd. (#2804)
* Fixing CLI and adding unit tests

* Adding the upgrade_db_30 to the help text

* Adding the upgrade_db_30 to the help text

* Adding the upgrade_db_30 to the help text

* Fixing CLI tests

* Fixing typo
2016-04-27 08:26:45 -04:00
Joram Wilander
735c2d9ae0 Use any whitespace as a demlimter when checking for outgoing webhook triggers (#2801) 2016-04-26 12:29:48 -04:00
Joram Wilander
c2fc28aa10 Fix deactivating MFA on user accounts (#2797) 2016-04-26 08:40:47 -04:00
Corey Hulen
1daa0d6b3e PLT-2298 fixing ephemeral message for loadtests (#2788)
* PLT-2298 fixing ephemeral message for loadtests

* Fixing unit tests
2016-04-25 08:39:02 -04:00
Corey Hulen
2e5617c29b PLT-2057 User as a first class object (#2648)
* Adding TeamMember to system

* Fixing all unit tests on the backend

* Fixing merge conflicts

* Fixing merge conflict

* Adding javascript unit tests

* Adding TeamMember to system

* Fixing all unit tests on the backend

* Fixing merge conflicts

* Fixing merge conflict

* Adding javascript unit tests

* Adding client side unit test

* Cleaning up the clint side tests

* Fixing msg

* Adding more client side unit tests

* Adding more using tests

* Adding last bit of client side unit tests and adding make cmd

* Fixing bad merge

* Fixing libraries

* Updating to new client side API

* Fixing borken unit test

* Fixing unit tests

* ugg...trying to beat gofmt

* ugg...trying to beat gofmt

* Cleaning up remainder of the server side routes

* Adding inital load api

* Increased coverage of webhook unit tests (#2660)

* Adding loading ... to root html

* Fixing bad merge

* Removing explicit content type so superagent will guess corectly (#2685)

* Fixing merge and unit tests

* Adding create team UI

* Fixing signup flows

* Adding LDAP unit tests and enterprise unit test helper (#2702)

* Add the ability to reset MFA from the commandline (#2706)

* Fixing compliance unit tests

* Fixing client side tests

* Adding open server to system console

* Moving websocket connection

* Fixing unit test

* Fixing unit tests

* Fixing unit tests

* Adding nickname and more LDAP unit tests (#2717)

* Adding join open teams

* Cleaning up all TODOs in the code

* Fixing web sockets

* Removing unused webockets file

* PLT-2533 Add the ability to reset a user's MFA from the system console (#2715)

* Add the ability to reset a user's MFA from the system console

* Add client side unit test for adminResetMfa

* Reorganizing authentication to fix LDAP error message (#2723)

* Fixing failing unit test

* Initial upgrade db code

* Adding upgrade script

* Fixing upgrade script after running on core

* Update OAuth and Claim routes to work with user model changes (#2739)

* Fixing perminant deletion. Adding ability to delete all user and the entire database (#2740)

* Fixing team invite ldap login call (#2741)

* Fixing bluebar and some img stuff

* Fix all the different file upload web utils (#2743)

* Fixing invalid session redirect (#2744)

* Redirect on bad channel name (#2746)

* Fixing a bunch of issue and removing dead code

* Patch to fix error message on leave channel (#2747)

* Setting EnableOpenServer to false by default

* Fixing config

* Fixing upgrade

* Fixing reported bugs

* Bug fixes for PLT-2057

* PLT-2563 Redo password recovery to use a database table (#2745)

* Redo password recovery to use a database table

* Update reset password audits

* Split out admin and user reset password APIs to be separate

* Delete password recovery when user is permanently deleted

* Consolidate password resetting into a single function

* Removed private channels as an option for outgoing webhooks (#2752)

* PLT-2577/PLT-2552 Fixes for backstage (#2753)

* Added URL to incoming webhook list

* Fixed client functions for adding/removing integrations

* Disallowed slash commands without trigger words

* Fixed clientside handling of errors on AddCommand page

* Minor auth cleanup (#2758)

* Changed EditPostModal to just close if you save without making any changes (#2759)

* Renamed client -> Client in async_client.jsx and fixed eslint warnings (#2756)

* Fixed url in channel info modal (#2755)

* Fixing reported issues

* Moving to version 3 of the apis

* Fixing command unit tests (#2760)

* Adding team admins

* Fixing DM issue

* Fixing eslint error

* Properly set EditPostModal's originalText state in all cases (#2762)

* Update client config check to assume features is defined if server is licensed (#2772)

* Fixing url link

* Fixing issue with websocket crashing when sending messages to different teams
2016-04-21 22:37:01 -07:00
Joram Wilander
cf1f3ba322 PLT-2561 Add commandline option to upload license file (#2757)
* Add commandline option to upload license file

* Remove unnecessary comment
2016-04-21 09:43:10 -04:00
enahum
74e5161a4c PLT-2593: Fix logs being stored with user locale (#2722) 2016-04-17 17:32:20 -07:00
Joram Wilander
c6c3f1e478 Update client license etag to handle new features (#2716) 2016-04-15 08:48:14 -04:00
Joram Wilander
49ab8b2161 Add custom branding functionality (#2667) 2016-04-11 13:45:03 -04:00
Christopher Speller
81e7e85369 Fixing build 2016-04-11 08:49:03 -04:00
Harrison Healey
3803750fb1 Changed getFile api call to always attach headers 2016-04-08 18:06:35 -04:00
enahum
df77179ecc Fix email verification process (#2664)
- Fix email verification URL in login view
- Fix URL in email being sent for verification
- Add Email Verification on password reset
- Fix display of email in reset password
- Fix URL en team_signup_password_page
- Fix typo in webapp en loc
- Add missing es locs
- Removed extra es, fr and pt locs
2016-04-08 14:04:23 -07:00
Andy Lo-A-Foe
1a1fd39cf8 PLT-2525: Render attachment fields similar to Slack
* Render attachment fields similar to Slack

* Add /loadtest json url command

This allows us to easily create test posts with 
more props like Slack attachments
2016-04-06 08:23:26 -04:00
Christopher Speller
1954c44993 Adding LDAP user filtering capability 2016-04-06 08:19:56 -04:00
JoramWilander
a9458480d5 Minor fix for expired sessions 2016-04-04 14:58:05 -04:00
JoramWilander
277630b560 Send notifications to the creator of a posting webhook 2016-04-04 11:12:37 -04:00
Joram Wilander
785553384f Merge pull request #2320 from mozilla/msg-command
PLT-2231 /msg command and tests
2016-04-04 08:20:21 -04:00
Christopher Speller
7e9c7ce60a Visiting invalid URLs and bad APIs causes redirect to error page 2016-04-01 11:51:17 -04:00
Harrison Healey
a0a747b2b3 Merge pull request #2590 from mattermost/plt-2287
PLT-2287 Disable previously created public links with the config setting
2016-03-31 12:21:40 -04:00
JoramWilander
c27f700670 Disable previously created public links with the config setting 2016-03-31 10:08:20 -04:00
JoramWilander
980419b37c Update webhook posts to never show in collapsed view 2016-03-31 09:54:46 -04:00
JoramWilander
f9a3a4b394 Add MFA functionality 2016-03-30 12:49:29 -04:00
Alan Mooiman
ad902f601f msg command 2016-03-24 23:45:15 -04:00
JoramWilander
de2f7f4e52 Fix oauth routes and link issues 2016-03-24 19:32:25 -04:00
JoramWilander
934c7c7a7c Fix imports and change ldap function name 2016-03-23 15:59:58 -04:00
JoramWilander
463fd8c20b Add the ability to switch from email to ldap and back 2016-03-23 15:59:58 -04:00
Christopher Speller
9ac6bc5029 Fixing incoming webhooks 2016-03-21 08:19:03 -04:00
Christopher Speller
85837efe06 Merge pull request #2475 from mattermost/plt-1606
PLT-1606/PLT-714 Change searches to AND terms instead of OR
2016-03-21 07:31:05 -04:00
Christopher Speller
35320efe1a Revert "PLT-2183 Slash command auto-complete" 2016-03-18 13:16:51 -04:00
JoramWilander
8326025d5b Removed search test case where MySQL and PostgreSQL didn't agree 2016-03-18 12:53:09 -04:00
Corey Hulen
53d7718e57 Merge pull request #2442 from mattermost/PLT-2115
PLT-2115 adding compliance feature
2016-03-17 13:16:10 -07:00
=Corey Hulen
5273559ca1 Fixing merge 2016-03-17 09:51:45 -07:00
Elias Nahum
1f5c8c4e4e Option to enable full snippets in push notifications 2016-03-17 13:20:17 -03:00
=Corey Hulen
b9d5b4e5dc merging files 2016-03-16 18:13:16 -07:00
Nicolas Clerc
7cb817d5a7 fix TestListCommands 2016-03-17 01:45:37 +01:00
Nicolas Clerc
5e2596598f add external slashcommands management 2016-03-17 01:45:37 +01:00