Charles Birk
a755bcdde6
[MM-11860]: Expose slack attachment parsing functions in the model package ( #9351 )
...
Refactored parseSlackAttachment functions from https://github.com/mattermost/mattermost-server/blob/master/app/post.go#L312
into model/slack_attachments.go so that plugins have access to them.
2018-09-17 10:15:28 -04:00
alezakos
d585f9d9a3
MM-11895: Don't crush user-provided GET parameters on slash command URLs ( #9372 )
2018-09-11 15:58:57 -04:00
Harrison Healey
0027d99855
MM-11855 Add App.HTTPService to allow mocking of HTTP client ( #9359 )
...
* MM-11855 Add App.HTTPService to allow mocking of HTTP client
* Initialize HTTPService earlier
2018-09-07 09:24:18 -04:00
Jesse Hallam
a1656dffa9
MM-10201: querystring for get slash commands ( #8779 )
...
* pass GET slash command payloads through query string
Previously, both GET and POST requests received the payload via the
body, but this was incorrect for GET requests. Now, the payloads for GET
requests is sent via the query string.
* reorder tests for clarity
* switch command tests to use httptest servers
* restore original test command endpoints
2018-05-14 13:24:22 -04:00
Christopher Speller
686c2fbab7
Structured logging ( #8673 )
...
* Implementing structured logging
* Changes to en.json to allow refactor to run.
* Fixing global logger
* Structured logger initalization.
* Add caller.
* Do some log redirection.
* Auto refactor
* Cleaning up l4g reference and removing dependancy.
* Removing junk.
* Copyright headers.
* Fixing tests
* Revert "Changes to en.json to allow refactor to run."
This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026.
* Fixing some auto refactor strangeness and typo.
* Making keys more human readable.
2018-04-27 12:49:45 -07:00
Jesse Hallam
6d50d836f5
MM-10232, MM-10259: Improve error handling from invalid json ( #8668 )
...
* MM-10232: improve error handling from malformed slash command responses
Switch to json.Unmarshal, which doesn't obscure JSON parse failures like
json.Decode. The latter is primarily designed for streams of JSON, not
necessarily unmarshalling just a single object.
* rework HumanizedJsonError to expose Line and Character discretely
* MM-10259: pinpoint line and character where json config error occurs
* tweak HumanizeJsonError to accept err first
2018-04-26 11:19:25 -04:00
Chris
b34384dbad
set from_webhook if a builtin slash command overrides username or icon ( #8143 )
2018-01-23 11:26:31 -08:00
Chris
4c17bdff1b
Add plugin slash command support ( #7941 )
...
* add plugin slash command support
* remove unused string
* rebase
2017-12-08 13:55:41 -06:00
Chris Duarte
7ac35548c8
Add token to header for commands ( #7841 )
...
* add token to header for commands
* Change Header value to Authorization: Token thecommandtoken
2017-11-24 12:56:10 -05:00
Chris
77a1dc1f2f
HTTP client refactor ( #7884 )
...
* http client refactor
* simplification
2017-11-22 10:15:03 -05:00
Joey Lee
3836f99920
PLT-7824 Added support for mentions with <@userid> and <!here> ( #7615 ) ( #7737 )
2017-11-17 11:17:59 -05:00
Chris
10c5a927cb
more global config ref cleanup ( #7802 )
2017-11-09 14:46:20 -06:00
Chris
8e19ba029f
Reduce utils.Cfg references ( #7650 )
...
* app.UpdateConfig method
* test fix
* another test fix
* the config override option as-was is just error prone, remove it for now
* derp
2017-10-18 15:36:43 -07:00
Joram Wilander
9adaf53e11
PLT-7818 Updates to post type ( #7579 )
...
* Updates to post type
* Update tests
2017-10-09 10:30:48 -07:00
George Goldberg
f3fc6d11fa
PLT-7218: CLI to move slash commands between teams. ( #7574 )
2017-10-04 11:08:59 -07:00
Carlos Tadeu Panato Junior
35d56821ff
[PLT-7787] remove an extra ephemeral message posted for slash commands ( #7572 )
2017-10-04 09:11:08 -07:00
Joram Wilander
f263d2b951
PLT-7684 Add support to outgoing webhooks and slash commands to set post type and props ( #7531 )
...
* Add support to outgoing webhooks and slash commands to set post type and props
* Fix nil access
2017-09-28 09:08:16 -07:00
Chris
8c80cdde38
remove remaining Global() calls (outside of tests) ( #7521 )
2017-09-28 00:52:34 +08:00
Chris
7e4ff6adcc
allow ephemeral command responses without text ( #7478 )
2017-09-19 17:13:59 -05:00
Chris
b6fb98a431
remove more global references ( #7442 )
2017-09-14 13:01:44 -04:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Chris
1adfd0e9be
app type transition ( #7167 )
2017-09-06 17:12:54 -05:00
Chris
213a072b38
PLT-6403: Interactive messages ( #7274 )
...
* wip
* finish first pass
* requested changes
* add DoPostAction to Client4
2017-08-29 16:14:59 -05:00
Corey Hulen
1709b94227
PLT-5745 Cleaning up duplicate calls ( #7298 )
...
* PLT-5745 Cleaning up duplicate calls
* Fixing missing calls
* Fixing broken test
2017-08-28 10:08:37 -04:00
Chris
b122381e87
PLT-1649: add response_url support for custom slash commands ( #6739 )
...
* add response_url support for custom slash commands
* pr suggestions
* pr update / suggestion
* test fix
2017-08-16 08:17:57 -04:00
Chris
ffbf8e51fe
PLT-6358: Server HTTP client improvements ( #6980 )
...
* restrict untrusted, internal http connections by default
* command test fix
* more test fixes
* change setting from toggle to whitelist
* requested ui changes
* add isdefault diagnostic
* fix tests
2017-08-09 13:49:07 -07:00
Torsten Juergeleit
fdf1164aee
PLT-5705 Created a single source of http.Client creation logic with internet proxy support, reasonable timeouts and optional insecure connections ( #6503 )
2017-05-31 10:34:05 -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
a3f5cffd46
APIv4 PUT /commands/{command_id} ( #5999 )
...
* APIv4 PUT /commands/{command_id}
* update client parameter and api4 test
2017-04-07 10:06:09 -07: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
Carlos Tadeu Panato Junior
88b8df3146
implement GET /commands ( #5865 )
2017-04-03 08:12:50 -04:00
George Goldberg
7f266c1951
Merge branch 'release-3.7' into master.
2017-03-17 16:29:26 +00:00
Joram Wilander
e9c6cc269b
Move command logic into app layer ( #5617 )
2017-03-13 09:23:16 -04:00
Harrison Healey
a8e68bd890
PLT-5765 Passed SiteURL to SendNotifications ( #5705 )
2017-03-10 10:18:18 +00: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