Skip to content

Fix changelog entry ordering in multi-project show command#6

Merged
mavam merged 3 commits intomainfrom
fix/entry-ordering-multi-project
Jan 22, 2026
Merged

Fix changelog entry ordering in multi-project show command#6
mavam merged 3 commits intomainfrom
fix/entry-ordering-multi-project

Conversation

@mavam
Copy link
Member

@mavam mavam commented Jan 22, 2026

Summary

Fixed changelog entry ordering in the multi-project show command. Entries were being displayed newest-first instead of oldest-first. Changed the sort key in _render_entries_multi_project() from -ts to ts to sort entries ascending by date.

Changes

  • src/tenzir_ship/cli/_rendering.py: Changed sort key from -ts to ts at line 775 to sort entries oldest-first (ascending by date) instead of newest-first
  • tests/test_modules.py: Added test test_cli_show_multi_project_sorts_entries_oldest_first to verify entries are sorted oldest-first within each project

The fix ensures consistency with the single-project _sort_entries_for_display() function and meets user expectations where the newest entry appears at the bottom of the table.

Test Plan

  • New test test_cli_show_multi_project_sorts_entries_oldest_first validates the fix
  • Test creates entries with different timestamps and verifies oldest-to-newest ordering
  • Test checks both parent project and module project entries are sorted correctly

Generated with Claude Code

mavam and others added 3 commits January 22, 2026 20:21
Entries were displayed newest-first instead of oldest-first when
showing multiple projects. Changed the sort key in
_render_entries_multi_project() from -ts to ts to sort entries
ascending by date, ensuring consistency with single-project display
and placing the newest entry at the bottom of the table where users
expect it.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The multi-project show command now displays entries in chronological
order (oldest first), matching single-project behavior and user
expectations. Previously entries were sorted newest-first, creating
an inconsistency in the application's sorting behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mavam mavam merged commit e680232 into main Jan 22, 2026
7 checks passed
@mavam mavam deleted the fix/entry-ordering-multi-project branch January 22, 2026 19:35
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.

1 participant