summaryrefslogtreecommitdiffstats
path: root/app/command.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-10201: querystring for get slash commands (#8779)Jesse Hallam2018-05-141-3/+5
| | | | | | | | | | | | | | * 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
* Structured logging (#8673)Christopher Speller2018-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* MM-10232, MM-10259: Improve error handling from invalid json (#8668)Jesse Hallam2018-04-261-2/+3
| | | | | | | | | | | | | | * 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
* set from_webhook if a builtin slash command overrides username or icon (#8143)Chris2018-01-231-3/+9
|
* Add plugin slash command support (#7941)Chris2017-12-081-2/+22
| | | | | | | | * add plugin slash command support * remove unused string * rebase
* Add token to header for commands (#7841)Chris Duarte2017-11-241-0/+1
| | | | | | * add token to header for commands * Change Header value to Authorization: Token thecommandtoken
* HTTP client refactor (#7884)Chris2017-11-221-1/+1
| | | | | | * http client refactor * simplification
* PLT-7824 Added support for mentions with <@userid> and <!here> (#7615) (#7737)Joey Lee2017-11-171-0/+4
|
* more global config ref cleanup (#7802)Chris2017-11-091-83/+89
|
* Reduce utils.Cfg references (#7650)Chris2017-10-181-11/+11
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* PLT-7818 Updates to post type (#7579)Joram Wilander2017-10-091-0/+5
| | | | | | * Updates to post type * Update tests
* PLT-7218: CLI to move slash commands between teams. (#7574)George Goldberg2017-10-041-0/+10
|
* [PLT-7787] remove an extra ephemeral message posted for slash commands (#7572)Carlos Tadeu Panato Junior2017-10-041-1/+1
|
* PLT-7684 Add support to outgoing webhooks and slash commands to set post ↵Joram Wilander2017-09-281-0/+2
| | | | | | | | type and props (#7531) * Add support to outgoing webhooks and slash commands to set post type and props * Fix nil access
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-1/+1
|
* allow ephemeral command responses without text (#7478)Chris2017-09-191-4/+0
|
* remove more global references (#7442)Chris2017-09-141-2/+2
|
* Renaming repoChristopher Speller2017-09-061-2/+2
|
* app type transition (#7167)Chris2017-09-061-29/+29
|
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-1/+1
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* PLT-5745 Cleaning up duplicate calls (#7298)Corey Hulen2017-08-281-1/+1
| | | | | | | | * PLT-5745 Cleaning up duplicate calls * Fixing missing calls * Fixing broken test
* PLT-1649: add response_url support for custom slash commands (#6739)Chris2017-08-161-5/+9
| | | | | | | | | | * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix
* PLT-6358: Server HTTP client improvements (#6980)Chris2017-08-091-1/+1
| | | | | | | | | | | | | | | | * 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
* PLT-5705 Created a single source of http.Client creation logic with internet ↵Torsten Juergeleit2017-05-311-7/+1
| | | | proxy support, reasonable timeouts and optional insecure connections (#6503)
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * 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
* APIv4 PUT /commands/{command_id} (#5999)Saturnino Abril2017-04-071-0/+1
| | | | | | * APIv4 PUT /commands/{command_id} * update client parameter and api4 test
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-3/+3
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* implement GET /commands (#5865)Carlos Tadeu Panato Junior2017-04-031-1/+32
|
* Merge branch 'release-3.7' into master.George Goldberg2017-03-171-3/+3
|\
| * PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-2/+2
| |
* | Move command logic into app layer (#5617)Joram Wilander2017-03-131-0/+304
|/
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-0/+31
* 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