1. 11 Jul, 2018 1 commit
    • Santos Solorzano's avatar
      [MM-10117] Add support to add/delete and enable/disable plugins via CLI (#8745) · f57d279d
      Santos Solorzano authored
      * 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
      f57d279d
  2. 10 Jul, 2018 1 commit
  3. 09 Jul, 2018 1 commit
  4. 03 Jul, 2018 1 commit
  5. 25 Jun, 2018 1 commit
  6. 22 Jun, 2018 1 commit
  7. 21 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10370: serve subpath (#8968) · dd35ad43
      Jesse Hallam authored
      * factor out GetSubpathFromConfig
      
      * mv web/subpath.go to utils/subpath.go
      
      * serve up web, api and ws on /subpath if configured
      
      * pass config to utils.RenderWeb(App)?Error
      
      This allows the methods to extract the configured subpath and redirect
      to the appropriate `/subpath/error` handler.
      
      * ensure GetSubpathFromConfig returns trailing slashes deterministically
      
      * fix error 404 handling
      
      * redirect /subpath to /subpath/
      
      This is necessary for the static handler to match, otherwise none of the
      registered routes find anything. This also makes it no longer necessary
      to add trailing slashes in the root router.
      dd35ad43
  8. 14 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-10367: rewrite subpath assets on startup (#8944) · f1064171
      Jesse Hallam authored
      Examine ServiceSettings.SiteURL on startup and rewrite assets
      accordingly if not in a development environment.
      
      Also export `mattermost config subpath` command to manually do same.
      
      This accompanies a webapp PR to use the updated `root.html` to define
      the necessary webpack asset path for dynamically loading assets.
      f1064171
  9. 11 Jun, 2018 1 commit
  10. 06 Jun, 2018 1 commit
    • Jesse Hallam's avatar
      MM-6839: searching for paths relative to executable (#8915) · 0ba0af88
      Jesse Hallam authored
      * MM-6839: search relative to executable (#8853)
      
      * MM-6839: searching for paths relative to executable
      
      In addition to searching relative to the current working directory, also
      search relative to the location of the binary. This helps locate config
      and i18n files when invoking an absolute path to the mattermost binary.
      
      * MM-6839: find mattermost/ binary using utils.FindFile
      
      * add unit tests for utils.FindFile to exclude directories
      
      * fix filtering out directories in FindFile
      
      * fix platform invoking ./bin/mattermost
      0ba0af88
  11. 30 May, 2018 2 commits
  12. 29 May, 2018 3 commits
  13. 18 May, 2018 3 commits
  14. 17 May, 2018 3 commits
  15. 16 May, 2018 1 commit
    • Joram Wilander's avatar
      MM-8708 Remove api package (#8784) · 1f6c271b
      Joram Wilander authored
      * Remove api package
      
      * Remove api dependency from cmd package
      
      * Remove EnableAPIv3 setting
      
      * Update web tests
      
      * Add more websocket tests
      
      * Move some ws and oauth tests to api4 package
      
      * Move command tests into api4 package
      
      * Test fixes
      
      * Fix msg command test
      
      * Add some app file tests
      1f6c271b
  16. 14 May, 2018 1 commit
    • Joram Wilander's avatar
      Refactor context out of API packages (#8755) · 47250c66
      Joram Wilander authored
      * Refactor context out of API packages
      
      * Update function names per feedback
      
      * Move webhook handlers to web and fix web tests
      
      * Move more webhook tests out of api package
      
      * Fix static handler
      47250c66
  17. 11 May, 2018 1 commit
  18. 10 May, 2018 1 commit
  19. 27 Apr, 2018 1 commit
    • Christopher Speller's avatar
      Structured logging (#8673) · 686c2fba
      Christopher Speller authored
      * 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.
      686c2fba
  20. 18 Apr, 2018 1 commit
  21. 17 Apr, 2018 2 commits
  22. 14 Apr, 2018 1 commit
  23. 13 Apr, 2018 1 commit
  24. 12 Apr, 2018 1 commit
  25. 09 Apr, 2018 1 commit
  26. 04 Apr, 2018 1 commit
  27. 29 Mar, 2018 1 commit
  28. 23 Mar, 2018 1 commit
  29. 22 Mar, 2018 2 commits
    • Jesse Hallam's avatar
      Improved bulkload error handling (#8491) · 87762ae6
      Jesse Hallam authored
      * log the config file path used by the server on startup
      
      * return an err if the bulk import command fails
      
      * log the underlying errors that occur when importing
      
      The code assumed all errors meant a missing resource, but it's possible
      something else is at fault. Including the error helps pinpoint that more
      readily.
      87762ae6
    • Chris Duarte's avatar
      Timezone feature (#8185) · 74e703f5
      Chris Duarte authored
      * Add supported timezones into config
      
      Remove Timezone list creation in favor of timezone from configs
      
      Add Timezone field to Users table
      
      Clean up format of SupportedTimezones in config
      
      * Remove unwanted change
      
      * Add test for updating user timezone
      
      * Add empty map[string]string if Timezone is null
      
      * Add EnableTimezoneSelection config
      
      * Revert back to map[string]string for ClientConfig
      
      * Refactor SupportedTimezones into timezones.json
      
      * Include timezones.json in TestConfigFlag
      
      * Add timezone api endpoint
      
      * Bump varchar size to 256 and setMaxSize in user_store
      
      * Refactor LoadConfig to LoadConfig and LoadTimezoneConfig
      
      * Remove unnecessary argument in LoadConfig, mail_test
      
      * Add test for timezone endpoint
      
      * Add license header
      
      * Refactor timezones endpoint to system.go
      
      * Add system base route to timezone endpoint
      
      * db timezone upgrade in db v4.9
      
      * Avoid saving SupportedTimezones to config.json
      
      * Add timezonePath support in config
      
      * Remove EnableTimezoneSelection from config
      
      * Use return statement without return parameter
      
      * Refactor test for SupportedTimezones
      
      * Check for supportedTimezone != nil instead of using len
      
      * Decouple SupportedTimezones out of Config
      
      * Fix failing test
      
      * Add LastTeamIconUpdate back in upgrade.go
      
      * Write timezone config in config_flag_test
      
      * Add code fallback for default timezone support
      74e703f5
  30. 12 Mar, 2018 2 commits