-
Notifications
You must be signed in to change notification settings - Fork 0
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
project, contestの終了時期を未定に戻す更新が出来るようにした #727
base: main
Are you sure you want to change the base?
Conversation
…anges_until_to_nil
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #727 +/- ##
==========================================
+ Coverage 70.93% 70.99% +0.06%
==========================================
Files 42 42
Lines 4576 4593 +17
==========================================
+ Hits 3246 3261 +15
+ Misses 1172 1171 -1
- Partials 158 161 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他は良さそうに見えます
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
指摘漏れです、お願いします 🙏
argUntil := domain.YearWithSemester{Year: int(args.UntilYear.ValueOrZero()), Semester: int(args.UntilSemester.ValueOrZero())} | ||
originValid := originUntil.IsValid() | ||
// Untilが未定かどうかの状態が異なるか、Untilが異なる場合に更新 | ||
if validYear != originValid || (validYear && argUntil != originUntil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if validYear != originValid || (validYear && argUntil != originUntil) { | |
if validYear != originValid || (validYear && argUntil.Equal(originUntil)) { |
if validYear == validSemester { | ||
originUntil, originValid := project1.Duration.Until.V() | ||
argUntil := domain.YearWithSemester{Year: int(uy), Semester: int(us)} | ||
if validYear != originValid || (validYear && argUntil != originUntil) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if validYear != originValid || (validYear && argUntil != originUntil) { | |
if validYear != originValid || (validYear && argUntil.Equal(originUntil)) { |
resolves #694