Skip to content

fix(action log): Set date_updated to current datetime#119791

Open
ceorourke wants to merge 3 commits into
masterfrom
ceorourke/ISWF-3026
Open

fix(action log): Set date_updated to current datetime#119791
ceorourke wants to merge 3 commits into
masterfrom
ceorourke/ISWF-3026

Conversation

@ceorourke

Copy link
Copy Markdown
Member

Set date_updated to current date time in GroupActionLogEntry backfill task instead of the activity's date added.

@ceorourke ceorourke requested review from a team as code owners July 15, 2026 23:17
@linear-code

linear-code Bot commented Jul 15, 2026

Copy link
Copy Markdown

ISWF-3026

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 15, 2026
json.dumps(entry.action.dict()),
entry.date_added,
entry.date_added, # date_updated
timezone.now(), # date_updated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is an improvement, but I think the ideal would be that the insert function did this for us. Two paths to that I see:

  1. tell postgres to use NOW() as the default, just remove this from our insert.
  2. Just insert the timezone.now() in the helper.. which is weird, so I'd kinda favor taking a dataclass with named fields or a namedtuple over a list of various types, as that'd make safely removing a thing and defaulting it interally easier.

@ceorourke ceorourke force-pushed the ceorourke/ISWF-3026 branch from 9cdbb5d to e9273d5 Compare July 15, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants