Skip to content

feat: report history#1141

Draft
c0rydoras wants to merge 14 commits intoadfinis:mainfrom
c0rydoras:feat/report-history
Draft

feat: report history#1141
c0rydoras wants to merge 14 commits intoadfinis:mainfrom
c0rydoras:feat/report-history

Conversation

@c0rydoras
Copy link
Copy Markdown
Collaborator

@c0rydoras c0rydoras commented Mar 30, 2026

what is implemented:

  • report history model (backend)
  • creation of report history records when they're moved (backend)
  • ability to query report history via include
  • tests for the above
  • history button (when a report has history) in analysis view
  • report history sidebar
image image

what is currently missing:

  • frontend tests

Comment thread backend/timed/tracking/views.py
@c0rydoras c0rydoras changed the title draft(backend): ReportHistory model draft(backend): ReportHistory model && creation on move Mar 30, 2026
@c0rydoras c0rydoras force-pushed the feat/report-history branch from 32b77ad to 8331141 Compare March 30, 2026 12:44
@c0rydoras c0rydoras force-pushed the feat/report-history branch from 223d27a to 916dd13 Compare March 30, 2026 12:53
@c0rydoras c0rydoras changed the title draft(backend): ReportHistory model && creation on move feat: report history Mar 30, 2026
@c0rydoras c0rydoras force-pushed the feat/report-history branch from 40ba8df to 98e0e09 Compare March 30, 2026 14:35
Copy link
Copy Markdown
Member

@open-dynaMIX open-dynaMIX left a comment

Choose a reason for hiding this comment

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

Coming good 🚀

"""

comment = models.TextField(blank=True)
report = models.ForeignKey(Report, on_delete=models.CASCADE, related_name="history")
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.

In many projects we use django-simple-history. The common pattern there is to have the history manager accessible via Model.history(). If we ever decide to introduce django-simple-history in this project, the history keyword is already used. Consider naming it something different, like log.

@c0rydoras c0rydoras force-pushed the feat/report-history branch from 36a104c to 0879d08 Compare March 31, 2026 10:40
@c0rydoras c0rydoras force-pushed the feat/report-history branch from 0879d08 to 80e52a6 Compare March 31, 2026 11:14
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.

[ENHANCEMENT]: Comment Box & History Record when moving a Timed Entry to a different task, project or customer

2 participants