Opened 12 years ago

Closed 11 years ago

#5987 closed enhancement (fixed)

[patch][cla] ServiceStore - dojo.data implementation for dojox.rpc.Service instances

Reported by: kriszyp Owned by: Dustin Machi
Priority: high Milestone: 1.2
Component: Dojox Version: 1.0
Keywords: rpc data Cc:
Blocked By: Blocking:

Description (last modified by kriszyp)

ServiceStore? and it's subclasses are a dojo.data implementation for dojox.rpc.Service instances. Fetches are routed through the service and the returned results are used as the data behind the API. ServiceStore? also has a subclass JsonRestStore?, which provides read/write capabilities using the Rest service in dojox.rpc.Rest. JsonRestStore? has two subclasses, PersevereRestStore? and CouchDBStore, which have adjustments for minor differences in handling certain behavior for these two Json Rest storage systems. JsonRestStore? relies on dojox.rpc.JsonReferencing? to handling indexing and reference resolving. This allows indexing, reference resolving, and lazy loading capabilities to be usable from any RPC service independent of dojo.data implementations. Alternate referencing schemes could also be created and used with the same data stores and services. ServiceStore? does not require JsonReferencing?, but if it is included, ServiceStore? will support lazy loading.

Attachments (1)

rest.diff (47.3 KB) - added by kriszyp 11 years ago.
Service and REST Stores

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by dylan

Milestone: 1.11.2
Summary: ServiceStore - dojo.data implementation for dojox.rpc.Service instances[patch][cla] ServiceStore - dojo.data implementation for dojox.rpc.Service instances

comment:2 Changed 11 years ago by guest

Hi, I guess this should probably be a stand-alone bug, but since this piece is so new, I wasn't sure if I should bother since you might still be dev'ing it. Anyway, there is a naming issue that causes a 404 not found error for PersevereRestStore.js. Here are the details:

2008-05-03 nightly build

  • PersevereRestStore.js is found in dojox/rpc in this build. However, within itself it is declaring & providing itself as dojox/data
  • Additionally, the tests in rpc/tests are trying to load the file from dojox/data, rather than dojox.rpc.
  • Looks like someone moved the files & didn't fix the declares/provides/requires....this manifests with a 404 http error trying to get the file dojox/data/PersevereRestStore.js if you run test_dojo_data_model_persevere.html.

Thanks ... let me know if I should open a bug for this type of thing in the future...

Dylan Tynan dtynan@…

comment:3 Changed 11 years ago by guest

Ugh... try again: dtynan@gmail.com

comment:4 Changed 11 years ago by kriszyp

Description: modified (diff)

This patch is dependent on http://trac.dojotoolkit.org/ticket/6463

Changed 11 years ago by kriszyp

Attachment: rest.diff added

Service and REST Stores

comment:5 Changed 11 years ago by Bryan Forbes

Resolution: fixed
Status: newclosed

(In [13844]) fixes #5987, fixes #6463 !strict

  • Applying Kris Zyp's (cla on file) patches for RPC and RESTful Stores.
Note: See TracTickets for help on using tickets.