Commit Graph

185 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
ddc996f33f [PLT-5465/APIV4] GET /system/health - Improve ping health check to have limits (#6331)
* implement PLT-5465 - Improve ping health check to have limits

* update /ping and delete /health

* remove permission check
2017-05-30 21:47:27 -07: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
Harrison Healey
577ed27f1b PLT-6408 Framework for job server (#6404)
* Added initial job server

* Added job server to be ran as part of platform

* Added test job to the enterprise repo

* Fixed job server not loading license

* Renamed job package to jobs

* Fixed TE not being buildable

* Added JobStatus table to database

* Changed fields used by JobStatus

* Added APIs to query job status

* Added config change listener to server

* Added option to run job server from Makefile

* Added ability to enable/disable jobs from config

* Commented out placeholder for search indexing job

* Fixed govet

* Removed debug messages and fixed job api init message
2017-05-18 15:05:57 -04:00
enahum
5f9a28ed6f Ability to use OAuth login from mobile (#6432) 2017-05-17 17:33:44 -04:00
Robin Naundorf
0a20e8d326 PLT-6019: Add APIv4 Endpoint for restoring Channels (#6263) 2017-05-15 16:12:30 -04:00
Carlos Tadeu Panato Junior
a5d2d6503d [PTL-6301] debug randon failing test (#6161)
* debug randon failing test

* add another check.
2017-05-15 11:44:04 -04:00
JoramWilander
9d109b0700 Merge branch 'release-3.9' into merge-3.9 2017-05-12 08:00:28 -04:00
Harrison Healey
a21a06afd9 PLT-6556 Fixed last member of a channel not being able to delete channel with api v4 (#6397) 2017-05-11 16:32:14 -04:00
Christopher Speller
4f589e077c Removing channel list alias from apiv4 client (#6383) 2017-05-10 08:41:56 -07:00
Carlos Tadeu Panato Junior
7a927c03e4 Add tests for CreateUserWithInviteId and CreateUserWithHash (#6363) 2017-05-10 07:46:52 -04:00
Carlos Tadeu Panato Junior
16581ae431 implement open graph metadata for apiV4 (#6343) 2017-05-10 11:44:18 +01:00
Joram Wilander
8c8d9dbf8f Forward port 3.8.1 changes that missed master (#6362) 2017-05-09 16:01:06 -04:00
Robin Naundorf
5efcd2d9d3 Add API Endpoint for deleted Channels (#5889) 2017-05-09 07:52:46 -05:00
Joram Wilander
202c383d8d Fix MFA enforcement on login and page load (#6356) 2017-05-09 07:48:57 -05:00
Christopher Speller
010ec23af3 Removing password reset salt (#6334) 2017-05-04 16:36:51 -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
Joram Wilander
88a328421f Update channel patch to post the correct system messages (#6290) 2017-05-03 08:52:36 -07:00
George Goldberg
597641545d PLT-6355: Use separate Read Replicas for Search. (#6216) 2017-05-01 00:19:58 -04:00
Joram Wilander
96906482ce PLT-6214 Move channel store and actions over to redux (#6235)
* Move channel store and actions over to redux

* Fix style errors

* Fix unit test

* Various fixes

* More fixes

* Revert config changes
2017-04-28 13:16:03 -04:00
Joram Wilander
36a15925dc Fix user autocomplete for DMs and GMs (#6265) 2017-04-28 08:04:13 -07:00
Joram Wilander
514f038f44 Fix error not appearing when updating to existing username (#6255) 2017-04-28 10:11:26 -04:00
Corey Hulen
a8cf08d6ef PLT-6322 log error messages in english (#6234) 2017-04-28 10:03:52 -04:00
Joram Wilander
5a60ea0d75 PLT-6268 Clear blue bar correctly when removing expiring license (#6247)
* Don't sanitize license for system admin

* Clear blue bar error whe removing expiring license

* Fix unit test
2017-04-27 07:57:58 -07: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
Saturnino Abril
0e007e344b APIv4 POST /commands/execute (#6205) 2017-04-27 09:41:52 -04:00
Carlos Tadeu Panato Junior
c540e80166 alsways get the last message from inbucket (#6251) 2017-04-27 07:50:49 -04:00
Saturnino Abril
6fa7082833 fix reaction's name validation with + sign in it (#6221) 2017-04-26 10:11:32 -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
Joram Wilander
6c4c706313 Start moving webapp to Redux (#6140)
* Start moving webapp to Redux

* Fix localforage import

* Updates per feedback

* Feedback udpates and a few fixes

* Minor updates

* Fix statuses, config not loading properly, getMe sanitizing too much

* Fix preferences

* Fix user autocomplete

* Fix sessions and audits

* Fix error handling for all redux actions

* Use new directory structure for components and containers

* Refresh immediately on logout instead of after timeout

* Add fetch polyfill
2017-04-25 11:46:02 -04:00
Harrison Healey
db68e598a1 PLT-4457 Added API to get multiple users by their usernames (#6218)
* Allow getting profiles by username without a team

* Changed UserStore.GetProfilesByUsernames to return an array

* PLT-4457 Added API to get multiple users by their usernames

* Changed users/names route to users/usernames
2017-04-25 08:00:41 -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
b57b5abce8 implement POST /logs for apiV4 (#6143) 2017-04-21 10:16:35 +01:00
Carlos Tadeu Panato Junior
c94754e94f [PLT-6288] add way to view in the browser and not download in apiV4 (#6062)
* add way to view in the browser and not download

* add DetectContentType to get the contenttype for the file

* update per review
2017-04-20 16:34:07 +01: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
Saturnino Abril
b0e5713680 APIv4 POST /channels/group (#6166) 2017-04-20 09:55:43 -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
Joram Wilander
0b919a324a Don't sanitize returned user when updating a user (#6095)
* Don't sanitize returned user when updating a user

* Use user model function for clearing private data
2017-04-19 15:38:35 -04: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
Saturnino Abril
742bab6429 APIv4 PUT /users/{user_id}/active (#6118) 2017-04-17 11:06:33 -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
Carlos Tadeu Panato Junior
d8d0716122 [APIV4] POST /commands/{command_id}/regen_token for apiV4 (#6052)
* implement POST /commands/{command_id}/regen_token for apiV4

* update comment
2017-04-16 16:49:57 -04:00
Harrison Healey
24667e3e54 Fixed copyright dates (#6109) 2017-04-13 15:02:18 -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
Saturnino Abril
e841d0c502 APIv4 GET /posts/{post_id}/reactions (#6047) 2017-04-11 14:14:33 +01:00