Skip to content

fix updated_at#1914

Merged
ccostino merged 6 commits intomainfrom
fix_updated_at
Aug 13, 2025
Merged

fix updated_at#1914
ccostino merged 6 commits intomainfrom
fix_updated_at

Conversation

@terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Aug 13, 2025

Description

The issue originally reported almost 2 years ago was that the Notification.updated_at field was updating continuously, and the change in the value had nothing to do with when the object was actually updated.

I'm not seeing that now -- not reproducible.

However, setting:

onupdate=utc_now()

instead of

onupdated=utcnow

means that the value gets fixed at the time the models classes load, and then stays frozen, which is not what we want. So fix that.

Security Considerations

N/A

Kenneth Kehl added 2 commits August 13, 2025 12:21
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you @terrazoon!

@ccostino ccostino merged commit 9067d57 into main Aug 13, 2025
7 checks passed
@ccostino ccostino deleted the fix_updated_at branch August 13, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants