Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1068 in a recent build.
  1. #1
    Touch Premium Member lylepratt's Avatar
    Join Date
    Dec 2010
    Location
    Austin, Texas
    Posts
    159
    Vote Rating
    0
    lylepratt is on a distinguished road

      0  

    Default LocalStorage Proxy adds IDs on every Update

    LocalStorage Proxy adds IDs on every Update


    REQUIRED INFORMATION

    Ext version tested:
    • Sencha Touch 2 rev PR2
    Browser versions tested against:
    • Safari
    • Mobile Safari
    • Android Browser
    • Chrome
    DOCTYPE tested against:
    • HTML5 Doctype
    Description:
    • If you update an item in a localstorage proxy, a new ID is added to the IDs set when it is not supposed to.
    • This seems to happen because the code to add an ID is checking to see if the ID exists before adding it. But, the IDs in the localstorage returned by the 'getIds' function are STRINGS, whereas the ids normally provided to a local storage a INTs.
    Steps to reproduce the problem:
    • Create a storage with a localstorage proxy.
    • Set a model on a store that has an ID with the type "int".
    • Update an item in the local store and watch the ID you just added get duplicated.
    The result that was expected:
    • The update should not have created a new ID. It should have found the existing one.
    The result that occurs instead:
    • A new ID is added to the local store.
    HELPFUL INFORMATION
    It seems to only happen if your ID in the Model is a type="int".

    Possible fix:
    • On Line 32174 of sencha-touch-all-debug-w-comments.js in PR2 change the IF statement to the following:
    Code:
    if (id !== undefined && Ext.Array.indexOf(ids, String(id)) == -1) {
    I am just making sure that the ID provided is a string like it will be in the array of IDS provided by 'getIds()'
    Twitter: lylepratt

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report, we are in the middle of cleaning up a lot of data issues. I'll make sure this is part of that as well.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    66
    Vote Rating
    0
    dontbugme is on a distinguished road

      0  

    Default


    Just wanted to bump this, since this bug is still present in PR 3, thanks

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    The bump really does nothing, it's tracked in a separate system. We are aware that localstore has been broken during the preview and we're working through the entire data package.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Touch Premium Member lylepratt's Avatar
    Join Date
    Dec 2010
    Location
    Austin, Texas
    Posts
    159
    Vote Rating
    0
    lylepratt is on a distinguished road

      0  

    Default


    Great to hear Jamie. You guys are doing an awesome job!
    Twitter: lylepratt

  6. #6
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    This has been fixed as part of the next Touch 2.0 release. Thanks for the report.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi