selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

Fix "offline is very buggy"

Open niol opened this issue 3 years ago • 2 comments

As offline was (when I worked on it in 2019) and still is working great for me (although I did not yet make the effort to update to the latest code), It would be great to document here what is wrong with it. The code has undergone many refactoring tasks since I played with it.

niol avatar Oct 12 '22 14:10 niol

Does anyone want to volunteer for bug testing?

desbest avatar Oct 12 '22 16:10 desbest

I think I have mostly seen random issues like:

  • Service worker would report that the site has updated every time.
  • Sometimes, after log in, articles would not start downloading until I reloaded the page.
  • Logging out while syncing was in progress would complain loudly.
  • ~~Log out (selfoss.db.clear) would not work after database failure.~~ Fixed by 45c7e9eaa74c9c54e775f2424edb0ba2a97e8929.

And then rarely some promise failures that would disable the offline mode.

I think the way forward is rewriting the model layer mostly from scratch, as it is currently too tightly coupled with the app state, the view and, most annoyingly, itself.

jtojnar avatar Oct 12 '22 21:10 jtojnar