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

redisForTimelineに入っていない古い投稿を見れるようにする #11976

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

yuriha-chan
Copy link
Contributor

What

#11958
redisForTimelineに入っていない古い投稿を見れるようにする Get older posts not stored in redisForTimeline

Why

Additional info (optional)

・とりあえずホームタイムラインのみ実装
・タイムラインを200件以上さかのぼった場合、DBにアクセスしノートが取得できることを確認した

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/backend Server side specific issue/PR label Oct 6, 2023
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (dab205e) 79.22% compared to head (0b8521c) 78.80%.
Report is 19 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #11976      +/-   ##
===========================================
- Coverage    79.22%   78.80%   -0.42%     
===========================================
  Files          930      177     -753     
  Lines        99529    23215   -76314     
  Branches      8051      510    -7541     
===========================================
- Hits         78848    18295   -60553     
+ Misses       20681     4920   -15761     

see 754 files with indirect coverage changes

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

@@ -874,7 +874,7 @@ export class NoteCreateService implements OnApplicationShutdown {
});

// TODO: あまりにも数が多いと redisPipeline.exec に失敗する(理由は不明)ため、3万件程度を目安に分割して実行するようにする
for (const following of followings) {
for (const following of [...followings, note.userId]) {
Copy link
Member

Choose a reason for hiding this comment

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

followingとuserIdは型が違いますね👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/backend Server side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants