Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Activity Tracker shows 'Last updated' status as '45 years 1 week ago' for all the content added.
Steps:
1. Install / Enable Tracker Module
2. Add any content
3. Check the activity by going to user -> Activity
4. Last updated is shown as '45 years 1 week ago'
Beta phase evaluation
Issue category | Bug because tracker functionality is broken. |
---|---|
Issue priority | Normal |
Unfrozen changes | None |
Prioritized changes | The main goal of this issue is fixing a bug. |
Disruption | None |
Comment | File | Size | Author |
---|---|---|---|
#29 | activity_tracker_shows-2401191-29.patch | 2.51 KB | nlisgo |
#29 | interdiff-2401191-25-29.txt | 1.2 KB | nlisgo |
#25 | activity-tracker-time-display-2401191-25-TEST-ONLY.patch | 1.75 KB | jhedstrom |
#25 | activity-tracker-time-display-2401191-25.patch | 2.57 KB | jhedstrom |
#4 | before_patch.png | 79.71 KB | a_thakur |
Comments
Comment #1
Poornima3 CreditAttribution: Poornima3 commentedThis is particularly happening for just content type:- Basic Page (For Article it is showing the correct last updated )
Comment #2
Manjit.SinghComment #3
a_thakur CreditAttribution: a_thakur commentedComment #4
a_thakur CreditAttribution: a_thakur commentedPlease find the attached patch. Also find the screenshots for before and after patch.
Comment #6
dawehnerAfaik it is always time to fix bugs.
Comment #7
a_thakur CreditAttribution: a_thakur commentedNot sure why test fails, is it because tracker module isn't enabled on the instance where CI is running?
Comment #9
Poornima3 CreditAttribution: Poornima3 commented#4
The patch works absolutely fine
Comment #10
mohrerao CreditAttribution: mohrerao commentedComment #12
ashutoshsngh CreditAttribution: ashutoshsngh commentedApplied and checked worked fine.
Comment #13
alexpottWe should have a test for this.
Comment #14
RavindraSingh CreditAttribution: RavindraSingh commentedYes, its working fine.
Comment #15
RavindraSingh CreditAttribution: RavindraSingh commentedwhat other people say?
Comment #16
jhedstromI started writing a test for this, and quickly realized that the issue only makes itself apparent when comments are disabled on a particular type. Furthermore, the
changed
time from the tracker data table can include comment updates, not just node time.I've written a test that illustrates the failure, and also tweaked the fix from above to take into account comment time (but still include changed time from nodes without comments).
Comment #24
idebr CreditAttribution: idebr commentedComment #25
jhedstromRe-roll of #16.
Comment #27
jhedstromThe test-only patch was expected to fail.
Comment #28
Anonymous (not verified) CreditAttribution: Anonymous commentedLooking over the patch, it seems ok to me. But I do have some minor remarks:
Nitpicking, but it's not needed here :)
This is missing a closing bracket, but I would prefer to rephrase the comment altogether.
E.g.
Set the last activity time from tracker data. This also takes into account comment activity, so getChangedTime() is not used.
Comment #29
nlisgo CreditAttribution: nlisgo commentedThis patch addresses feedback in #28.
Comment #30
Anonymous (not verified) CreditAttribution: Anonymous commentedLooks good to me.
Added beta eval to the summary.
Comment #31
webchickGreat catch.
Committed and pushed to 8.0.x. Thanks!
Comment #34
mohrerao CreditAttribution: mohrerao as a volunteer and commented