@@ -627,16 +627,12 @@ def get_entity_draft_history(
627627 Edge cases:
628628
629629 - Never published, no versions: returns an empty queryset.
630-
631630 - Never published, has versions: returns all DraftChangeLogRecords.
632-
633631 - No changes since the last publish: returns an empty queryset.
634-
635632 - Last publish was a soft-delete (Published.version=None): the Published row
636633 still exists and its published_at timestamp is used as the lower bound, so
637634 only draft changes made after that soft-delete publish are returned. If
638635 there are no subsequent changes, the queryset is empty.
639-
640636 - Unpublished soft-delete (soft-delete in draft, not yet published): the
641637 soft-delete DraftChangeLogRecord (new_version=None) is included because
642638 it was made after the last real publish.
@@ -698,11 +694,9 @@ def get_entity_publish_history(
698694 Edge cases:
699695
700696 - Never published: returns an empty queryset.
701-
702697 - Soft-delete published (new_version=None): the record is included with
703698 old_version pointing to the last published version and new_version=None,
704699 indicating the entity was removed from the published state.
705-
706700 - Multiple draft versions created between two publishes are compacted: each
707701 PublishLogRecord captures only the version that was actually published,
708702 not the intermediate draft versions.
@@ -747,7 +741,6 @@ def get_entity_publish_history_entries(
747741 - Each publish group is independent: only the DraftChangeLogRecords that
748742 belong to the requested publish_log_uuid are returned; changes attributed
749743 to other publish groups are excluded.
750-
751744 - Soft-delete publish (PublishLogRecord.new_version=None): the soft-delete
752745 DraftChangeLogRecord (new_version=None) is included in the entries because
753746 it falls within the time window of that publish group.
@@ -843,10 +836,8 @@ def get_entity_version_contributors(
843836 Edge cases:
844837
845838 - If no DraftChangeLogRecords fall in the range, returns an empty queryset.
846-
847839 - Records with changed_by=None (system changes with no associated user) are
848840 always excluded.
849-
850841 - A user who contributed multiple versions in the range appears only once
851842 (results are deduplicated with DISTINCT).
852843 """
0 commit comments