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.

Arya Asemanfar's latest activity

Saturday, October 09 2010
3502 Reloading a new record results in an inconsistent state was updated in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar commented at 10:20 PM

    I don't disagree. In fact that solution was stated in my original ticket. The reason I patched it the way I did was because my particular use case needed me to ...

Thursday, June 24 2010
3251 Dirty attributes use inconsistent accessors for before/after was updated in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar commented at 5:26 PM

    I can understand not wanting to have the old value be in the unserialized form, but why can't the new value be the raw value as well?

Sunday, May 16 2010
3502 Reloading a new record results in an inconsistent state was updated in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar commented at 7:14 PM

    Patch doesn't apply anymore because the relevant code was moved from base.rb to persistence.rb, but the problem still exists. I just tried the test on master an...

Monday, January 18 2010
3502 Reloading a new record results in an inconsistent state was updated in Ruby on Rails
  • Arya Asemanfar
    • Tag changed from activerecord, reloading to activerecord, patch, reloading
    • Assigned user set to Jeremy Kemper
    by Arya Asemanfar at 1:30 AM

    Here is a patch and test for this ticket.

    My earlier comment cleared the assigned user because I had loaded the form before it was assigned, so I'm assigning it...

Sunday, January 17 2010
3424 [PATCH] Double loading associations when using preload and an identity map was updated in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar commented at 8:57 AM

    Here is a patch for a test as described above. It's not the same situation as described in the original ticket, but it does break the same assumption that cause...

  • Arya Asemanfar
    Arya Asemanfar commented at 8:22 AM

    To create a failing test, there would have to be an identity map or the test would have to override AR's instantiate method to shim in identity behavior.

    To cla...

Sunday, November 22 2009
3502 Reloading a new record results in an inconsistent state was updated in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar commented at 7:54 AM

    I should clarify that the ID column is not an auto-increment column.

  • Arya Asemanfar
    • Assigned user cleared.
    by Arya Asemanfar at 7:52 AM

    @matt Facebook application, we use their facebook user id as the id column. When you interact with a friend on the app, their record is created by their ID.

  • Arya Asemanfar
    Arya Asemanfar created the ticket at 4:13 AM

    If there is a race to create a new record for the same ID, and you try to reload, the resulting record is in an inconsistent state.

    For example, if two processe...

Sunday, October 25 2009
3424 Double loading associations when using preload and an identity map was created in Ruby on Rails
  • Arya Asemanfar
    Arya Asemanfar created the ticket at 1:44 AM

    I'll start off by saying this bug is not reproducible without the use of an in-process identity map plugin. Given that, the bug is in the way ActiveRecord choos...