-
-
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(frontend): ノート投稿に関する実績が投稿したアカウントで解除されるように #13511
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #13511 +/- ##
============================================
- Coverage 39.47% 19.16% -20.32%
============================================
Files 1559 726 -833
Lines 196948 103499 -93449
Branches 3563 996 -2567
============================================
- Hits 77750 19833 -57917
+ Misses 118592 83111 -35481
+ Partials 606 555 -51 ☔ View full report in Codecov by Sentry. |
// バックエンドにも実績を獲ったかどうかのチェックがあるのでtoken指定時は常に実績獲得を送信する | ||
if (!token && claimedAchievements.includes(type)) return; |
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.
自アカウントの場合は獲得されたかどうかがすぐに分かるけどtoken指定の場合はそうは行かないので、token指定時は実績がすでに獲得されているかどうかの判定を行わずすべて送信する仕様にした(バックエンド側でも獲得されているかのチェックが入るので問題なさそう)
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.
// バックエンドにも実績を獲ったかどうかのチェックがあるのでtoken指定時は常に実績獲得を送信する | |
if (!token && claimedAchievements.includes(type)) return; | |
// バックエンドにも実績を獲ったかどうかのチェックがあるのでtoken指定時は常に実績獲得を送信する | |
if ((!token || token === $i.token) && claimedAchievements.includes(type)) return; |
でもいいかもしれない
Changelogを入れたところが違うのでautomated releaseのあれを発動するなりしないといけない |
c解消 |
解消 |
const claimingQueue = new Set<{ | ||
name: typeof ACHIEVEMENT_TYPES[number]; | ||
token?: string; | ||
}>(); |
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.
SetにObject入れても期待した結果にならないわね(別のものとして扱われる)
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.
mapにするか
What
Why
Fix #13361
Additional info (optional)
Checklist