1. 27 Jun, 2011 1 commit
  2. 19 Jun, 2011 1 commit
  3. 03 Jun, 2011 1 commit
  4. 01 Jun, 2011 2 commits
  5. 05 May, 2011 2 commits
    • Evan Prodromou's avatar
      78a9d496
    • Evan Prodromou's avatar
      Option to pre-load a plugin with checkschema script · f8c34582
      Evan Prodromou authored
      One of the problems we've had with running large-scale hosting systems
      for StatusNet is enabling new plugins. If the plugin is not enabled,
      its database tables are not checked at script time. Conversely, if it
      is enabled, it may take several hours to run checkschema for tens of
      thousands of sites -- during which time users might see DB errors.
      
      A new argument to checkschema lets it pre-load one or more plugins
      before checking the schema. This lets us prepare the plugins' database
      tables before they're used in production. In a multihome environment,
      this can be combined with tags to gradually roll out a new plugin.
      
      In the config file, a stanza like:
      
         $site = Status_network::getFromHostname(...);
      
         if ($site->hasTag('fooenabled')) {
            addPlugin('Foo');
         }
      
      ...will only enable the plugin on certain sites. Meanwhile, a bash
      script like this should gradually enable the plugin:
      
         # For all sites...
         for site in `php allsites.php`; do
             # Update the schema for the Foo plugin
             php checkschema.php -s$site.wildcard -xFoo;
             # Enable the Foo plugin
             php settag.php -s$site.wildcard fooenabled;
         done
      f8c34582
  6. 26 Apr, 2011 1 commit
  7. 12 Apr, 2011 1 commit
  8. 11 Apr, 2011 1 commit
  9. 07 Apr, 2011 1 commit
  10. 03 Apr, 2011 1 commit
  11. 26 Mar, 2011 5 commits
  12. 25 Mar, 2011 1 commit
  13. 22 Mar, 2011 1 commit
    • Evan Prodromou's avatar
      Mass replacement of #-comments with //-comments · 83fb5e60
      Evan Prodromou authored
      like leprous boils in our code. So, I've replaced all of them with //
      comments instead. It's a massive, meaningless, and potentially buggy
      change -- great one for the middle of a release cycle, eh?
      83fb5e60
  14. 16 Mar, 2011 1 commit
  15. 25 Feb, 2011 1 commit
    • Brion Vibber's avatar
      Scalability work on user backup stream generation. · 55b1f3d8
      Brion Vibber authored
      UserActivityStream -- used to create a full activity stream including subscriptions, favorites, notices, etc -- normally buffers everything into memory at once. This is infeasible for accounts with long histories of serious usage; it can take tens of seconds just to pull all records from the database, and working with them all in memory is very likely to hit resource limits.
      This commit adds an alternate mode for this class which avoids pulling notices until during the actual output. Instead of pre-sorting and buffering all the notices, empty spaces between the other activities are filled in with notices as we're making output. This means more smaller queries spread out during operations, and less stuff kept in memory.
      
      Callers (backupaccount action, and backupuser.php) which can stream their output pass an $outputMode param of UserActivityStream::OUTPUT_RAW, and during getString() it'll send straight to output as well as slurping the notices in this extra funky fashion.
      Other callers will let it default to the OUTPUT_STRING mode, which keeps the previous behavior.
      
      There should be a better way to do this, swapping out the stringer output for raw output more consitently.
      55b1f3d8
  16. 19 Jan, 2011 1 commit
  17. 17 Jan, 2011 1 commit
  18. 16 Jan, 2011 2 commits
  19. 08 Jan, 2011 2 commits
  20. 03 Jan, 2011 1 commit
  21. 17 Dec, 2010 1 commit
  22. 15 Dec, 2010 1 commit
  23. 02 Dec, 2010 1 commit
    • Brion Vibber's avatar
      Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels · aa96c3c1
      Brion Vibber authored
      common_shorten_links() can only access the web session's logged-in user, so never properly took user options into effect for posting via XMPP, API, mail, etc.
      
      Adds an optional $user parameter on common_shorten_links(), and a $user->shortenLinks() as a clearer interface for that.
      Tweaked some lower-level functions so $user gets passed down -- making the $notice_id param previously there for saving URLs at notice save time generalized a little.
      
      Note also ticket #2919: there's a lot of duplicate code calling the shortening, checking the length, and reporting near-identical error messages. These should be consolidated to aid in code and translation maintenance.
      aa96c3c1
  24. 30 Nov, 2010 2 commits
  25. 22 Nov, 2010 1 commit
    • Brion Vibber's avatar
      Fixes for delete_status_network.sh: · 9c6e63b0
      Brion Vibber authored
      * add some sanity checking: abort on failures instead of plodding through
      * add some progress / error output
      * fetch the target database server name from the status_network entry and use that to target the DROP DATABASE
      
      Note that database names and other overrides in status_network entry may still not be seen.
      9c6e63b0
  26. 18 Nov, 2010 1 commit
  27. 15 Nov, 2010 1 commit
  28. 02 Nov, 2010 1 commit
  29. 29 Oct, 2010 3 commits