Skip to content

Reordering reset daily stats#2809

Open
JoeWaddell wants to merge 28 commits intodevfrom
reset_daily_stats-reordering
Open

Reordering reset daily stats#2809
JoeWaddell wants to merge 28 commits intodevfrom
reset_daily_stats-reordering

Conversation

@JoeWaddell
Copy link
Copy Markdown
Collaborator

@JoeWaddell JoeWaddell commented Mar 3, 2026

Context

Issue(s) closed by this pull request: closes #1215

What

Reordered some of the reset_daily_stats method to make it easier to find related attributes. Also reviewed need to reset these on a daily basis.

Also adds some missing docstrings.

Also removed an entirely unused attribute.

Why

Fixathon 2026!

How

Test plan

No unit tests affected for reordering, removed check in existing unit test for deprecated attribute.

@github-actions github-actions bot force-pushed the reset_daily_stats-reordering branch from b938fa8 to 1ce6055 Compare March 3, 2026 22:23
@JoeWaddell JoeWaddell marked this pull request as ready for review March 3, 2026 22:26
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 3, 2026

Current Coverage: 99%

Mypy errors on reset_daily_stats-reordering branch: 1688
Mypy errors on dev branch: 1684
4 more errors on reset_daily_stats-reordering branch

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Current Coverage: 99%

Mypy errors on reset_daily_stats-reordering branch: 1683
Mypy errors on dev branch: 1684
1 fewer errors on reset_daily_stats-reordering branch

@krb78 krb78 self-requested a review March 4, 2026 20:24
Copy link
Copy Markdown
Contributor

@krb78 krb78 left a comment

Choose a reason for hiding this comment

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

the order looks good to me!

Copy link
Copy Markdown
Collaborator

@YijingGong YijingGong left a comment

Choose a reason for hiding this comment

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

LGTM. Left one comment - think it's a typo.

Comment thread RUFAS/biophysical/animal/data_types/herd_statistics.py Outdated
num_cow_for_parity: dict[str, int]
avg_daily_cow_milking = 0.0

stillborn_calf_info: list[StillbornCalfTypedDict]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I see it here. So I guess in the above docstring, it should be StillbornCalfTypedDict

Copy link
Copy Markdown
Collaborator

@matthew7838 matthew7838 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for cleaning this up, Joe.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Current Coverage: 99%

Mypy errors on reset_daily_stats-reordering branch: 1423
Mypy errors on dev branch: 1424
1 fewer errors on reset_daily_stats-reordering branch

@JoeWaddell JoeWaddell requested a review from YijingGong March 6, 2026 19:14
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Current Coverage: 99%

Mypy errors on reset_daily_stats-reordering branch: 1423
Mypy errors on dev branch: 1424
1 fewer errors on reset_daily_stats-reordering branch

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.

Organization of _reset_daily_stats

4 participants