xxxxxxxxxx
Sign in to import from :
Link to :
Or start with a template:
// 可能可以用點擊一次展開,第二次進入的方式 (quora)
討論: https://hackmd.io/dfAkGHLCShacnOoruGxr0w?view
https://www.figma.com/file/5qegqv1g0fxCYkzNz3jVA6/Wireframe-Need-to-Review-Page?node-id=0%3A1
顯示已有查核的可疑訊息及對應查核回應列表,預設依照最新的查核時間排序。
Elastic Search
filter articles
WHERE article.articleReplies.counts > 0
SORT by max(articleReply.createdTime)
Elastic Search DB map
https://hackmd.io/@mrorz/SyinqvMQL
Related Issue
https://github.com/cofacts/rumors-api/issues/35
*預設
中文 | English | Elastic Search 定義 |
---|---|---|
*最近被查核 | Most Recently replied | max(articleReply.createdTime) |
最近被詢問 | Most Recently Asked | article.lastRequestedAt |
最多人想知道 | Most People want to know | article.replyRequestCount |
最少人查核 | Least fact-checked | article.normalArticleReplyCount |
中文 | English | Elastic Search 定義 |
---|---|---|
時間區間 | Time Range | article.articleReplies.createdAt |
我查核過 | replied by me | article.articleReplies.userId == ‘me’ |
還未有有效查核 | have yet to have a useful reply | filter 沒有任何 normal articleReply 符合「正feedback>負feedback && status」 |
熱門回報 | Asked many times | filter article.replyRequestCount >= N (default N = 2) |
熱門討論 | Relied many times | filter article.normalArticleReplyCount >= N (default N = 3) |
回應中有「含有真實資訊」and「含有不實資訊」and「非文章」 (多選) | … | article.articleReplies.replyType == ... |
主題 | Topic | https://docs.google.com/spreadsheets/d/1rw3Dzpmec-6lHgAgMPhW7ccPFzNlPp9YqpUJVxnYezw/edit#gid=484232713 |
And in graphql resolver
# in filtered aritcles
articles.map(article => ({
article,
replies: article.articleReplies.filter(
articleReply => date.now() - articleReply.createdTime < N
).slice(0, K)
}))
目前先以 N = 3 days, K = 5 開始。
Elasticsearch 的 script in nested 可以用於 filter, 但不能 sorted,導致我們只能在 resolver 做 replies 處理
CSS 上可能有點麻煩
針對回應的原案或是引用,分別用
多少瀏覽量比例 UV / All UV
多少人直接對回應 upvote/downvote
各 Sort 被使用次數
各 Filter 被使用次數
從此頁去到詳情頁添加回覆的數量
or
Do you really want to delete this template?
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
![image alt](https:// "title") | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | Emoji list | ||
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.