Giter Club home page Giter Club logo

ext.ux.offlinesyncstore's People

Contributors

andrewmduncan avatar mcelotti avatar stuart98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ext.ux.offlinesyncstore's Issues

sql localProxy problem

Hi,
I've the app up and running and with localProxy set to localStorage eveything works as expected:

localProxy : {
    type : 'localstorage',
    id : 'offline-sync-store'
},

As soon as I change the localProxy to 'sql' it stops working and no tracking of changes takes place:

localProxy : {
    type : 'sql',
    id : 'offline-sync-store'
},

In the code it looks like localStorage is used anyway (localStorage.removeItem, localStorage.setItem), no matter the localProxy defined, I did not investigate too much though.
Is this working to somebody else?

Missing license

There is no license on GitHub, on the Sencha Market you are mentioning GPLv3 and Sencha license.

Could you maybe release this under MIT so people are able to use it in there own project and fix a few things?

Wrong POST url due to record.phantom

Once a new record has been saved to local db, the phantom property is set to false, as a consequence when you sync with server the phantom property is still false and the POST url has the record id in the path (ie POST /model/ext-record-123) which is wrong.

Marco

Only add items to the local store

Hi Andrew,

I'm working on a project. For this project we want to minimise data transfer between app/server.
We're implementing your offlineSyncStore for this reason.

I would like to know if it's possible to alter your code in a way so that if the server only sends new data, these new rows get added to the local store, instead of replacing them.

Now, when trying to accomplish this with the "loadServer" method, the local store items get removed if they're not present in the server call.

As you can imagine, this causes a lot of data transfer that isn't really necessary.

In an older version of the app we sent along the id's of the rows that were already synced, so only new rows were sent by the server. These rows were added to the local store. Sadly this wasn't a sencha project so i can't copy this.

The user can't make any changes on the device, so sync'ing the other way isn't necessary.

Any tips are appreciated!

No documentation of supported frameworks

Please add something like:

  Support for Sencha Touch 2.X.X till 2.2.1.

I was wondering why it did not work, till I looked into the source code and recognized that you only support Sencha Touch, but not Ext JS.

Syncing not working with rest proxy

Hey Andrew,

I am using your OfflineSyncStore for local storage its working gr8 with Ajax Proxy..thanx. But since we are hitting rest link we thought of using rest proxy and the syncing doesn't actually work with rest. Have you been through this? Any thought process that can help us on this issue?

Thanks
Thayappan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.