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

💥 change YearWithSemesterDuration.Until type to optional #687

Merged
merged 4 commits into from
Jun 23, 2024
Merged

Conversation

ras0q
Copy link
Member

@ras0q ras0q commented Jun 23, 2024

No description provided.

Copy link

codecov bot commented Jun 23, 2024

Codecov Report

Attention: Patch coverage is 56.25000% with 28 lines in your changes missing coverage. Please review.

Project coverage is 33.39%. Comparing base (f202eba) to head (e5fef2f).

Files Patch % Lines
interfaces/handler/project.go 0.00% 7 Missing ⚠️
infrastructure/repository/group_impl.go 0.00% 6 Missing ⚠️
infrastructure/repository/user_impl.go 0.00% 6 Missing ⚠️
interfaces/handler/schema/converter.go 69.23% 3 Missing and 1 partial ⚠️
util/random/random.go 33.33% 2 Missing ⚠️
util/random/repository.go 0.00% 2 Missing ⚠️
domain/duration.go 96.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #687      +/-   ##
==========================================
+ Coverage   33.19%   33.39%   +0.19%     
==========================================
  Files          54       54              
  Lines        4329     4345      +16     
==========================================
+ Hits         1437     1451      +14     
- Misses       2863     2864       +1     
- Partials       29       30       +1     
Flag Coverage Δ
integration 33.39% <56.25%> (+0.19%) ⬆️
unit 33.39% <56.25%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@H1rono H1rono left a comment

Choose a reason for hiding this comment

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

ぱっと見気になったとこ

Comment on lines -174 to +175
UntilYear: duration.Until.Year,
UntilSemester: duration.Until.Semester,
UntilYear: duration.Until.ValueOrZero().Year,
UntilSemester: duration.Until.ValueOrZero().Semester,
Copy link
Member

Choose a reason for hiding this comment

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

ここだけみるとめちゃくちゃ不味そうに見える
projectmemberが0年0期まで存在したってなんだ???と

Copy link
Member Author

Choose a reason for hiding this comment

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

正直コンパイルエラー消してテスト通すために適当に対処したところはある🙇
一応これの逆操作はuntilがvalid=falseになるので再度modelから取り出してdomainに詰めた時は無期限として扱われる

Copy link
Member Author

Choose a reason for hiding this comment

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

なんかいい方法ないかな

Copy link
Member

Choose a reason for hiding this comment

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

パッと思いつかんので、とりあえずissueかなあ

Copy link
Member Author

Choose a reason for hiding this comment

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

mustAddなんとかみたいな関数は今出してるテスト改正PRの派生で消えるのでその時に何とかします

integration_tests/repository/project_test.go Show resolved Hide resolved
Copy link
Member

@H1rono H1rono left a comment

Choose a reason for hiding this comment

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

LGTM

@ras0q ras0q merged commit 7ee4715 into main Jun 23, 2024
10 of 11 checks passed
@ras0q ras0q deleted the fix/duration branch June 23, 2024 10:52
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