summaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeFilesLines
* Structured logging (#8673)Christopher Speller2018-04-272-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added additional unit tests for IE11 and compatibility mode (#8573)Harrison Healey2018-04-091-1/+4
|
* Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-1/+2
|\
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-132-12/+44
|\|
| * Removed mssola/user_agent library (#8417)Harrison Healey2018-03-121-5/+5
| | | | | | | | | | | | * Removed mssola/user_agent library * Changed user agent tests to use t.Run
| * [PLT-7574] Update and Simplify Compatibility Check and Replace UA Dependency ↵Alex Moon2018-03-062-12/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#7427) * Add fix to not run browser check on Mobile Browsers or the App * remove non safari and IE checks * Replace useragent checking dependency and update UA tests * change some wording * change dependancy again to one with compatible licence * Fix typos and clarify wording * fix typo and comvert tests to use array
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-0/+1
|\|
| * MM-8593 Default APIv3 to disabled for new installs (#8353)Joram Wilander2018-02-231-0/+1
| | | | | | | | | | | | | | | | * Default APIv3 to disabled for new installs * Add EnableAPIv3 setting to client config * Enable APIv3 for needed tests
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-191-0/+6
|\|
| * [PLT-539] Update incoming webhooks to accept multipart/form-data content (#7873)Carlos Tadeu Panato Junior2018-02-161-0/+6
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-1/+1
|\|
| * ABC-132: sign error page parameters (#8197)Chris2018-02-071-1/+1
| | | | | | | | | | | | * sign error page parameters * add comments
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-071-1/+4
|\|
| * Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only a handful of critical errors are present in the codebase. They all occur during server startup (in `app.StartServer()`). Currently, when one of these critical error occurs, it is simpled mentionned in the logs – then the error is discarded, and the app attempts to continue the execution (and probably fails pretty quickly in a weird way). Rather than continuing operations in an unknow state, these errors should trigger a clean exit. This commit rewrites critical startup errors to be correctly propagated, logged, and then terminate the command execution. Additionnaly, it makes the server return a proper error code to the shell.
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* Remove global config watcher (#8080)Chris2018-01-111-1/+4
| | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* PLT-8289 Added ability to change location of client plugins (#7942)Harrison Healey2017-12-051-1/+1
|
* Role refactor (#7867)Chris2017-11-211-1/+1
| | | | | | | | * role refactor * add missing file * fix web test
* refactor template code (#7860)Chris2017-11-201-2/+1
|
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-311-1/+1
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes
* Refactoring cfg refs and load / save functions (#7749)Chris2017-10-311-8/+4
| | | | | | * refactoring cfg refs and load / save functions * improve error output
* Remove more global refs / state (#7723)Chris2017-10-261-5/+5
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* Reduce utils.Cfg references (#7650)Chris2017-10-181-4/+4
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* parallel tests (#7629)Chris2017-10-161-2/+52
|
* Miscellaneous app cleanup (#7594)Chris2017-10-091-18/+15
| | | | | | | | | | | | * app cleanup * whoops, forgot a file * some minor cleanup * longer container deadline * defensive checks
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-4/+2
| | | | | | | | | | | | | | * don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
* remove global refs from api/api4 (#7496)Chris2017-09-222-7/+6
|
* Revert user_agent chanes made for PLT-959 #6945 to fix clients incorrectly ↵Alex Moon2017-09-212-49/+10
| | | | being given incompaibile message (#7497)
* PLT-7622 Improvements to server handling of webapp plugins (#7445)Joram Wilander2017-09-151-3/+23
| | | | | | | | * Improvements to server handling of webapp plugins * Fix newline * Update manifest function names
* Remove global app references (#7433)Chris2017-09-121-26/+19
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* Renaming repoChristopher Speller2017-09-062-10/+10
|
* app type transition (#7167)Chris2017-09-062-11/+11
|
* [PLT-959] Browser Compatibility (#6945)Alex Moon2017-09-062-12/+53
| | | | | | | | | | | | | | | | | | | | | | | | * Error page implimentation * Update Browser Compatibility check to check Chrome, FF, IE, Edge, and Safai * Update strings with proper edge version * undo uneeded changes and move to go template. * more unneeded additions * eliminate js and add local triangle * fix typo * Correct debug logging of browser version * Modify Browser Check to pass user_agent object only and write test. * Fix chrome version typo and correct testing change that broke chrome UA chack * simplity browser version detection by using maps instead of string splitting
* set to default value with config is missing (#7320)Saturnino Abril2017-08-301-1/+1
|
* PLT-7408 Move webhook handling into api4 package to fix EnableAPIv3 config ↵Joram Wilander2017-08-161-0/+2
| | | | | | | | setting (#7219) * Move webhook handling into api4 package to fix EnableAPIv3 config setting * Fix unit test
* PLT-6761 fixing unit tests (#6671)Corey Hulen2017-06-191-1/+1
|
* PLT-6471 Properly panic when translations can't be loaded (#6414)Harrison Healey2017-05-231-2/+4
| | | | | | | | | | * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-122-2/+2
| | | | | | | | | | | | * 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
* PLT-6198: Use added to channel system message on default channels. (#5969)George Goldberg2017-04-041-1/+1
| | | | Use a different sytem message when a user was added to a default channel by someone else than when they joined themselves.
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-1/+1
| | | | | | | | | | | | | | | | * 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
* Add more OAuth unit tests (#5946)enahum2017-04-031-139/+0
|
* PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-1/+1
|
* Move permissions code into app package (#5146)Joram Wilander2017-01-231-8/+11
| | | | | | * Move permissions code into app package * Revert getPosts permission
* Migrate functions to app package (#5106)Joram Wilander2017-01-191-1/+1
| | | | | | | | | | | | | | | | | | * Refactor and move session logic into app package * Refactor email functions into the app package * Refactor password update into app package * Migrate user functions to app package * Move team functions into app package * Migrate channel functions into app package * Pass SiteURL through to app functions * Update based on feedback
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-132-22/+24
| | | | | | | | | | * 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
* Disabling static directory listing (#4919)Christopher Speller2016-12-311-0/+4
|
* Improving command line interface (#4689)Christopher Speller2016-12-061-4/+3
|
* PLT-4357 adding performance monitoring (#4622)Corey Hulen2016-11-221-1/+1
| | | | | | | | | | | | | | | | | | * WIP * WIP * Adding metrics collection * updating vendor packages * Adding metrics to config * Adding admin console page for perf monitoring * Updating glide * switching to tylerb/graceful
* Fixing browser version checking. (#4493)Christopher Speller2016-11-081-1/+3
|