-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(backend): リバーシの設定変更が反映されないのを修正 #14404
Conversation
このPRによるapi.jsonの差分 差分はこちら |
public isValidReversiUpdateValue<K extends typeof reversiUpdateKeys[number]>(key: K, value: unknown): value is MiReversiGame[K] { | ||
switch (key) { | ||
case 'map': | ||
return Array.isArray(value) && value.every(row => typeof row === 'string'); | ||
case 'bw': | ||
return typeof value === 'string' && ['random', '1', '2'].includes(value); | ||
case 'isLlotheo': | ||
return typeof value === 'boolean'; | ||
case 'canPutEverywhere': | ||
return typeof value === 'boolean'; | ||
case 'loopedBoard': | ||
return typeof value === 'boolean'; | ||
case 'timeLimitForEachTurn': | ||
return typeof value === 'number' && value >= 0; | ||
default: | ||
return false; | ||
} | ||
} |
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.
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.
よく覚えていない
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14404 +/- ##
===========================================
+ Coverage 39.91% 41.74% +1.83%
===========================================
Files 1545 1549 +4
Lines 190505 196580 +6075
Branches 2654 3589 +935
===========================================
+ Hits 76046 82070 +6024
- Misses 113898 113949 +51
Partials 561 561 ☔ View full report in Codecov by Sentry. |
|
javascriptでは |
いれた |
🙏🏻 |
This reverts commit a8810af.
* fix(backend): リバーシの設定変更が反映されないのを修正 * Update Changelog * add bindthis
What
Why
Fix #14397
Additional info (optional)
Checklist