1. 05 May, 2011 1 commit
    • 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
  2. 29 Oct, 2010 1 commit
  3. 30 Nov, 2009 1 commit
  4. 01 Oct, 2009 1 commit
  5. 25 Aug, 2009 2 commits
  6. 22 Jun, 2009 1 commit
  7. 20 Jun, 2009 2 commits
  8. 23 Dec, 2008 1 commit
    • Evan Prodromou's avatar
      replace all tabs with four spaces · edbc0c66
      Evan Prodromou authored
      The PEAR coding standards decree: no tabs, but indent by four spaces.
      I've done a global search-and-replace on all tabs, replacing them by
      four spaces. This is a huge change, but it will go a long way to
      getting us towards phpcs-compliance. And that means better code
      readability, and that means more participation.
      
      darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
      edbc0c66
  9. 06 Sep, 2008 1 commit
  10. 13 Aug, 2008 1 commit
  11. 09 Jul, 2008 1 commit
  12. 07 Jul, 2008 1 commit
  13. 04 Jul, 2008 1 commit
    • Gina Haeussge's avatar
      Validate action parameter · e3e047b2
      Gina Haeussge authored
      Make sure the action request parameter only consists of a-z, A-Z, 0-9, _ or -
      to discourage tampering with the following require_once.
      
      darcs-hash:20080704194114-2b4f5-2bec30d7d40d7c7bd2c747ef3c805dbf720f6159.gz
      e3e047b2
  14. 22 Jun, 2008 1 commit
    • Evan Prodromou's avatar
      remove check immediate · a69dbe7c
      Evan Prodromou authored
      After getting a lot of problems and bugs with this, I'm removing the
      check_immediate code. Instead, I'm going to add this functionality in
      JavaScript. I think that's a preferred practice, anyways.
      
      darcs-hash:20080622173341-34904-3c406ca9a33dbe3afeacebef1a63d0dd101669c4.gz
      a69dbe7c
  15. 19 Jun, 2008 1 commit
  16. 20 May, 2008 1 commit
    • Evan Prodromou's avatar
      trim whitespace · 52600ce0
      Evan Prodromou authored
      darcs-hash:20080520191412-84dde-a607dbe848279639630edd1ab4616d05cc2318d1.gz
      52600ce0
  17. 19 May, 2008 1 commit
    • Evan Prodromou's avatar
      better headers · 749178f3
      Evan Prodromou authored
      Added H1 headers to all pages. Added H2 headers to sections of pages,
      where appropriate.
      
      Moved a lot of TODOs around.
      
      Made the public stream the default if no action is specified.
      
      darcs-hash:20080519141219-84dde-f9917a8351596060faa7ff5d231417773764a8fd.gz
      749178f3
  18. 17 May, 2008 4 commits
  19. 14 May, 2008 3 commits
  20. 07 May, 2008 1 commit