View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002904||Composr||cns_forum||public||2016-10-27 21:28||2016-10-28 14:54|
|Reporter||Patrick Schmalstig||Assigned To|
|Fixed in Version|
|Summary||0002904: Change detection for forum posts|
|Description||Implement change_detection.php for forum posts and comments so that users can see new posts as they are made.|
I can commit this myself if accepted. I've already implemented it on lovinity.org.
|Additional Information||May also want to implement it on the full editor if possible where the posts display below the editor.|
|Tags||No tags attached.|
|Time estimation (hours)||16|
I suspect this is more complex than you think to do well enough for mainstream Composr...
1) We would need to have a "has not changed" signal that is extremely efficient, preferably before any database connection is opened. This is how the AJAX checks for notifications and chat messages work, because people will leave things open a long time so the regular checks have to be very fast to process.
2) If pagination is active and you're not on the last page, it shouldn't show new posts (presumably).
3) If threaded view is active we definitely shouldn't refresh the whole topic, so we need to load up individual posts properly, and insert them in the right positions in the tree.
Previously I was also concerned about adding table rows dynamically without making deep assumptions about templates, but with modern browsers this should not be an issue, and we moved to divs anyway.
||Oh, and it needs to be configurable. Many webhosts prohibit polling.|
|2016-10-27 21:28||Patrick Schmalstig||New Issue|
|2016-10-27 21:28||Patrick Schmalstig||Additional Information Updated||View Revisions|
|2016-10-27 21:29||Patrick Schmalstig||Description Updated||View Revisions|
|2016-10-27 21:30||Patrick Schmalstig||Relationship added||related to 0002903|
|2016-10-27 21:32||Patrick Schmalstig||Relationship added||related to 0002905|
|2016-10-27 21:38||Patrick Schmalstig||Relationship added||related to 0002906|
|2016-10-28 14:53||Chris Graham||Time estimation (hours)||=> 16|
|2016-10-28 14:53||Chris Graham||Note Added: 0004493|
|2016-10-28 14:54||Chris Graham||Note Added: 0004494|
|2018-08-05 13:41||Chris Graham||Relationship added||related to 0003660|