List Info

Thread: Fix for bug 10486: MDE: Please review this commit to




Fix for bug 10486: MDE: Please review this commit to
user name
2007-08-16 01:16:40
Travis,

Wow, this is a pretty big hole to have gone unnoticed.

Your fix would indeed work perfectly well for all successful
edits.

However we have code that restores the lozenge to its
original state in 
the case of server-side edit failures. Your code was
removing the 
lozenge before any response actually came back from the
server, so that 
fallback would not have worked for these types of edits.

I'm committing a more complete fix that allows the fallback
to work, and 
has the added benefit of just putting the lozenge into
'processing' 
until the server-side operation actually finishes, and then
makes the 
lozenge go poof -- which gives the user an accurate picture
of when the 
edit is really done.

Thanks for flagging me on this.


Matthew

svncheckinosafoundation.org wrote:
> Revision
>     5424 <http://cvs.osafoundation.org/viewcvs.cgi?rev=5
424&view=rev>
> Author
>     travis
> Date
>     2007-08-15 20:12:33 -0700 (Wed, 15 Aug 2007)
> 
> 
>       Log Message
> 
> Fix for bug 10486 
> < -690,7 +690,11 
>                  self.setSelectedCalItem(ev);
>                  break;
>              case 'save':
> -                setLozengeProcessing(cmd);
> +                if (cmd.data.data.getEventStamp()){
> +                    setLozengeProcessing(cmd);
> +                } else {
> +                    removeEvent(cmd.data);
> +                }
>                  // Do nothing
>                  break;
>              case 'saveFailed':
>  -725,7 +729,9 
>                  }
>                  break;
>              case 'saveSuccess':
> -                saveSuccess(cmd);
> +                if (cmd.data.data.getEventStamp()){
> +                    saveSuccess(cmd);
> +                }
>                  break;
>              case 'remove':
>                  // Show 'processing' state here
> 
> 
>
------------------------------------------------------------
------------
> 
> _______________________________________________
> Commits-Cosmo mailing list
> Commits-Cosmoosafoundation.org
> http://lists.osafoundation.org/cgi-bin/mail
man/listinfo/commits-cosmo

_______________________________________________
cosmo-dev mailing list
cosmo-devlists.osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo-d
ev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )