summaryrefslogtreecommitdiffstats
path: root/app/app.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove global site url (#8343)Chris2018-02-221-0/+2
| | | | | | | | * remove global site url * missed one * revert mysterious change
* Add tests for the `platform server` command (#8231)Pierre de La Morinerie2018-02-121-2/+9
| | | | | | | | | | | | | | | | | | | | * Cleanup app state on initialization error When returning an initialization error, the app state was not cleaned up. This is especially visible during tests, as `appCount` is not decremented, and makes the new app initialization fail. * Test the `platform server` command As the `platform server` command only exits when interrupted by a signal, it is not possible to test it as the other cobra commands. Instead we directly test the actual command function. The internal command handler is slighly refactored to take a channel in argument, and registers it as the signal handler. Nothing very different—except than controlling this channel from the outside allows the test to send the system signal itself, thus preventing the server to run forever.
* Remove license globals entirely (#8229)Chris2018-02-091-11/+13
| | | | | | | | * remove license globals entirely * fix infinite recursion * test fix
* Eliminate utils.SetLicense calls (#8217)Chris2018-02-071-0/+3
| | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
* ABC-132: sign error page parameters (#8197)Chris2018-02-071-8/+14
| | | | | | * sign error page parameters * add comments
* Remove global cfg vars (#8099)Chris2018-01-121-12/+18
| | | | | | * remove global cfg vars * enterprise update
* Remove global config watcher (#8080)Chris2018-01-111-48/+14
| | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-081-1/+1
|
* Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-051-2/+59
| | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* Add plugin slash command support (#7941)Chris2017-12-081-0/+4
| | | | | | | | * add plugin slash command support * remove unused string * rebase
* PLT-7503: Create Message Export Scheduled Task and CLI Command (#7612)Jonathan2017-11-301-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Created message export scheduled task * Added CLI command to immediately kick off an export job * Added email addresses for users joining and leaving the channel to the export * Added support for both MySQL and PostgreSQL * Fixing gofmt error * Added a new ChannelMemberHistory store and associated tests * Updating the ChannelMemberHistory channel as users create/join/leave channels * Added user email to the message export object so it can be included in the actiance export xml * Don't fail to log a leave event if a corresponding join event wasn't logged * Adding copyright notices * Adding message export settings to daily diagnostics report * Added System Console integration for message export * Cleaned up TODOs * Made batch size configurable * Added export from timestamp to CLI command * Made ChannelMemberHistory table updates best effort * Added a context-based timeout option to the message export CLI * Minor PR updates/improvements * Removed unnecessary fields from MessageExport object to reduce query overhead * Removed JSON functions from the message export query in an effort to optimize performance * Changed the way that channel member history queries and purges work to better account for edge cases * Fixing a test I missed with the last refactor * Added file copy functionality to file backend, improved config validation, added default config values * Fixed file copy tests * More concise use of the testing libraries * Fixed context leak error * Changed default export path to correctly place an 'export' directory under the 'data' directory * Can't delete records from a read replica * Fixed copy file tests * Start job workers when license is applied, if configured to do so * Suggestions from the PR * Moar unit tests * Fixed test imports
* HTTP client refactor (#7884)Chris2017-11-221-0/+39
| | | | | | * http client refactor * simplification
* Role refactor (#7867)Chris2017-11-211-0/+8
| | | | | | | | * role refactor * add missing file * fix web test
* refactor template code (#7860)Chris2017-11-201-1/+17
|
* Reorganize file util functionality (#7848)Chris2017-11-161-2/+28
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* fix config cli option (#7850)Chris2017-11-161-10/+13
|
* fix builtin plugin http router (#7797)Chris2017-11-061-0/+1
|
* invoke config listeners when app.UpdateConfig is used (#7773)Chris2017-11-031-0/+2
|
* PLT-8086 Fix plugin config watcher for enabling and disabling (#7770)Joram Wilander2017-11-031-0/+3
| | | | | | | | * Fix plugin config watcher for enabling and disabling * Make sure HTTP routes are served * Set content-type explicitly
* Refactoring cfg refs and load / save functions (#7749)Chris2017-10-311-0/+19
| | | | | | * refactoring cfg refs and load / save functions * improve error output
* Remove more global refs / state (#7723)Chris2017-10-261-2/+12
| | | | | | | | | | * 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-5/+5
| | | | | | | | | | | | * 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/+6
|
* Miscellaneous app cleanup (#7594)Chris2017-10-091-18/+47
| | | | | | | | | | | | * app cleanup * whoops, forgot a file * some minor cleanup * longer container deadline * defensive checks
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-36/+20
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* Goroutine wranglin (#7556)Chris2017-10-031-8/+45
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* PLT-7705: API to get data retention policy. (#7539)George Goldberg2017-10-021-6/+15
| | | | | | * PLT-7705: API to get data retention policy. * Fix review comments.
* Don't use global app for api / api4 tests (#7528)Chris2017-10-021-1/+33
| | | | | | | | | | | | | | * 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 jobs.Srv and other jobs-related globals (#7535)Chris2017-09-291-1/+44
|
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-0/+5
|
* PLT-7542 Converting LDAP sync to the job server (#7452)Corey Hulen2017-09-251-2/+0
| | | | | | | | | | | | | | | | | | | | * PLT-7542 Converting LDAP sync to the job server * Fixing minor issues * Fixing build failure * Translate error message * Translate error message * Translate error message * Translate error message * Fixing merge * Fixing bad merge
* remove more global refs (#7480)Chris2017-09-211-9/+85
|
* remove einterface gets (#7455)Chris2017-09-191-1/+27
|
* fix plugin test (#7436)Chris2017-09-121-2/+3
| | | | | | | | | | | | * fix plugin test * ugh. global state * Fix plugin test * Fix TestDeleteChannel * Remove plugin config listener when shutting down
* PLT-7407: Back-end plugins (#7409)Chris2017-09-111-1/+4
| | | | | | | | | | | | * tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory
* app type transition (#7167)Chris2017-09-061-0/+10
|
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * 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
* More app code migration (#5170)Joram Wilander2017-01-251-0/+16
* Migrate admin functions into app package * More user function refactoring * Move post functions into app package