View Issue Details

IDProjectCategoryView StatusLast Update
0002904Composrcns_forumpublic2016-10-28 14:54
ReporterPatrick SchmalstigAssigned To 
Severityfeature 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0002904: Change detection for forum posts
DescriptionImplement 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 InformationMay also want to implement it on the full editor if possible where the posts display below the editor.
TagsNo tags attached.
Attach Tags
Time estimation (hours)16
Sponsorship open

Relationships

related to 0002903 assignedSalman Change detection refresh improvement 
related to 0002905 non-assigned AJAX message on change detection refresh 
related to 0002906 closedChris Graham No automatic refresh on change detection; let user decide 
related to 0003660 non-assigned AJAXified posting 

Activities

Chris Graham

2016-10-28 14:53

administrator   ~0004493

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.

Chris Graham

2016-10-28 14:54

administrator   ~0004494

Oh, and it needs to be configurable. Many webhosts prohibit polling.

Issue History

Date Modified Username Field Change
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