1. 27 Jul, 2018 1 commit
  2. 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
  3. 18 May, 2018 1 commit
    • Balasankar C's avatar
      MM-10640 Set EnableUserCreation to true by default (#8815) · d3ead7dc
      Balasankar C authored
      * Set EnableUserCreation to true by default
      
      * Fix argument type to FormatBool
      
      * Convert EnableUserCreation instances to pointer
      
      * Convert to boolean in tests also
      
      * Set value of pointer to be false
      
      * Convert remaining EnableUserCreation instances to pointer
      d3ead7dc
  4. 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
  5. 21 Mar, 2018 1 commit
    • Jesse Hallam's avatar
      Fix various segfaults when running `go test` manually (#8448) · 9d701c70
      Jesse Hallam authored
      * failing to find i18n shouldn't segfault
      
      The server was trying to handle the fact that it couldn't find the i18n
      directory, by emitting a translated log message...
      
      * fix utils.FindDir
      
      The attempts to find the directory in the parent or grandparent directory
      don't work if the current working directory was inside `enterprise`, with
      `enterprise` itself being a symlink as per the usual developer setup.
      
      Recurse to the root of the filesystem, cleaning the path along the way
      to work around this limitation (and allow tests to be run from an
      arbitrarily deep nesting level.)
      
      Fix corresponding usages to employ filepath.Join.
      
      * failing to find html templates shouldn't segfault
      
      * fail fast if the test user cannot be created
      
      * rework utils.FindDir to retain backwards compatibility
      9d701c70
  6. 12 Feb, 2018 1 commit
  7. 07 Feb, 2018 1 commit
  8. 12 Jan, 2018 1 commit
  9. 22 Dec, 2017 1 commit
  10. 01 Dec, 2017 1 commit
  11. 25 Oct, 2017 1 commit
    • Christopher Speller's avatar
      Performance improvements for 40M posts (#7708) · 4491b5ec
      Christopher Speller authored
      * Optimizing get root posts SQL query
      
      * Setting session invalidation to be reliable
      
      * Adding app reciever to SessionHasPermissionToUser
      
      * Adding app reciever to SessionHasPermissionToTeam
      
      * Adding app reciever to SessionHasPermissionTo
      
      * Clear session cache if permission was denied
      
      * Fixing rebase issues
      
      * Revert "Optimizing get root posts SQL query"
      
      This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7.
      
      * Fixing build
      4491b5ec
  12. 18 Oct, 2017 1 commit
    • Chris's avatar
      Reduce utils.Cfg references (#7650) · 8e19ba02
      Chris authored
      * app.UpdateConfig method
      
      * test fix
      
      * another test fix
      
      * the config override option as-was is just error prone, remove it for now
      
      * derp
      8e19ba02
  13. 22 Sep, 2017 1 commit
  14. 20 Sep, 2017 1 commit
  15. 18 Sep, 2017 1 commit
  16. 07 Sep, 2017 1 commit
  17. 06 Sep, 2017 2 commits
  18. 05 Sep, 2017 1 commit
  19. 28 Aug, 2017 1 commit
  20. 02 Aug, 2017 1 commit
  21. 10 Jul, 2017 1 commit
  22. 06 Jul, 2017 1 commit
  23. 23 May, 2017 1 commit
  24. 17 May, 2017 1 commit
  25. 25 Apr, 2017 1 commit
  26. 20 Apr, 2017 1 commit
    • Joram Wilander's avatar
      Implement v4 endpoints for OAuth (#6040) · be9624e2
      Joram Wilander authored
      * Implement POST /oauth/apps endpoint for APIv4
      
      * Implement GET /oauth/apps endpoint for APIv4
      
      * Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4
      
      * Refactor API version independent oauth endpoints
      
      * Implement DELETE /oauth/apps/{app_id} endpoint for APIv4
      
      * Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4
      
      * Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4
      
      * Implement POST /oauth/deauthorize endpoint
      be9624e2