Feature #35229
closedSSE refresh
0%
Description
Hi,
I tried quite long time to developed solution how automatically refresh issue's notes without refreshing whole page.
I tested soulution via AJAX or JS with refreshing only DIV "history" using timer. For example:
$(document).ready(function(){ setInterval(function(){ $( "#history" ).load(window.location.href + " #history."); /*$( "#tab-content-history").load(window.location.href + " #tab-content-history.tab-content");*/ }, 30000); });
It doesn't work how I expacted. Page is refreshed, but notes don't show.
I tested for example plugin redmine_refresh.
But I think it exists better way how it solved. I'm aiming on Server-Sent Event. gem ld-evensource
How I imagine it can works - focused on issue-detail page:
On server running "services" who listen changes on issues (create issue, update issue, ...).
If issue is new, then work as normal (like now).
If issue is updated, then check attributes which was changed and journal has no notes, then reload div #history, show tab History and Changes
If issue is updated, then check attributes which was changed and journal has note, then reload div #history, show tabs History, Notes and Changes and show note.
Maybe I forgot some stuff.
I would like to create discussion about this problem, so come to talk about it. I appreciate it. :-) Redmine is great, but this feature will send him on Olymp... :-)
Feel free for question.
With best regards
David
Files
Updated by Go MAEDA over 3 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Please use forums for questions. Issues are used to report a bug, suggesting a new feature, or submitting a patch. Reading How to request help may be helpful for you.
Updated by David Doležal over 3 years ago
Go MAEDA: OK. But think about it as feature, not issue or bug... ;-)
Updated by David Doležal over 3 years ago
And for completeness - here is url for discussion on forum: https://www.redmine.org/boards/1/topics/65414
Updated by Lorenzo Meneghetti over 3 years ago
David Doležal wrote:
Hi,
I tried quite long time to developed solution how automatically refresh issue's notes without refreshing whole page.
...
IMO, this is definitely a Feature. May be should write: "Please add support for SSE updates for issue journal"
thanks