Opened 4 years ago

Last modified 8 months ago

#10422 new defect (bug)

Answering to comment from Dashboard does not update Dashboard statistics

Reported by: honza.skypala Owned by:
Priority: normal Milestone: Future Release
Component: Administration Version: 2.8.1
Severity: normal Keywords: 3.2-early has-patch needs-testing needs-refresh
Cc:

Description

Hi there,

there is a short statistics "Right now/At a Glance" box in Dashboard, containing number of posts, pages, comments etc.

There is also a box with list of most recent comments in the Dashboard.

If a user answers to a comment in this "Recent comments" box in Dashboard, which uses AJAX, so it does not reload the whole page, it creates a new comment, but the number of comments in the "Right now" box is not updated.

I know this is not a critical bug, but it would be really nice if it works.

Take care, Honza

P.S.: As there is no "Dashboard" component in the Trac, I did not know whether to assign it to Administration or Comments component. I put it into Administration, if you think it better suits to Comments or any other component, please feel free to change it.

Attachments (2)

garyc40-10422.patch (910 bytes) - added by garyc40 2 years ago.
there's a patch for that
garyc40-10422.2.diff (916 bytes) - added by garyc40 2 years ago.
patch refreshed

Download all attachments as: .zip

Change History (9)

Just a note - of course the complex solution would update the statistics in the "Right now" box also for other actions on comments taken in Dashboard, like deleting a comment.

comment:2   dd324 years ago

  • Milestone changed from Unassigned to Future Release

Theres something similar for other counts such as plugin update count not changing upon updating, and comment count not changing upon spamming/deleting from the dashboard.

Maybe a new function that inserts inline JS into Ajax responses about number-changes would be possible.. just a thought there.

Same thing applies when you create new posts/drafts with the QuickPress box on the dashboard.

Related: #13820

garyc402 years ago

there's a patch for that

  • Keywords has-patch needs-testing added; Dahsboard comments statistics removed

garyc402 years ago

patch refreshed

  • Keywords 3.2-early added
  • Keywords needs-refresh added
Note: See TracTickets for help on using tickets.