Commit Graph

1438 Commits

Author SHA1 Message Date
Corey Hulen
36f216cb7c PLT-6080 moving clustering to memberlist (#6499)
* PLT-6080 adding cluster discovery service

* Adding memberlist lib

* Adding memberlist lib

* WIP

* WIP

* WIP

* WIP

* Rolling back config changes

* Fixing make file

* Fixing config for cluster

* WIP

* Fixing system console for clustering

* Fixing default config

* Fixing config

* Fixing system console for clustering

* Tweaking hub setting

* Bumping up time

* merging vendor dir

* Updating vendor dir

* Fixing unit test

* Fixing bad merge

* Remove some testing code

* Moving comment

* PLT-6868 adding db ping retry

* Removing unused loc strings

* Adding defer to cancel
2017-06-19 08:44:04 -07:00
Harrison Healey
4d4f2cea86 PLT-6678 Change Cache-Control to private for files (#6660) 2017-06-16 09:35:15 -07:00
Joram Wilander
528f2dc6c3 Merge release-3.10 into master (#6654)
* PLT-6787 Fixed being able to send a post before files finished uploading (#6617)

* Fix quick switcher for channels/users not stored locally (#6610)

* Fix button text on confirm mention modal (#6609)

* fix post delete permission of channel admin (#6608)

* open comment thread for the most recent reply-able message (#6605)

* Use mutex flag with yarn to prevent concurrent builds interfering (#6619)

* Use mutex flag with yarn to prevent concurrent builds interfering

* Remove yarn mutex file with clean

* Minor bug fixes (#6615)

* PLT-6774 - Fixing color for offline icon

* PLT-6784 - Fixing status icon

* Fixing icon margin

* Updating caret position

* PLT-6070 Have ChannelMentionProvider stop searching after a term returns no results (#6620)

* Fixing JS error (#6623)

* Minor bug fixes (#6622)

* PLT-6808 - Updating channel switcher on mobile

* PLT-6743 - Updating scrollbar styling

* Login instead of failing if user exists in OAuth sign-up flow (#6627)

* PLT-6802 Disable team switcher (#6626)

* Disable team switcher

* Fix ESLint errors

* PLT-6807 Ensured select teams page can scroll on iOS (#6630)

* Do not redirect from account switch pages on 401 (#6631)

* Fixing loadtest command and renaming to /test (#6624)

* PLT-6820 Update mattermost-redux dependency (#6632)

* translations PR 20170612 (#6629)

* Bump HTTP client timeout to 30 seconds (#6633)

* For team unreads return empty array instead of null (#6636)

* PLT-6831 Fix status modal localization IDs (#6637)

* Fix status modal localization IDs

* Update test snapshot
2017-06-15 11:05:43 -04:00
Corey Hulen
6a54f3c489 PLT-6581 breakup webhooks greater than 4K into multiple posts (#6530) 2017-06-02 12:08:04 -04:00
Harshavardhana
f520aa1f4d Support AWS Signature V2 for Mattermost for S3 storage. (#6462)
Certain S3 compatible servers only use Legacy Signature (AWS
Signature V2), current code only supports signature v4.

This PR adds facility to click a button on the UI to enable
legacy signature with S3 compatible servers.
2017-05-30 16:12:24 -07:00
Christopher Speller
00f48a1908 Adding short unit tests by default (#6494) 2017-05-25 11:01:53 -04:00
Harrison Healey
5c1049054e PLT-6471 Properly panic when translations can't be loaded (#6414)
* PLT-6471 Properly panic when translations can't be loaded

* Print usage messages when errors occur during CLI initialization

* Reverted behaviour of FindDir and added second return value to it

* Fixed merge conflict
2017-05-23 11:06:25 -04:00
enahum
5f9a28ed6f Ability to use OAuth login from mobile (#6432) 2017-05-17 17:33:44 -04:00
Joram Wilander
0ae6886513 Detach session activity update from statuses (#6379) 2017-05-10 09:48:50 -04:00
Joram Wilander
8c8d9dbf8f Forward port 3.8.1 changes that missed master (#6362) 2017-05-09 16:01:06 -04:00
George Goldberg
85c2d5a478 PLT-6393: Fix Websocket CORS header check. (#6335) 2017-05-04 17:21:28 -04:00
Christopher Speller
010ec23af3 Removing password reset salt (#6334) 2017-05-04 16:36:51 -04:00
Joram Wilander
fe95276ba8 PLT-6492 Use new cookie to determine if user is logged in (#6317)
* Use new cookie to determine if user is logged in

* Add temporary code for 3.9 to prevent forced re-login
2017-05-04 16:36:31 -04:00
Joram Wilander
49481caf6d PLT-6262 Add config setting to disable file attachments (#6301)
* Add config setting to disable file attachments

* Add unit tests

* Updating UI for no attachments (#6312)

* Update UI text on file upload System Console setting (#6313)

* Update storage_settings.jsx

* Update en.json
2017-05-04 15:45:19 -04:00
Corey Hulen
a8cf08d6ef PLT-6322 log error messages in english (#6234) 2017-04-28 10:03:52 -04:00
Christopher Speller
9a87bb3af6 Creating common token store and moving email invites and verification to it (#6213) 2017-04-27 10:55:03 -04:00
Joram Wilander
8d1a132eda Fix OAuth SSO first account creation, add mobile support, and fix refresh tokens (#6181) 2017-04-25 09:38:33 -07:00
Saturnino Abril
ecb10ed62f APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name (#6117)
* APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name

* updated v3 deleteReaction endpoint

* update parameter of app.DeleteReactionForPost()

* update utils.IsValidAlphaNum, add utils.IsValidAlphaNumHyphenUnderscore, and add related tests
2017-04-22 08:52:03 -04:00
Carlos Tadeu Panato Junior
f758f9ff3a [APIV4] GET /emoji/{emoji_id}/image for apiV4 (#6141)
* implement GET /emoji/{emoji_id}/image for apiV4

* update per request
2017-04-20 11:14:15 -04:00
Joram Wilander
be9624e2ad Implement v4 endpoints for OAuth (#6040)
* Implement POST /oauth/apps endpoint for APIv4

* Implement GET /oauth/apps endpoint for APIv4

* Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4

* Refactor API version independent oauth endpoints

* Implement DELETE /oauth/apps/{app_id} endpoint for APIv4

* Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4

* Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4

* Implement POST /oauth/deauthorize endpoint
2017-04-20 09:55:02 -04:00
Harrison Healey
1a0f8d1b3c PLT-1384 Added websocket event when preferences are updated/deleted (#6107) 2017-04-20 13:57:31 +01:00
Christopher Speller
5398c82e1b Revert "Usernames must start with a letter (#5581)"
This reverts commit 2e911b77c3.
2017-04-18 17:37:25 -04:00
Saturnino Abril
d2b86f1b8d APIv4 POST /reactions (#6092)
* APIv4 POST /reactions

* update corresponding V3 endpoint
2017-04-18 16:15:15 -04:00
Christopher Speller
92d8fa4aa8 Merge branch 'release-3.8' 2017-04-17 15:08:56 -04:00
Carlos Tadeu Panato Junior
80684ad69f implement DELETE /emoji/{emoji_id} fro apiV4 (#6021)
implement GET /emoji/{emoji_id} for apiv4
2017-04-17 10:07:28 -04:00
Joram Wilander
74ffb6f98f Implement GET /webrtc/token endpoint for APIv4 (#6046) 2017-04-16 21:14:31 -04:00
Joram Wilander
8b8aa2ca3c Refactor OAuth 2.0 code into app layer (#6037) 2017-04-12 16:29:42 -04:00
Harrison Healey
fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Carlos Tadeu Panato Junior
c6ef33ba01 get the latest message from the mailbox. It fixes the issue PLT-6176 (#6005) 2017-04-10 21:11:00 +01:00
JoramWilander
5c89fe1b8d Fix configuration setting 2017-04-10 14:47:38 -04:00
Joram Wilander
dfc6db7374 Refactor switching login type code into app layer and add v4 endpoint (#6000)
* Refactor switching login type code into app layer and add v4 endpoint

* Fix unit test
2017-04-10 08:19:49 -04:00
Joram Wilander
331024d33c Use SiteURL for OAuth login (#6032) 2017-04-10 11:26:16 +01:00
Carlos Tadeu Panato Junior
f7b39caf31 get the latest message from the mailbox. It fixes the issue PLT-6176 (#6005) 2017-04-07 10:05:34 -07:00
Carlos Tadeu Panato Junior
1bd19f006d implement GET /emoji for apiV4 (#6007) 2017-04-07 10:05:14 -07:00
Carlos Tadeu Panato Junior
48d9099882 implement POST /emoji for apiV4 (#5868) 2017-04-06 11:15:57 -04:00
George Goldberg
87343176fc PLT-5977: Only reload clients when client config changes. (#5989) 2017-04-05 19:10:20 +01:00
Joram Wilander
97de1d0982 Fix blanking out of FileIds and backwards compatability issue with v3 (#5950) 2017-04-04 15:17:47 -04:00
Corey Hulen
6bf080393d Fixing race conditions in the code base (#5966)
* Adding initial race detector

* Remove setting of config twice

* Fixing config file watch and config reload on license save

* Fixing config file watch and config reload on license save

* Fixing build error

* Fixing locking issue

* Fixing makefile

* Fixing race in config

* Fixing race in status unit test

* Adding EE race tests

* Fixing race in cluster info

* Removing code that's isn't needed

* Fixing some more races

* Fixing govet issue
2017-04-04 14:42:07 -04:00
George Goldberg
32460bf63b PLT-6198: Use added to channel system message on default channels. (#5969)
Use a different sytem message when a user was added to a default channel
by someone else than when they joined themselves.
2017-04-04 18:19:42 +01:00
Harrison Healey
c7bdce8a66 PLT-5900 Removed automatic configuration of SiteURL (#5952)
* Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)"

This reverts commit a8e68bd890.

* Removed automatic configuration of SiteURL

* Reverted unintentional config changes

* Updated help text

* Added link to docs in Site URL warning

* Fixed merge conflict
2017-04-04 11:54:52 -04:00
Corey Hulen
f0e451a2d3 Fixing config file watch and config reload on license save (#5954)
* Fixing config file watch and config reload on license save

* Fixing config file watch and config reload on license save

* Fixing build error

* Fixing locking issue
2017-04-04 11:24:58 -04:00
enahum
1cbe6e7975 Add more OAuth unit tests (#5946) 2017-04-03 10:37:58 -07:00
George Goldberg
e49f5928c5 PLT-6139 (Server): Private Channel member managing (#5941)
Adds an EE policy feature to allow restricting system-wide which level of
Admins can manage the membership of private channels.
2017-04-03 13:13:28 -04:00
Carlos Tadeu Panato Junior
88b8df3146 implement GET /commands (#5865) 2017-04-03 08:12:50 -04:00
Joram Wilander
aba07e5cb9 PLT-5483 Fix bug where flagged posts endpoint returned posts on other teams (#5765)
* Fix bug where flagged posts endpoint returned posts on other teams

* Include flagged posts from DMs/GMs
2017-03-31 12:25:39 -04:00
Corey Hulen
00bb479989 PLT-6090 adding ability to read license file from disk (#5895)
* PLT-6090 adding ability to read license file from disk

* Fixing unit test that fails only sometimes

* Fixing test that fails randomly
2017-03-31 09:54:30 -04:00
Joram Wilander
060b9f92c3 Remove API endpoints being deprecated in 3.8 (#5880) 2017-03-28 08:07:15 -04:00
Joram Wilander
daca0d93f6 Move WebSocket API to it's own package and add websocket v4 endpoint (#5881) 2017-03-28 09:58:19 +01:00
Joram Wilander
58397f853a Implement some MFA endpoints for APIv4 (#5864) 2017-03-27 09:21:48 -04:00
George Goldberg
720ee81113 PLT-6063: AddUserToTeam permission depends on policy. (#5869)
Uses same policy setting as InviteUserToTeam.
2017-03-26 09:37:39 -04:00