Hi Nathaniel,

I just found a small bug that is the image quantity statistics won't work when using the entity form.
I tried to switch to "Update count when cron runs", then I had the Cron run, but it didn't work either.

I was wondering would it possible if you could look into it.
Not that urgent. Thanks in advance!

Comments

kingto created an issue. See original summary.

kingto’s picture

Issue summary: View changes
nathaniel’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for the bug report. I'm not sure how to reproduce this. Are there any errors in the log when adding an image with the entity form? On /user does the image count update?

It does look like there is a bug with the entity add form that updates the count even if cron is selected, so that should probably be fixed.

nathaniel’s picture

Assigned: Unassigned » nathaniel
Status: Postponed (maintainer needs more info) » Active

I think I see an issue if "Authored by" is disabled in the form display. Working on a fix for that.

  • e33e8e2 committed on 6.0.x
    Issue #3214259 by kingto, Nathaniel: Work on image statistics issues
    
nathaniel’s picture

Status: Active » Needs review

Fixed issue if authored by is disabled on the form display. Added code to update count when images are deleted.

The cron functionality needs some work. Looks like it is only triggered if cron has not run for 2 hours. Then it loops through every user/album. That might be problematic on large sites.

kingto’s picture

Tested excellent!! I should have thought of that :)
Appreciate it!

nathaniel’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.