-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
offline database #611
Comments
http://pouchdb.com/ might be a cool way to do this. It would require us to use couchdb on the server, however. But, we do want to have our own store of the GitHub data anyways. There are probably other options--and we should explore them--but I think this would also benefit people who have slow connections to GitHub (cc @karlcow). |
(this might make a cool hack/work/week project). |
Oh yeaaaah coool |
See also http://mozilla.github.io/localForage/. |
Thinking more about this, either using something like localForage or just indexeddb directly, storing API data offline/locally would be relatively easy. The tricky part comes with allowing an offline workflow and syncing with the db. We could probably split this into two tasks: 1) offline 2) sync--if we think the 2nd is the worth the effort. @magsout Can you explain a bit more what would be useful to have offline? The stuff in /issues, and the data for individual issues? If you had offline access to that that was read-only, would that be helpful or just annoying? |
Exactly,
Not a problem. Just need to see list of issue when I code |
Cool, let's start with that. :) |
<3 |
This relates to #222, which I sort of punted on. I'm leaning towards using @mozilla's localForage and the backbone adapter: https://github.com/mozilla/localForage-backbone |
@magsout because I like the idea and I'm trying also to see what would be beneficial. Could you explain in terms of a user scenario what would you do offline with webcompat.com data? |
Best scenario (no cache, no database, no localStorage, profile clean) :
|
I guess it relates to #165 with regards to what @magsout says.
back of the napkin evaluation:
which is around 0.74 Mo (transfert) (This without the comments obviously) |
The "simple" way I'm looking at starting to implement this is to cache things as they're requested. So that might only be the first 50 issues on /issues, or more depending on what you clicked on. We could get more advanced and do crazier things, of course. |
Your simple way is perfect |
According to https://blog.wanderview.com/blog/2015/03/24/service-workers-in-firefox-nightly/, service workers will be in Dev Edition at some point soon (though not progressing to beta/stable yet). Might be fun to (re)write this functionality using them. |
Maybe fun to write, but not necessary for users. ;) http://caniuse.com/#feat=serviceworkers |
:p Given the niche use-case, I think it's probably OK. But we're neither here nor there right now anyways. |
any update about this issue ? |
Update: I'd still love to do this but haven't done much work on it. Something to discuss in Paris. ^_^ |
ok ❤️ |
I'm playing with LocalForage. Very good lib. Good solution for this issue. |
Saw this today: https://www.talater.com/upup/. Also looks pretty cool. |
@miketaylr said we need to break this up in manageable tasks |
This is a tool a friend of mine build. Maybe we can adapt this and use it for webcompat.com |
@magsout is this still relevant, and what kind of task are you trying to do on the train? Work on webcompat.com dev bugs? Triage issues (which gets hard w/o internet lol)? |
@miketaylr old issue ;) we can close for now. |
I wanted to have access to the test issues because the internet connection is bad. But it's ok. I sleep on the train ;) |
@magsout So, to web-bugs? :) |
@zoepage yes, exactly |
@magsout We talked about that use case yesterday. Would you be able to test web-bugs without an internet connection, because you wouldn't be able to check the websites? Or am I missing something? Otherwise you could use https://schultyy.github.io/offline-issues/ ? |
This is not a request but just a question. Is it possible to have a database offline? I work a lot in train without 3G
The text was updated successfully, but these errors were encountered: