1. 09 Mar, 2018 1 commit
    • Stephen Kiers's avatar
      MM-9274- Sort Users in Channel by status (#8181) · 302dae5b
      Stephen Kiers authored
      * sort by lastActivity
      
      * added status ordering to Users
      
      * sort offline before dnd
      
      * remove data not needed
      
      * added seperate call for when order=‘status’ is on GetUser request
      
      * remove PrintLn
      
      * styling fix
      
      * remove mistake
      
      * mistake 2
      
      * better comment
      
      * explicit if statemnt
      
      * writing tests
      
      * removed manually added mocks
      
      * generated mock
      
      * ICU-668 Added unit tests
      
      * style fix
      
      * sort by lastActivity
      
      * added status ordering to Users
      
      * sort offline before dnd
      
      * remove data not needed
      
      * added seperate call for when order=‘status’ is on GetUser request
      
      * remove PrintLn
      
      * styling fix
      
      * remove mistake
      
      * mistake 2
      
      * better comment
      
      * explicit if statemnt
      
      * writing tests
      
      * removed manually added mocks
      
      * generated mock
      
      * ICU-668 Added unit tests
      
      * style fix
      
      * reverse dnd and offline
      
      * Fixed app.SaveStatusAndBroadcast
      
      * Fixed incorrect merge
      
      * Fixing incorrect merge again
      302dae5b
  2. 12 Feb, 2018 1 commit
  3. 07 Feb, 2018 1 commit
    • Pierre de La Morinerie's avatar
      Abort on critical error during server startup (#8204) · 809a1645
      Pierre de La Morinerie authored
      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.
      809a1645