Skip to content

Identify and document Visit Report modifications that don't trigger a new version #68

@gregorp

Description

@gregorp

Some changes to visit reports update the report without creating a new version, but I'm not sure what exactly these changes are.

This query, I think, shows some cases,

select 
"versionCreatedAt", "updatedAt", *
from replica."VisitReports"
where abs(EXTRACT( EPOCH FROM ("versionCreatedAt" - "updatedAt" ))) > 1 and "isCurrentVersion"
and "versionCreatedAt" > '2026-01-01'

When a new version of a report is created, the updatedAt at (close to) the same time as versionCreatedAt, thus when updatedAt is substantially different than versionCreatedAt while isCurrentVersion is still true, an update was made to the report without creating a new version--and we don't have a record of what changed. (This is based on my assumption about how updatedAt works, but Matt B did say updating without creating a new version is possible.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions