OVERVIEW
Support Packet Generation tool will allow users to grab information about their Mattermost instance to provide to the support team to save the trouble for support asking manually for this information. It is in the hopes of increasing productivity and making the process of getting information from a customer faster and easier.
...
SPECIFICATIONS
High-level Architecture
Describe
Permissions
Any new permissions or changes to permissions
Schema
List schema changes
REST API
Server OS:
In golang, we can use runtime.GOOS
to get the operating system which the server is running on.
...
In elasticsearch.go in enterprise, in the Start() function, we are already getting the version and storing it in a variable called version
. It would be a matter of storing that in a new field called fullVersion
and writing a function which returns that since currently version
field is only storing the major version instead of the full version.
Elastic Search Plugins:
Is not currently implemented but a matter of implementing (following how the other elastic search endpoints are) The library we are using for Elastic Search (https://github.com/olivere/elastic )
already has this implemented (https://wwwgithub.elastic.cocom/guideolivere/enelastic/elasticsearch/reference/current/cat-plugins.htmlblob/v6.2.35/plugins.go#L24)
Log File:
Code Block | ||
---|---|---|
| ||
if *s.Config().LogSettings.EnableFile { logFile := utils.GetLogFileLocation(*s.Config().LogSettings.FileLocation) file, err := os.Open(logFile) // Write that file into the zip the user will download } |
...
Regarding debug level, check to see if their out logs to file is enabled and if the file log levels is set to debug. If not, then let’s show the message in the design to encourage them to enable it and set it to debug and try to recreate their issue to provide us with the most amount of information.
CLI
List CLI additions
Configuration
Webapp only
Mobile and Webapp
Performance
Will there be performance degradation or impact?
Plugins
CREDITS
Thanks to