Commit Graph

321 Commits

Author SHA1 Message Date
Chris
65817e13c7 PLT-6965 jira integration (plus plugin scaffolding) (#6918)
* plugin scaffolding / jira integration

* add vendored testify packages

* webhook fix

* don't change i18n ids

* support configuration watching

* add basic jira plugin configuration to admin console

* fix eslint errors

* fix another eslint warning

* polish

* undo unintentional config.json commit >:(

* test fix

* add jira plugin diagnostics, remove dm support, add bot tag, generate web-safe secrets

* rebase, implement requested changes

* requested changes

* remove tests and minimize makefile change

* add missing license headers

* add missing comma

* remove bad line from Makefile
2017-08-02 01:36:54 -07:00
Joram Wilander
5da5c0bbfb PLT-6987 User access token UI (#7007)
* Add user access token UI

* Fix enter press and update mattermost-redux

* Updating UI for access token stuff (#7066)

* Revert segment key
2017-08-01 11:06:53 -04:00
Saturnino Abril
88f398ffdd Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes." (#7072)
* Revert "PLT-6603: Don't return all posts on invalid query. (#7061)"

This reverts commit 25a2013890.

* Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)"

This reverts commit 8a91235fb3.
2017-08-01 08:16:45 -04:00
George Goldberg
25a2013890 PLT-6603: Don't return all posts on invalid query. (#7061)
If the query contains only * or invalid punctuation only components,
don't return all posts - instead return no results.

This also fixes PLT-6608
2017-07-31 11:45:35 -07:00
Debanshu Kundu
8a91235fb3 #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)
fix 7 and 8

remove @ at "{username} joined the channel"

refactor and update test
2017-08-01 02:17:21 +08:00
Joram Wilander
59992ae4a4 PLT-6763 Implement user access tokens and new roles (server-side) (#6972)
* Implement user access tokens and new roles

* Update config.json

* Add public post permission to apiv3

* Remove old comment

* Fix model unit test

* Updates to store per feedback

* Updates per feedback from CS
2017-07-31 12:59:32 -04:00
Carlos Tadeu Panato Junior
251f000c68 [PLT-6710] /rename [text] slash command: Rename the channel (#6570)
* /rename [text] slash command: Rename the channel

* update strings per review
2017-07-31 12:54:34 -04:00
Harshavardhana
489602efe5 Allow regions to be set and honored for S3 driver. (#7010)
This is necessary for certain users where
GetBucketLocation API is disabled using IAM
policies. There is a field AmazonS3Region
which we need to re-purpose and use to support
this properly.

Fixes https://github.com/mattermost/platform/issues/6999
2017-07-31 12:22:52 -04:00
George Goldberg
c506c5cac6 PLT-6961: Add Elasticsearch settings to diagnostics. (#7021) 2017-07-31 11:53:44 -04:00
Chris
72f61ab96a make cli team / channel delete operations also delete webhooks and slash commands (#7028) 2017-07-31 11:52:45 -04:00
Jonathan
d01261a228 PLT-7177: Change the default email frequency to 15 minutes if batching is enabled on the server. (#7036)
* PLT-7177: Found default preference that needs to be changed

* PLT-7177: Front end behaves as desired

* PLT-7177: Changed default batching interval on server side

* PLT-7177: Added unit tests for new default interval

* PLT-7177: Removed unused import

* PLT-7177: Renamed constants to increase clarity
2017-07-31 11:51:43 -04:00
Chris
094c2f7308 fix away/offline/online commands repeating user message (#7060) 2017-07-31 11:26:54 -04:00
Christopher Speller
09b49c26dd PLT-5308 Caching layer part 2 (#6973)
* Adding Reaction store cache layer example

* Implementing reaction store in new caching system.

* Redis for reaction store

* Adding redis library

* Adding invalidation for DeleteAllWithEmojiName and other minor enhancements
2017-07-31 08:15:23 -07:00
Corey Hulen
22fa48f455 Don't send last view message for null channels (#7051) 2017-07-31 08:18:40 -04:00
Joram Wilander
da6e6ca0bf Fix TestCreateOAuthUser unit test (#7034) 2017-07-28 11:48:34 -06:00
Nick Frazier
cc3a95fdd9 Added websocket event and webapp handler for updating user roles (#6953) 2017-07-27 08:15:50 -04:00
George Goldberg
ff0a790516 PLT-7040: Fix capitalisation of Elasticsearch in Config. (#7020) 2017-07-27 08:48:02 +01:00
George Goldberg
4132a02319 PLT-7183: User/Channel NotifyProps Bulk Import. (#7019) 2017-07-26 08:51:25 +01:00
Chris
345dd400bb PLT-6706: add /code command (#6936)
* add /code command

* return an error for empty /code message
2017-07-24 14:55:37 -04:00
Carlos Tadeu Panato Junior
816bfbeb91 [PLT-6708] /purpose [text] slash command: Edit the channel purpose (#6569)
* /purpose [text] slash command: Edit the channel purpose

* update command on server side to check for direct or group channels

* update stings and block the dialog when is DM or GM

* update per review

* remove duplicate websocker event and apply the same for /header command

* update per review

* update
2017-07-21 15:04:41 -04:00
George Goldberg
02abaabf1f PLT-7123: Add tutorial, flags and favorites to bulk importer. (#7000) 2017-07-21 09:23:27 -04:00
George Goldberg
f30c0b5d38 PLT-6596: Elasticsearch interface changes. (#6993) 2017-07-21 08:38:44 +08:00
Christopher Speller
58839cefb5 Upgrading server dependancies (#6984) 2017-07-20 15:22:49 -07:00
George Goldberg
6c6f2a1138 PLT-6595-Server: Job Management APIs. (#6931)
* PLT-6595-Server: Job Management APIs.

* MANAGE_JOBS Permission

* Fix test.
2017-07-20 08:25:35 -07:00
George Goldberg
5f8a93fca6 PLT-6971: Fix Slack Import of non-ascii channel names. (#6969) 2017-07-19 13:57:28 -07:00
George Goldberg
fe368a7456 PLT-6595: API to purge Elasticsearch indexes. (#6971) 2017-07-19 09:43:05 +01:00
Christopher Speller
97f34e483b Merge branch 'release-4.0' 2017-07-18 15:45:23 -07:00
Saturnino Abril
21a3219b9b [PLT-6676] Make OutgoingWebhook to fire when post has no text content but only attachment (#6935)
* make OutgoingWebhook to fire when post has no text content but only attachment

* update per comment and modify payload & test
2017-07-18 15:43:31 -04:00
Joram Wilander
3e090162aa PLT-7126 Do not version detect on saml endpoints and remove config reloading (#6955)
* Do not version detect on saml endpoints and remove config reloading

* Update mattermost-redux
2017-07-18 06:22:49 +08:00
Joram Wilander
70bfcfb9d7 Only apply never edit policy setting when message changes (#6947) 2017-07-18 06:22:28 +08:00
Joram Wilander
10cde61958 Only apply edit policy setting if message changed (#6930) 2017-07-15 01:10:20 +08:00
Chris
a18479df09 Tweak WebSocket header-processing (#6929)
* fix

* consolidate code
2017-07-13 18:48:07 -07:00
Chris
5c3c909c85 Tweak WebSocket header-processing (#6929)
* fix

* consolidate code
2017-07-13 14:02:33 -07:00
JoramWilander
259ad46f30 Minor fix 2017-07-12 16:58:51 -04:00
Rich Barton
998b8f70c2 PLT-6659 Fixed upload thumbnails that weren't properly rotated (#6816)
- Used client-side EXIF data to rotate profile picture thumbnails
- Added a small package for correctly translating EXIF orientation into CSS transforms
- Instead of displaying the image using FileReader, used URL.createObjectURL because it is faster
- For upload thumbnails, the original behavior was scaling the entire original image, without accounting for EXIF rotate. I changed this to use the thumbnail image, which does respect rotation.
- The preview image was not available when the upload request returned, because handling the preview image creation was in a goroutine. I used sync.WaitGroup to block until the preview image creation is done.
2017-07-10 06:51:07 -07:00
George Goldberg
39b071bc0e Add optional config parameter to test elasticsearch endpoint. (#6877) 2017-07-07 12:12:14 -04:00
George Goldberg
db2f6cf076 PLT-6976: Elasticsearch capitalisation and tests. (#6839)
* Fixes Elasticsearch to have consistent capitalisation everywhere
  across the code and UI (except the config file unfortunately).
* Adds basic unit tests for Elastichsearch.
* Adds a Elasticsearch docker image to the Makefile to enable testing
  the Elasticsearch feature.
2017-07-07 15:36:17 +01:00
George Goldberg
0495a51949 PLT-6916: Redesign the jobs package and Jobserver. (#6733)
This commit redesigns the jobserver to be based around an architecture
of "workers", which carry out jobs of a particular type, and "jobs"
which are a unit of work carried by a particular worker. It also
introduces "schedulers" which are responsible for scheduling jobs of a
particular type automatically (jobs can also be scheduled manually when
apropriate).

Workers may be run many times, either in instances of the platform
binary, or the standalone jobserver binary. In any mattermost cluster,
only one instance of platform OR jobserver must run the schedulers. At
the moment this is controlled by a config variable, but in future will
be controlled through the cluster leader election process.
2017-07-07 15:21:02 +01:00
JoramWilander
15ad24d160 Minor fix 2017-07-06 17:28:38 -04:00
Saturnino Abril
279c7b7fda [PLT-6969] System console setting for the emoji picker (#6809)
* system console setting for the emoji picker

* remove state.emojiPickerEnable

* update url to /admin_console/customization/emoji
2017-07-06 08:48:34 +08:00
Harrison Healey
29b22f13c5 PLT-6975 Fixed image thumbnail size being calculated incorrectly (#6855) 2017-07-06 05:01:32 +08:00
George Goldberg
65289f26e7 Fix some duplicate message IDs in Bulk Importer. (#6850) 2017-07-05 07:49:30 -07:00
Joram Wilander
4219d39e97 Return channel member immediately if user is already in channel (#6847) 2017-07-05 09:06:55 -04:00
Chris
5bd60a4d1e add /search command (#6741) 2017-07-05 09:26:31 +08:00
Joram Wilander
8ec8948c84 PLT-6554 Add config setting to control enabling API version 3 (#6835)
* Add config setting to control enabling API version 3

* Update help text for APIv3 config setting (#6843)

* Update configuration_settings.jsx

* Update en.json
2017-07-04 16:12:02 -04:00
Harrison Healey
4bd7b68b24 PLT-6960 Only update post.EditAt when the message changes (#6840) 2017-07-04 15:17:54 -04:00
Christopher Speller
1858fba7d4 Removing unnessisary go routines to fix random test failure. (#6838) 2017-07-04 09:37:52 -04:00
Joram Wilander
f54aee1ef5 Add paging to the GET /emojis endpoint (#6802) 2017-07-03 23:58:02 -07:00
George Goldberg
171a788715 PLT-6951: Fix channel join slash command. (#6824)
Don't show an ephemeral message when the channel join succeeds. Just
redirect to the channel.
2017-07-03 07:54:59 -07:00
Jason Blais
ac2c91c507 Fix EnablChannelViewedMessages typo (#6822)
* Update config.json

* Update config.go

* Update config.go

* Update channel.go

* Update post.go

* Update diagnostics.go

* Update config.go
2017-07-03 09:01:14 -04:00