You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MPT-17299: add status column to the list command (#30)
Add status column to the list command
<img width="1014" height="313" alt="image"
src="https://github.com/user-attachments/assets/f64ab39d-20c9-407e-bf4a-d5c89ba96e6c"
/>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
Closes [MPT-17299](https://softwareone.atlassian.net/browse/MPT-17299)
- Add status column to the migrate list output (statuses: Running,
Failed, Fake Apply, Applied, Not Applied)
- Add MigrationStatusEnum with from_state(...) to derive status from
started_at/applied_at timestamps
- Introduce MigrationListItem dataclass to model list rows
(migration_id, order_id, migration_type, started_at, applied_at, status)
- Refactor rendering to MigrationRender class using Rich and
Console(width=CONSOLE_WIDTH)
- Update list use case to return list[MigrationListItem] sorted by
order_id
- Add CONSOLE_WIDTH constant (200) for consistent console width
- Update run_migrations to track and persist status transitions
(RUNNING, APPLIED, FAILED) and skip already-applied migrations
- Update CLI tests and documentation to include and explain the new
status column
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
[MPT-17299]:
https://softwareone.atlassian.net/browse/MPT-17299?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
0 commit comments