-
-
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
enhance: 人気のユーザー一覧の降順にpvを使えるように #14196
base: develop
Are you sure you want to change the base?
Conversation
ミスった |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #14196 +/- ##
============================================
+ Coverage 19.54% 99.40% +79.85%
============================================
Files 713 4 -709
Lines 100312 5709 -94603
Branches 997 69 -928
============================================
- Hits 19610 5675 -13935
+ Misses 80158 34 -80124
+ Partials 544 0 -544 ☔ View full report in Codecov by Sentry. |
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -555,6 +555,14 @@
"string",
"null"
]
+ },
+ "preferPopularUserFactor": {
+ "type": "string",
+ "enum": [
+ "follower",
+ "pv",
+ "none"
+ ]
}
},
"required": [
@@ -663,7 +671,8 @@
"urlPreviewMaximumContentLength",
"urlPreviewRequireContentLength",
"urlPreviewUserAgent",
- "urlPreviewSummaryProxyUrl"
+ "urlPreviewSummaryProxyUrl",
+ "preferPopularUserFactor"
]
}
}
@@ -13911,6 +13920,14 @@
"string",
"null"
]
+ },
+ "preferPopularUserFactor": {
+ "type": "string",
+ "enum": [
+ "follower",
+ "pv",
+ "none"
+ ]
}
}
}
@@ -67519,7 +67536,9 @@
"+createdAt",
"-createdAt",
"+updatedAt",
- "-updatedAt"
+ "-updatedAt",
+ "+pv",
+ "-pv"
]
},
"state": {
@@ -81087,6 +81106,14 @@
"enableUrlPreview": {
"type": "boolean"
},
+ "preferPopularUserFactor": {
+ "type": "string",
+ "enum": [
+ "follower",
+ "pv",
+ "none"
+ ]
+ },
"backgroundImageUrl": {
"type": [
"string",
@@ -81186,6 +81213,7 @@
"translatorAvailable",
"mediaProxy",
"enableUrlPreview",
+ "preferPopularUserFactor",
"backgroundImageUrl",
"impressumUrl",
"logoImageUrl", |
PVが人気度の指標として適当なのか良く分からんわね |
サーバーの規模が大きいなら、人気のユーザーセクションに載る人が固定されてしまうのを避けながら注目しているユーザーを表示できると思う サーバー内の人数が少なかったりするとpvはアテにならない可能性があるのでフォロワー数のほうが人気量を表すのに適しているかもしれないけど、サーバーの規模が大きいとフォロワー数が大きい人が固定されてしまうのでそれはそれでどうなのという話 |
人気ユーザーのページをオフにできるのちょっと嬉しい |
const chartUsers: { userId: string; count: number; }[] = []; | ||
if (ps.sort?.endsWith('pv')) { | ||
await this.perUserPvChart.getChartUsers('day', 0, null, ps.limit, ps.offset).then(users => { | ||
chartUsers.push(...users); | ||
}); | ||
} |
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.
MisskeyIO#728 をちぇりぴしたので解消したかも?
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.
kamo
(cherry picked from commit c82bf75)
What
(Cherry-picked from io)
Why
Fix #14194
Additional info (optional)
Checklist