Project

General

Profile

Actions

Feature #35229

closed

SSE refresh

Added by David Doležal almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid

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

Actions

Also available in: Atom PDF