mattermost/plugin
Michael Kochell 005cc00ccc
[MM-23281] Persist registeredPlugin in plugin.Environment when plugin is deactivated (#14110)
* store failed timestamps on health check job instead of on registeredPlugin

Update test

* change EnsurePlugin calls

* Make env.SetPluginState private

* Write test for plugin deactivate and PluginStateFailedToStayRunning

* Add license comment

* adjust comments, use time.Since

* Additional PR feedback:

time.Since cleanup
test cleanup
remove duplicate .Store() call

* PR Feedback

- Add test case for reactivating the failed plugin
- Change `crashed` to `healthy` and `hasPluginCrashed` to `isPluginHealthy`
- remove stale timestamps from health check job

* Keep registeredPlugins in env when plugin is deactivated, so the crashed state of a plugin can be persisted.

* PR feedback

* PR feedback from Jesse

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
2020-03-31 21:20:22 -03:00
..
checker Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
interface_generator Fixing master (#13900) 2020-02-14 18:08:00 -05:00
plugintest MM-16819 Helper function to build path to plugin asset (#13626) 2020-03-10 12:41:29 +01:00
scheduler MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
api.go MM-17912: Allow searching for files through plugin API (#13647) 2020-02-14 16:21:54 -04:00
api_timer_layer_generated.go Fixing master (#13900) 2020-02-14 18:08:00 -05:00
client.go Revert "MM-16809: Added EnsureChannel Helper (#11852)" (#12314) 2019-09-24 13:48:33 -04:00
client_rpc.go MM-21626, MM-21627 - Plugin API/Hooks Prometheus instrumentati… (#13825) 2020-02-14 15:47:43 -05:00
client_rpc_generated.go MM-17912: Allow searching for files through plugin API (#13647) 2020-02-14 16:21:54 -04:00
context.go Adding interplugin communication. (#12829) 2019-11-04 17:35:58 -08:00
doc.go MM-11292: clean up plugins GoDoc (#9109) 2018-07-13 10:29:50 -04:00
environment.go [MM-23281] Persist registeredPlugin in plugin.Environment when plugin is deactivated (#14110) 2020-03-31 21:20:22 -03:00
example_hello_world_test.go MM-22679 - Update example plugin documentation (#13944) 2020-03-02 14:22:48 -05:00
example_help_test.go [MM-21378] Add mutex to model.Post to guard against race conditions on Post.Props (#13884) 2020-03-13 21:12:20 +01:00
hclog_adapter.go Update dependencies. (#13778) 2020-02-03 08:19:38 -08:00
health_check.go [MM-23281] Persist registeredPlugin in plugin.Environment when plugin is deactivated (#14110) 2020-03-31 21:20:22 -03:00
health_check_test.go [MM-23281] Persist registeredPlugin in plugin.Environment when plugin is deactivated (#14110) 2020-03-31 21:20:22 -03:00
helpers.go MM-16819 Helper function to build path to plugin asset (#13626) 2020-03-10 12:41:29 +01:00
helpers_bots.go [MM-21378] Add mutex to model.Post to guard against race conditions on Post.Props (#13884) 2020-03-13 21:12:20 +01:00
helpers_bots_test.go MM-19508 Extend ShouldProcessMessage to filter out from_webhoo… (#13270) 2019-12-19 20:52:41 +01:00
helpers_config.go plugin/helpers: fix an unchecked issue when comparing two conf… (#13748) 2020-01-29 20:41:25 +01:00
helpers_config_test.go plugin/helpers: fix an unchecked issue when comparing two conf… (#13748) 2020-01-29 20:41:25 +01:00
helpers_kv.go GH-12936 Add KVListWithOptions function to plugin.Helpers (#13576) 2020-02-17 15:44:34 -05:00
helpers_kv_test.go GH-12936 Add KVListWithOptions function to plugin.Helpers (#13576) 2020-02-17 15:44:34 -05:00
helpers_plugin.go MM-16819 Helper function to build path to plugin asset (#13626) 2020-03-10 12:41:29 +01:00
helpers_plugin_test.go IS-364: Bump golang build image. (#14134) 2020-03-25 12:36:06 +01:00
hooks.go [GH-14136] Document minimum server version required for plugin hooks (#14153) 2020-03-30 11:22:09 -07:00
hooks_timer_layer_generated.go MM-21626, MM-21627 - Plugin API/Hooks Prometheus instrumentati… (#13825) 2020-02-14 15:47:43 -05:00
http.go [MM-20723] Add golint for plugin package to golangci (#13090) 2019-12-05 20:31:53 +01:00
io_rpc.go add megacheck as makefile target (#9288) 2018-09-03 14:08:40 +02:00
stringifier.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
stringifier_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
supervisor.go MM-23261 plugin stderr debug logs (#14166) 2020-03-30 15:00:45 -03:00
supervisor_test.go MM-21626, MM-21627 - Plugin API/Hooks Prometheus instrumentati… (#13825) 2020-02-14 15:47:43 -05:00