Граф коммитов

10131 Коммитов

Автор SHA1 Сообщение Дата
Christopher Speller
5a2d46c6cb MM-11028 Adding some plugin tests. (#9103)
* Rearranging plugin mocks and moving some common test code out.

* Adding tests.

* Fixing tests after GoDoc cleanup changes.
2018-07-18 16:35:12 -07:00
Jesse Hallam
309a3dda60 Support server, deprecate backend in plugin manifest (#9127)
* Support `server`, deprecate `backend` in plugin manifest

This lets us converge on the use of the term `server` everywhere instead
of sometimes `backend` and sometimes `server`. We're still using
`webapp` and will eventually support `mobile` as well.

The plan is actually to rip out these deprecations as part of releasing
5.2, but I want to coordinate the extra additional breakage at the same
time, so for now this is a backwards compatible change.

* fix failing tests
2018-07-18 15:32:33 -07:00
Joram Wilander
cbd3fa4b3b Lock go-hclog and go-plugin dependencies to a revision (#9128) 2018-07-18 15:31:35 -07:00
Chris Duarte
3fcecd521a Support for Embeded chat (#9129)
* Add ucLive support

crazy testing

lovely logs

more cookie work arounds

Added Access-Control-Expose-Headers to user login

Add complete_saml_body template and revert loginWithSaml endpoint

Set Access-Control-Allow-Credentials to true in user login

Login via email instead of username

Clean up code

Add comment to give some context

Move faml logic into saml function

Communicate via chrome sendMessage api

Remove unused code

Add config to support multiple extensions

Clean up embedded complete_saml template

Fix indentation for templates

Added license header to extension.go

Add EnableExperimentalExtensions flag

Extension validated for email auth

Clean up api auth code

Remove complete_saml_body.html

* Add extension support in saml

* Clean up code

* Clean up extension validation
2018-07-18 14:56:38 -07:00
Elias Nahum
6b27b74f0c translations PR 20180718 (#9123) 2018-07-18 11:30:48 -04:00
Jason Blais
715de382d2 Update en.json (#9096) 2018-07-18 17:24:43 +02:00
Druhin Bala
301e7eb1c4 MM-10699 Add channel renaming to CLI (#9094) 2018-07-18 11:49:48 +01:00
Jesús Espino
b367b1ff40 Do not close the connection abruptly on too big file uploads (#9083) 2018-07-18 10:07:00 +02:00
Jesse Hallam
e718d2544f MM-11366: support a plugin bundle with multiple executables (#9121)
This avoids the need to distribute multiple plugins per architecture.
2018-07-17 15:47:05 -07:00
Joram Wilander
f2c1803905 Make plugin IDs case insensitive (#9117) 2018-07-16 16:56:55 -04:00
Joram Wilander
275731578e MM-10254 Add plugin APIs for getting/updating user statuses (#9101)
* Add plugin APIs for getting/updating user statuses

* Add and update tests

* Updates per feedback
2018-07-16 15:49:26 -04:00
Adrian
88eef609ab Merge consecutive text nodes when inspecting markdown (#9112)
* Fix assertion order

expected/actual were in wrong order, resulting in misleading output in
case of failing tests

* Merge consesutive markdown text nodes

This ensures that parser quirks such as "hello!" being parsed as
two separate nodes ("hello" and "!") are not exposed to code inspecting
a markdown strings.
2018-07-16 11:12:31 -04:00
Carlos Tadeu Panato Junior
940d0bbbc2 add pre-package plugins to the MM package (#9114) 2018-07-16 17:02:13 +02:00
George Goldberg
9d9fcd9ac5 MM-11172: Don't allow reacting in read-only town square. (#9106) 2018-07-16 13:04:52 +01:00
cpanato
10f571784b Merge remote-tracking branch 'upstream/release-5.1' into release-5.1-daily-merge-20180716 2018-07-16 10:00:19 +02:00
Chris Duarte
62c64594cc Add localized timestamp support for email notification (#8674)
* Add localized timestamp support for email notification

* Move localTime logic over to getFormattedPostTime
2018-07-13 14:10:34 -04:00
Jesse Hallam
17f211c393 MM-11292: clean up plugins GoDoc (#9109)
* clean up plugins GoDoc:

- eliminate plugin.NewBlankContext() as unnecessary
- export ValidIdRegex as a string vs. the less readable var
- add/update various documentation strings
- hide everything by default, except where used by client plugins or the mattermost-server. The exception to this rule are the `*(Args|Returns)` structs which must be public for go-plugin, but are now prefixed with `Z_` with a warning not to use.
- include a top-level example to get plugin authors started

This is not a breaking change for existing plugins compiled against
plugins-v2.

* remove commented out ServeHTTPResponseWriter

* update examples to match developer docs

* add missing plugin/doc.go license header
2018-07-13 10:29:50 -04:00
Joram Wilander
5ddb08dcb4 Avoid using app function so bulk loading does not fail when custom emojis are disabled (#9064) 2018-07-12 16:28:04 -04:00
Jason Blais
5499450224 Update privacy policy for v5.1 (#9102) 2018-07-12 20:40:18 +02:00
cpanato
adc56ae78d Merge remote-tracking branch 'upstream/release-5.1' into release-5.1-daily-merge-20180712 2018-07-12 19:50:16 +02:00
Pradeep Murugesan
8cad7070ac GH-6278 hasReactions flag is set to true only if the post contains reactions (#9053) 2018-07-12 11:32:26 -04:00
Jason Blais
d0c6834e1d Add telemetry for ServiceSettings.EnableEmailInvitations (#9105) 2018-07-12 07:21:29 -07:00
Daniel Schalla
efa954622c Enhance Log Output from Permanent Delete (#9044)
use structured logging

Missed Structured Log

Using Err for Errors in Structured Logging
2018-07-12 07:18:23 -07:00
Elias Nahum
2e861c4df4 translations PR 20180711 (#9099) 2018-07-11 20:12:02 +02:00
Santos Solorzano
f57d279dc0 [MM-10117] Add support to add/delete and enable/disable plugins via CLI (#8745)
* Testing caching for emojis

* MM-10117 Add support to add/delete and activate/deactivate plugins via CLI

* Removing old work

* MM-10117 Moved files and addedd plugin test

* MM-10117 Renamed commands to enable/disable and updated add test

* MM-10117 Finished plugin test and improved error message for plugin commands

* MM-10117 Fixing plugin directories for test

* MM-10117 Renamed commands and updated commands to support multiple plugins

* MM-10117 Updating removed to deleted textclear

* MM-10117 Fixing nil pointer error for listing plugins

* MM-10117 Removing fileReader close

* MM-10117 Declaring error for GetPlugins

* MM-10117 Removing unnecessary nil check
2018-07-11 12:17:19 -04:00
Adrian
e135cc99e1 Expose range information for markdown text nodes [WIP] (#9067)
* Track positions of markdown text

* Add tests for markdown text ranges
2018-07-11 12:12:46 -04:00
Pradeep Murugesan
06abe98ba9 GH-8964 enable notification for text and preText fields in Attachments (#9069) 2018-07-11 10:11:36 -04:00
Jesús Espino
5b63e87ab7 Deduplicating some code in app/status.go (#9095) 2018-07-11 21:56:35 +08:00
Elias Nahum
00abe3a136 push notifications follow teammate name display user or server setting (#9049)
* push notifications follow teammate name display user or server setting

* Feedback review
2018-07-11 15:01:49 +02:00
Carlos Tadeu Panato Junior
7ed712f938 Restore config after finisht the test case (#9085) 2018-07-11 12:58:16 +02:00
Jesse Hallam
7c08ff9986 MM-11241: fix context site url header (#9079)
* fix context's SiteURLHeader to use the subpath

This fixes various commands such as /open and /groupmsg, as well as
OAuth related redirects.

* MM-11246: also leverage GetSiteHeader() in completeSaml
2018-07-11 10:13:37 +02:00
JoramWilander
6c7dc2d29c Merge branch 'plugins-2' 2018-07-10 15:01:43 -04:00
cpanato
c042ffa460 Merge remote-tracking branch 'upstream/release-5.1' into release-5.1-daily-merge-20180710 2018-07-10 19:27:14 +02:00
JoramWilander
1e1a5e5e85 Merge branch 'master' into plugins-2 2018-07-10 12:51:07 -04:00
Carlos Tadeu Panato Junior
9470564d35 Add preparatory upgrade code for 5.2.0 (#9047) 2018-07-10 17:00:52 +02:00
Joram Wilander
6daf82073d Don't panic if plugin manifest does not have settings (#9086) 2018-07-10 07:52:57 -07:00
Carlos Tadeu Panato Junior
dccd95bc67 fix TestInvitePeopleProvider test (#9084) 2018-07-10 15:43:06 +02:00
Elias Nahum
0510580364 translations PR 20180709 (#9082) 2018-07-10 10:56:28 +02:00
George Goldberg
af615ffc24 MM-11229: Fix invite people slash command and add test case. (#9074) 2018-07-10 10:56:04 +02:00
George Goldberg
2d16a71af9 MM-11228: Fix channel update/patch API endpoints. (#9073) 2018-07-10 10:55:46 +02:00
Jesús Espino
602fd0ffdd MM-11189: Do not close the connection abruptly on too big emojis (#9071) 2018-07-10 10:55:24 +02:00
George Goldberg
2df818b9c6 MM-11227: Fix group msg slash command. (#9070) 2018-07-10 10:54:49 +02:00
Christopher Speller
74e5d8ae66 MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)
* Adding setting to disable email invitations.

* Adding a setting and rate limiting for email invite sending.

* Modifying email rate limit to 20/user/hour

* Adding EnableEmailInvitations to client side config and command.
2018-07-10 10:54:25 +02:00
George Goldberg
951e4ad984 MM-11174: Fix /msg slash command. (#9059) 2018-07-10 10:53:51 +02:00
Harrison Healey
28449dd95a Update custom url schemes error message to reflect what we actually support (#9061) 2018-07-09 19:32:42 +02:00
Christopher Speller
e3c26a0e89 Adding ability for plugin system to respect the defaults listed in the plugin manifest. (#9066) 2018-07-09 07:25:57 -07:00
Martin Kraft
8a02121767 MM-11110: Fixes CLI error message. (#9062) 2018-07-09 12:48:43 +02:00
Daniel Schalla
e8b8ef394b Blacklist System as Username (#9060)
adapted tests
2018-07-09 11:45:48 +01:00
George Goldberg
a840fc285b MM-11194: Fix channel header slash command. (#9057) 2018-07-08 11:27:13 +02:00
JoramWilander
b78b216a3c Merge branch 'master' into plugins-2 2018-07-07 12:04:18 -04:00