Opened 7 years ago

Closed 7 years ago

#15199 closed defect (wontfix)

dojox.data.JsonRestStore DELETE and GET fired simultaneously

Reported by: PieterMX Owned by: Kris Zyp
Priority: undecided Milestone: tbd
Component: DojoX Data Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

While using dojox.data.JsonRestStore? with dojox.grid.EnhancedGrid? I noticed a small bug when deleting rows from the table:

When deleting multiple rows (lets say 20) the store fires the necessary DELETE requests to the REST server. At the same time, it also fires a GET request to get the updated data from the REST server. However, since not all DELETE requests are finished before the GET request is, the store (and grid) might end up with rows which actually have been deleted.

When the user tries to delete the rows again, a 404 error is returned from the REST server (which is OK, since the row has been deleted after all).

A simple fix would be to (optionally, by a variable) delay the GET request until all DELETE requests have been finished. The same might apply to POST/PUT requests, but I've not tested this yet.

Change History (1)

comment:1 Changed 7 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at https://github.com/kfranqueiro/dojo-smore.

Note: See TracTickets for help on using tickets.