Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Bogdan Gusiev's latest activity

Friday, May 13 2011
6779 ActiveSupport::TimeWithZone in Range performance bug was created in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev created the ticket at 8:28 AM

    We discovered that some operations on the Range class of ActiveSupport::TimeWithZone is slow.

    Example:

    (10.days.ago..3.days.ago).min
    

    Will have more than 5 sec...

Tuesday, February 08 2011
5742 Migrations rollback in production environment was updated in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev commented at 9:43 AM

    Test and patch.

  • Bogdan Gusiev
    • State changed from stale to open
    by Bogdan Gusiev at 8:54 AM

    [state:open]

    Yes, I think this is important feature for rails.

    It is connected with production releases and complex migrations when the data should be changed s...

Sunday, December 12 2010
6154 Interpolated association conditions and Eager loading was updated in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev commented at 1:47 PM

    Simple test to demonstrate the issue.

  • Bogdan Gusiev
    Bogdan Gusiev created the ticket at 1:41 PM

    Suppose we have association like this:

    has_one :company_relation, :foreign_key => :company_id, :primary_key => :company_id,
      :conditions => 'company_relations...
Thursday, September 30 2010
5742 Migrations rollback in production environment was created in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev created the ticket at 2:32 PM

    Let's say we have batch of migrations in new production deployment.
    One migration fails by some reason and deployment didn't occur.

    In this case it would be gre...

Sunday, September 05 2010
5556 before_validation callback affected by rollback if validation failed was updated in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev commented at 12:09 PM

    Test that demonstrate the issue

  • Bogdan Gusiev
    Bogdan Gusiev created the ticket at 12:07 PM

    When I tryed to do some actions that interact with database in before_validation callback - they were rollback if validation failed.

    Simple code to demonstrate ...

Tuesday, August 31 2010
4887 has_many through belongs_to association bug was updated in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev commented at 7:14 PM

    Hi Andrew,

    That bug is truly fixed.
    Seems there was more general change that fixed this bug in recent patches.

    I can“t reproduce it in Rails 3.0 but it is in 2....

Saturday, June 26 2010
4887 has_many through belongs_to association bug was updated in Ruby on Rails
  • Bogdan Gusiev
    Bogdan Gusiev commented at 7:30 PM

    Hey Andrew,

    Thanks for taking care about this.

    I have fixed the bug by redefining costruct_scope method and return "empty" scope in case of nil association.
    {:f...