Skip to content
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

Refactor calc pill numbers #560

Merged
merged 29 commits into from
Apr 16, 2022
Merged

Refactor calc pill numbers #560

merged 29 commits into from
Apr 16, 2022

Conversation

bannzai
Copy link
Owner

@bannzai bannzai commented Apr 7, 2022

Abstract

ピルシートの番号を決めるロジックを統合・リファクタリングした。
グループ内にピルシートが複数枚ある場合、今飲んでいるシートの一つ前のシートに休薬期間がある場合に正しい番号表示にならなかったバグがあったのでついでに修正

Why

#558 で LocalNotificationに文言を登録する際にピル番号が欲しかったため、日付に応じてピルシートの番号を求める関数を切り出すことにした

Links

Checked

  • Analyticsのログを入れたか
  • 境界値に対してのUnitTestを書いた
  • パターン分岐が発生するWidgetに対してWidgetTestを書いた
  • リリースノートを追加した

@bannzai bannzai marked this pull request as ready for review April 16, 2022 21:40
@bannzai bannzai merged commit d361c72 into main Apr 16, 2022
@bannzai bannzai deleted the refactor/calc/numbers branch April 16, 2022 21:40
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