Loomio

Automatic Refreshing of Content

L“O Linus “Igby” O'Neill Public Seen by 92

Hallo everyone,

I've only just now found out about the loomio for diaspora.
We, some weeks ago made our own pod to start using diaspora more.
While doing that I notice that, the stream does not autorefresh, just like any notifications
Anyone who's been on any other social network, like g+ twitter facebook and so on, hopefully knows what I mean

There is a script out there https://github.com/Faldrian/diasporaAutoUpdate which can be used along greasemonkey to do this, well part of it
I in turn added this to my main.js
But that is not really the way to do this I fear

I would like a feature like this to be added to the main diaspora branch because it is an essential feature

How it should work:

Idea 1:
When a change is detected, the user should get a button to load the new content at will

Idea 2:
Changes should be loaded automatically, but not disturb the flow, as in, when I read a post in the stream, I do not want that to go swoosh away
this version is harder, but I dare say mebe better

Hope I did this all right

Cheers

Linus

F

Faldrian Sat 15 Nov 2014 3:07PM

I think some podmins may want to enable/disable this feature to fine-tune the load on the server - since this feature will poll every X seconds for new updates (90seconds in the plugin referenced above).

Y

y.semin Sat 15 Nov 2014 4:57PM

I agree with Linus and with Faldrian.
In my opinion, it's interesting, whether I don't know if this would make every D* user happy. Maybe only refreshing the notifications would be enough. Refreshing the flow seems to me (humble D* user) a bit too much.

DU

riderplus Sat 15 Nov 2014 4:59PM

I think your idea no. 2 is the best, however, it should be made such as one could have that as an option - like „Do you want to enable stream auto-update? Yes/No” Many people don t like the idea of auto-update of stream, so it would be great, both for the conservatives and for the liberals more „facebook” oriented ;)

G

goob Sat 15 Nov 2014 6:03PM

There's an open Github issue for this - #3890 - and a closed pull request - #4352 which was never finished. As yet there's no elegant solution which would work in Diaspora as it currently exists. See the comments in that issue and PR for explanations why. The main issue is (pod) server load.

DU

riderplus Sat 15 Nov 2014 6:17PM

Yes, we all know the story with the pod server load. There must be a solution to this! Simply closing a discussion doesn't help anyone...others made it (on other social networks), so I think it's virtually possible!

DU

Deleted account Sat 15 Nov 2014 6:47PM

@goob : I think I've understood that Rails4 used in develop enables websockets and that notifications problems and other could be solved this way ?

JH

Jonne Haß Sat 15 Nov 2014 7:50PM

@augier source?

F

Faldrian Sat 15 Nov 2014 9:51PM

@augier If you want to use websockets to push notifications and new posts to users, you have to implement a whole event-thing based on incoming federation-messages and new user-posts and so on... it would be quite a big thing to do. Possible, but big.

Also: Don't underestimate the number of open connections for bigger pods like geraspora... several hundred(thousand?) open connections all the time additional to the short connection times normal requests do.

FS

Florian Staudacher Sun 16 Nov 2014 1:49AM

I think you mean the built-in streaming support that's new with Rails 4 -> http://api.rubyonrails.org/classes/ActionController/Streaming.html
that would probably behave more like long-polling, server-sent-events or comet or whatever you want to call it, and work via the "normal" http request cycle, unlike websockets.

KAK

Karthikeyan A K Sun 16 Nov 2014 3:46AM

This thing will be great. If Diaspora won't keep up to modern times, who wants to use it other than few privacy concerned people?

Load More