Feature #35229

SSE refresh

Added by David Doležal over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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

div_refreshed_but_notes_dont_show.JPG (34.3 KB) David Doležal, 2021-05-11 17:59

History

#1 Updated by Go MAEDA over 1 year 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.

#2 Updated by David Doležal over 1 year ago

Go MAEDA: OK. But think about it as feature, not issue or bug... ;-)

#3 Updated by David Doležal over 1 year ago

And for completeness - here is url for discussion on forum: https://www.redmine.org/boards/1/topics/65414

#4 Updated by Lorenzo Meneghetti about 1 year 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

Also available in: Atom PDF