Skip to content

Conversation

@kargig
Copy link
Owner

@kargig kargig commented Jan 10, 2026

Prevent view_count increments from updating the updated_at timestamp across all entities. This ensures that "Recent Activity" lists only reflect actual content changes, not passive viewing.

  • Add view_count column to DiveRoute, DivingOrganization, and ParsedDiveTrip via migration 0059.
  • Implement "silent update" pattern in all entity routers using synchronize_session=False.
  • Add regression tests in test_view_count_updated_at.py to verify timestamp stability.
  • Add architecture documentation explaining the design and future scaling options.
  • Update AdminRecentActivity.js to align with backend changes.

Prevent `view_count` increments from updating the `updated_at` timestamp across all entities. This ensures that "Recent Activity" lists only reflect actual content changes, not passive viewing.

- Add `view_count` column to `DiveRoute`, `DivingOrganization`, and `ParsedDiveTrip` via migration 0059.
- Implement "silent update" pattern in all entity routers using `synchronize_session=False`.
- Add regression tests in `test_view_count_updated_at.py` to verify timestamp stability.
- Add architecture documentation explaining the design and future scaling options.
- Update `AdminRecentActivity.js` to align with backend changes.
@kargig kargig merged commit e2c619f into main Jan 10, 2026
2 checks passed
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.

2 participants