Skip to content

refactor: move status transition check into entity & test #2054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vindard
Copy link
Contributor

@vindard vindard commented May 22, 2025

No description provided.

@vindard vindard force-pushed the refactor--expected-status-check branch from 18e6bfe to 5be8b93 Compare May 22, 2025 14:23
Copy link

github-actions bot commented May 22, 2025

Manuals preview: Link to Manuals

if actual_status == ObligationStatus::Paid {
continue;
} else if expected_status != actual_status {
if !obligation.check_status_transitioned(crate::time::now()) {
Copy link
Member

@bodymindarts bodymindarts May 23, 2025

Choose a reason for hiding this comment

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

how about obligation.is_status_up_to_date(time) or obligation.is_status_appropriate_for(time)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like is_status_up_to_date 3b8e758

@vindard vindard force-pushed the refactor--expected-status-check branch from 5be8b93 to 3b8e758 Compare May 23, 2025 15:11
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