#cofacts
2020-01-01
2020-01-02
ihshok
11:15:55
@ihshok has joined the channel
2020-01-03
mrorz
13:33:07
比鄰發現一個 bug:有一篇神秘文章一直被使用者搜尋到
https://github.com/cofacts/rumors-api/issues/137
這看起來像是我們 match string 的時候有些問題,想問問大家有沒有什麼好解法
https://github.com/cofacts/rumors-api/issues/137
這看起來像是我們 match string 的時候有些問題,想問問大家有沒有什麼好解法
GitHub
This particular message is very &quot;popular&quot;: <https://cofacts.g0v.tw/article/tibj83yu5zyr> The URL does not make any sense, but it somehow matched in many search queries, so that our chatbot ...
mrorz
13:36:51
不過因為現在我們其實會 match URL title & content
會不會是因為 title / content 與要查詢的網頁有 match?
會不會是因為 title / content 與要查詢的網頁有 match?
mrorz
13:39:59
因為 URL 方面, elasticsearch 建檔的時候其實會把長 URL 視為「一個字」,要完全 match 才會中
https://github.com/cofacts/rumors-db/blob/master/util/indexSetting.js#L13
https://github.com/cofacts/rumors-db/blob/master/util/indexSetting.js#L13
mrorz
19:41:57
Cofacts 這裡收到來自 青岛媒体屋商务服务有限公司 的維權請求,希望我們在 24 小時內把
http://cofacts.g0v.tw/article/1ra070ac6gjju
裡面的影片連結刪除,來信也附有電影公司的委任證明電子版。
我們過去應該沒有類似的 SOP,而這個例子其實算是滿明顯的盜版,我覺得可以直接處理。不過,我想走類似 https://help.github.com/en/github/site-policy/dmca-takedown-policy#d-transparency 的做法,把這個 takedown request 記錄下來。
我這裡會採取的動作依序會是:
1. 24hr 內直接修改資料庫,把 http://cofacts.g0v.tw/article/1ra070ac6gjju 裡的影片網址改成「影片連結已刪除」,並且移除 hyperlinks 欄位
2. 回信跟他們說處理好了,並且去信詢問他,我是否可以公開這封信件 (去掉聯絡資訊) 放在 github.com/cofacts/takedown (repo還沒蓋)
3. 在該文章頁面下方,新增欄位,標明這個變更 (`2020-01-03: 接獲來自 xXXXx 的版權請求,將連結移除。詳情請見 https://github.com/Cofacts/takedow/xxx` )
4. 撰寫 Takedown 規則 (可以抄 github DCMA 嗎…… XD) 之後就照流程走
http://cofacts.g0v.tw/article/1ra070ac6gjju
裡面的影片連結刪除,來信也附有電影公司的委任證明電子版。
我們過去應該沒有類似的 SOP,而這個例子其實算是滿明顯的盜版,我覺得可以直接處理。不過,我想走類似 https://help.github.com/en/github/site-policy/dmca-takedown-policy#d-transparency 的做法,把這個 takedown request 記錄下來。
我這裡會採取的動作依序會是:
1. 24hr 內直接修改資料庫,把 http://cofacts.g0v.tw/article/1ra070ac6gjju 裡的影片網址改成「影片連結已刪除」,並且移除 hyperlinks 欄位
2. 回信跟他們說處理好了,並且去信詢問他,我是否可以公開這封信件 (去掉聯絡資訊) 放在 github.com/cofacts/takedown (repo還沒蓋)
3. 在該文章頁面下方,新增欄位,標明這個變更 (`2020-01-03: 接獲來自 xXXXx 的版權請求,將連結移除。詳情請見 https://github.com/Cofacts/takedow/xxx` )
4. 撰寫 Takedown 規則 (可以抄 github DCMA 嗎…… XD) 之後就照流程走
2
mrorz
19:42:21
不知道大家對這個處理方式有什麼想法呢?
2020-01-04
lucien
01:13:20
hmm… 你要用 github 的格式嗎? 像是這樣 https://github.com/github/dmca/blob/master/2019/10/2019-10-01-Webkul-4.md
GitHub
Repository with text of DMCA takedown notices as received. GitHub does not endorse or adopt any assertion contained in the following notices. Users identified in the notices are presumed innocent u...
lucien
01:14:58
我覺得挺好的
mrorz
2020-01-04 01:21:34
其實未來也可能會有狀況是
某篇貼文禁止轉載
但卻被貼到 LINE 轉傳,最後跑到 Cofacts 來
某篇貼文禁止轉載
但卻被貼到 LINE 轉傳,最後跑到 Cofacts 來
mrorz
2020-01-04 01:22:26
按照這個的話,因為不會是 fair use 所以應該會下架ㄅ
https://help.github.com/en/github/site-policy/dmca-takedown-policy
https://help.github.com/en/github/site-policy/dmca-takedown-policy
mrorz
2020-01-04 01:23:01
不知道 @delightfullychaotic 對這個有沒有什麼想法
delightfullychaotic
2020-01-04 01:46:23
我覺得蠻好的 我後來沒有比較認真追數位經濟後續的立法 但我估計這條台灣還沒有 所以就是直接改使用者規範
delightfullychaotic
2020-01-04 01:46:48
對不起我拖超久 如果我又拖超過農曆年 拜託請用對 @lucien 的方式對我(硬要tag
lucien
2020-01-04 03:06:13
嗚…我其實被溫柔地對待
mrorz
01:18:54
也可以,不過那是申請方要填寫的格式
我們目前沒有準備這個格式呢
我們目前沒有準備這個格式呢
mrorz
01:19:11
剛好這個狀況沒有太大爭議
我先拔連結再說?
我先拔連結再說?
mrorz
01:21:34
Replied to a thread: 2020-01-04 01:14:58
其實未來也可能會有狀況是
某篇貼文禁止轉載
但卻被貼到 LINE 轉傳,最後跑到 Cofacts 來
某篇貼文禁止轉載
但卻被貼到 LINE 轉傳,最後跑到 Cofacts 來
mrorz
01:22:26
按照這個的話,因為不會是 fair use 所以應該會下架ㄅ
https://help.github.com/en/github/site-policy/dmca-takedown-policy
https://help.github.com/en/github/site-policy/dmca-takedown-policy
mrorz
01:23:01
不知道 @delightfullychaotic 對這個有沒有什麼想法
delightfullychaotic
01:46:48
對不起我拖超久 如果我又拖超過農曆年 拜託請用對 @lucien 的方式對我(硬要tag
delightfullychaotic
01:57:25
*使用者規範要修的部分*
```1. 使用者轉傳進來的著作權問題
2. 非回應爭議的處理方式(例如著作權)
3. 編輯、使用者權限消失```
```1. 使用者轉傳進來的著作權問題
2. 非回應爭議的處理方式(例如著作權)
3. 編輯、使用者權限消失```
mrorz
2020-01-04 12:33:19
其實訊息是 chatbot 傳來的話,可能要看的不是網站平台使用規範,而是 chatbot 使用規範?
delightfullychaotic
01:57:52
深夜想睡覺 有其他應該要修 但是我記不得的 拜託請 thread 補上 感恩讚嘆
delightfullychaotic
01:59:43
至於現在我覺得就先擴大解釋第三章第第9條吧
https://docs.google.com/document/d/1hyoC9xEeKqvaKN5ahfyczUZCs2-j1a9mkg3qHQDcfK0/edit#
https://docs.google.com/document/d/1hyoC9xEeKqvaKN5ahfyczUZCs2-j1a9mkg3qHQDcfK0/edit#
1
mrorz
2020-01-05 00:13:37
有編輯大大向我私訊回報這個
https://cofacts.g0v.tw/reply/t1y0bG8Bd3n3h-WY-Y5R
我覺得即使我們還沒公告使用者規範(所以很難不告知而砍)
也可以在 Facebook 討論之後直接砍回應。
https://cofacts.g0v.tw/reply/t1y0bG8Bd3n3h-WY-Y5R
我覺得即使我們還沒公告使用者規範(所以很難不告知而砍)
也可以在 Facebook 討論之後直接砍回應。
mrorz
2020-01-05 12:03:03
@delightfullychaotic 請問針對上面這個罵髒話的
可以在 FB 討論時說 我們在規劃網站編輯規則,然後放出還沒完成的版本嗎?
可以在 FB 討論時說 我們在規劃網站編輯規則,然後放出還沒完成的版本嗎?
delightfullychaotic
2020-01-05 12:05:13
我覺得這用現行就能砍掉了 編輯大大就是申訴者 我們直接照流程把他砍掉吧
delightfullychaotic
2020-01-05 12:05:27
這樣看來要多一條善良風俗wwww
mrorz
2020-01-05 16:32:52
可以 w
lucien
03:06:13
嗚…我其實被溫柔地對待
mrorz
12:33:19
其實訊息是 chatbot 傳來的話,可能要看的不是網站平台使用規範,而是 chatbot 使用規範?
mrorz
16:58:16
Now on staging: “Subscribe to this list” button & RSS feed
• 可以訂閱「尚未回覆」「已回覆」「全部」列表
• 可以訂閱特定關鍵字(但排序僅有相關度,需要 API 改進)
https://cofacts.hacktabl.org/articles
• 可以訂閱「尚未回覆」「已回覆」「全部」列表
• 可以訂閱特定關鍵字(但排序僅有相關度,需要 API 改進)
https://cofacts.hacktabl.org/articles
mrorz
2020-01-04 23:58:09
Pending PR review:
https://github.com/cofacts/rumors-site/pull/210
https://github.com/cofacts/rumors-site/pull/210
fly
17:20:28
還有 Add to Feedly 好貼心!
mrorz
2020-01-04 17:28:09
我想要 add to ifttt 但 ifttt 不吃我的 feed
不知道為什麼囧
只查到這個 https://help.ifttt.com/hc/en-us/articles/115010396768-My-RSS-feed-is-not-working-correctly
不知道為什麼囧
只查到這個 https://help.ifttt.com/hc/en-us/articles/115010396768-My-RSS-feed-is-not-working-correctly
mrorz
17:28:09
我想要 add to ifttt 但 ifttt 不吃我的 feed
不知道為什麼囧
只查到這個 https://help.ifttt.com/hc/en-us/articles/115010396768-My-RSS-feed-is-not-working-correctly
不知道為什麼囧
只查到這個 https://help.ifttt.com/hc/en-us/articles/115010396768-My-RSS-feed-is-not-working-correctly
IFTTT Help Center
The RSS feed service is a great way to pipe a blog or website into IFTTT and build connections with it. However, not all feeds are created equal, and some work better with IFTTT than others. Here a...
1
mrorz
23:58:09
Pending PR review:
https://github.com/cofacts/rumors-site/pull/210
https://github.com/cofacts/rumors-site/pull/210
GitHub
This PR implements part of #170 Adds RSS endpoint: /api/articles/rss2, /api/articles/atom1, /api/articles/json1 Each endpoint supports same URL query as article page. For instance, /api/articles/r...
2020-01-05
mrorz
00:13:37
Replied to a thread: 2020-01-04 01:59:43
有編輯大大向我私訊回報這個
https://cofacts.g0v.tw/reply/t1y0bG8Bd3n3h-WY-Y5R
我覺得即使我們還沒公告使用者規範(所以很難不告知而砍)
也可以在 Facebook 討論之後直接砍回應。
https://cofacts.g0v.tw/reply/t1y0bG8Bd3n3h-WY-Y5R
我覺得即使我們還沒公告使用者規範(所以很難不告知而砍)
也可以在 Facebook 討論之後直接砍回應。
mrorz
12:03:03
@delightfullychaotic 請問針對上面這個罵髒話的
可以在 FB 討論時說 我們在規劃網站編輯規則,然後放出還沒完成的版本嗎?
可以在 FB 討論時說 我們在規劃網站編輯規則,然後放出還沒完成的版本嗎?
delightfullychaotic
12:05:13
我覺得這用現行就能砍掉了 編輯大大就是申訴者 我們直接照流程把他砍掉吧
delightfullychaotic
12:05:27
這樣看來要多一條善良風俗wwww
mrorz
16:32:52
可以 w
2020-01-06
mrorz
13:49:41
facebook.com
Cofacts 在這個週末,遇到了 2 個與資料庫有關的事情, 希望與大家討論看看。 # 個案 :one: :Line 使用者回報的訊息被控侵權 上周五我們收到一封來自「青島媒體屋商務服務有限公司」的維權請求,要求我們 24 小時內移除這個這篇訊息裡的 URL: <http://cofacts.g0v.tw/article/1ra070ac6gjju>...
2020-01-07
Robin
03:34:23
@robinlee416 has joined the channel
katharin
21:10:51
@katharin.tai_g0v has joined the channel
2020-01-08
lucien
19:59:24
今天公司加班pass
darkbtf
21:56:48
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html
^好像可以耶,但要先對 nested object (在這邊是 articleReply) 做 index
^好像可以耶,但要先對 nested object (在這邊是 articleReply) 做 index
- 👍2
darkbtf
22:11:39
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-request-body.html#request-body-search-sort
好像是這個 sort 方法才對,裡面有個 nested_filter 可以用來找這個人回過的訊息來排序
好像是這個 sort 方法才對,裡面有個 nested_filter 可以用來找這個人回過的訊息來排序
2
2020-01-13
mrorz
02:03:39
facebook.com
【國際媒體看臺灣大選:face_with_monocle:】 昨天魔法部長才舉行選前外媒記者會 今天就看到美國:us: PBS 製作了超~完整的專題報導~ 只能說臺灣這次的選舉 #全世界都在看‼️ 近10分鐘的影片 小編發現國外媒體非常關注這次 #中國介選 的情形呢 :scream: 像是報導中提到了 #CoFacts真的假的 第三方事實查核網站 在大選期間蒐集了充斥網路媒體的可疑資訊 藉由採訪「CoFacts」的機會 PBS也針對 #假訊息...![]()
- 😂5
- 🧝♂️5
- 🧝♀️4
- 🔮4
mrorz
14:06:34
(目前排定每天中午 12:30 重啟)
ichieh
16:57:38
hi 大家好,我是揪松團的以婕,本周六(1/18)14:00-18:00 將會在 NPO HUB 舉行第拾伍次基礎松,當天揪松團想要做出一張屬於 g0v 社群 2019 的年表以及包含各專案的 Impact Report,因此想詢問 cofacts 當天會不會有人出席一起討論?
報名請從此去 >> https://g0v-jothon.kktix.cc/events/infrath15n
報名請從此去 >> https://g0v-jothon.kktix.cc/events/infrath15n
mrorz
2020-01-13 17:21:46
我中午會實驗室聚餐 QQ 或許下午可以到?
ichieh
2020-01-13 17:23:17
是下午唷!快來報名,一起討論 😆
比鄰報名了
ichieh
2020-01-13 18:31:08
比鄰 ❤️ ❤️ ❤️
❤️❤️❤️
mrorz
17:21:46
我中午會實驗室聚餐 QQ 或許下午可以到?
ichieh
17:23:17
是下午唷!快來報名,一起討論 😆
bil
18:14:58
比鄰報名了
ichieh
18:31:08
比鄰 ❤️ ❤️ ❤️
2020-01-14
lunkai
13:31:52
@kaikaikai1219 has joined the channel
bil
18:02:01
❤️❤️❤️
mrorz
21:08:13
Johnson Liang
![]()
![]()
賺外快的機會來囉~
隨著 Cofacts 專案邁入第四年,我們希望在 2020 年*招募到工作夥伴*進行短期的衝刺,將 Cofacts 推進到下一個階段。招募的職位有:
- Moderator
- ReactJS & NodeJS 全端工程師
- Data Scientist
- Finance Administrative(短期聘僱)
詳請請洽 👇 👇
https://hackmd.io/@mrorz/ryCkHVoe8
- Forwarded from #general
- 2020-01-14 21:07:17
bangyu
2020-01-15 21:39:01
嗨嗨~想問一下 Data Scientist 看到上面寫兩名,這樣會是 Data Engineer + Data Scientist 或是兩個 Data Scientist?
mrorz
2020-01-16 01:26:44
這題請 @ggm 回答 XD
欸⋯ 我是沒有切想那麼細,就是徵兩位 Data Scientist 但他們要會做 Data Engineering 有什麼想法也可以寄信給我們或是私訊我 XD
mrorz
2020-01-16 10:51:03
_第一次擔任總機就上手_
bangyu
2020-01-16 18:12:01
就看看pipeline要做到甚麼程度,因為對我來說是不一樣的專業 哈哈
bangyu
2020-01-16 18:12:28
我是 Data engineer XD
嗯嗯就自己評估囉 XD 我們職缺不多徵的人也不多,沒辦法分工分太細,就都要會一點,像是我們沒有分前後端直接徵全端的概念 XD
ael
22:45:11
你們希望高調徵人還是低調徵人啊?可以轉貼各種社團嗎
mrorz
2020-01-15 10:56:56
感謝幫忙轉貼 Facebook,GA 顯示有不少人在看招募公告 m(_ _)m
現階段我們覺得先拉認識的朋友或朋友的朋友比較方便唷~
現階段我們覺得先拉認識的朋友或朋友的朋友比較方便唷~
2020-01-15
mrorz
10:56:56
Replied to a thread: 2020-01-14 22:45:11
感謝幫忙轉貼 Facebook,GA 顯示有不少人在看招募公告 m(_ _)m
現階段我們覺得先拉認識的朋友或朋友的朋友比較方便唷~
現階段我們覺得先拉認識的朋友或朋友的朋友比較方便唷~
- 🙌3
mrorz
13:25:50
yajc44
2020-01-15 19:24:21
@bil @mrorz 大大,超抱歉我從上禮拜到現在深陷年初kpi與年前趕設計的雙重地獄中天天在加班,上次的onboarding 與我後來無可自拔多做但還沒做完的flow 再給我一點時間過年放假時完成傳給你們 🙇♀️
沒關係唷沒關係喲~~~非常謝謝JC,請請請多照顧自己> <祝你新年快樂~~~~
yajc44
19:24:21
@bil @mrorz 大大,超抱歉我從上禮拜到現在深陷年初kpi與年前趕設計的雙重地獄中天天在加班,上次的onboarding 與我後來無可自拔多做但還沒做完的flow 再給我一點時間過年放假時完成傳給你們 🙇♀️
bil
19:51:37
沒關係唷沒關係喲~~~非常謝謝JC,請請請多照顧自己> <祝你新年快樂~~~~
mrorz
21:19:43
devcenter.heroku.com
A tutorial showing how to get started with the Heroku Platform API, which lets you programmatically automate, extend and combine Heroku with other services.
mrorz
21:20:24
geekytidbits.com
The Heroku Scheduler is a simple and handy add-on for any Heroku application, to run recurring commands. I recently had the need to run a Heroku CLI command from within the Scheduler itself. Why would you need to do such a thing? In my case, at <https://youneedabudget.com|YNAB>, we have an app pipeline which includes a staging app for our marketing site. We don’t want this staging app running all the time for various reasons, including not wanting others to accidently stuble upon it and not wanting search engines to crawl it. So, we wanted to put the app in maintenace mode on a scheduled basis. When we deploy an update to the staging app we take the app out of maintenance mode as part of the deployment process but then we want the Scheduler to automatically take it back into maintence mode.
bangyu
21:39:01
嗨嗨~想問一下 Data Scientist 看到上面寫兩名,這樣會是 Data Engineer + Data Scientist 或是兩個 Data Scientist?
- 👍1
2020-01-16
Leo
00:40:18
@wtlin1228 has joined the channel
mrorz
01:26:44
這題請 @ggm 回答 XD
ggm
01:48:15
欸⋯ 我是沒有切想那麼細,就是徵兩位 Data Scientist 但他們要會做 Data Engineering 有什麼想法也可以寄信給我們或是私訊我 XD
bangyu
18:12:01
就看看pipeline要做到甚麼程度,因為對我來說是不一樣的專業 哈哈
bangyu
18:12:28
我是 Data engineer XD
2020-01-17
ggm
01:09:43
嗯嗯就自己評估囉 XD 我們職缺不多徵的人也不多,沒辦法分工分太細,就都要會一點,像是我們沒有分前後端直接徵全端的概念 XD
mrorz
13:46:50
我現在要來在 production server 測 @acerxp511 的 token change script 囉
mrorz
13:47:03
如果順利的話,以後應該都不會有 token expire 事件發生惹 QQ
mrorz
13:47:15
但如果不順利,等一下 chatbot 就會壞掉 XD
mrorz
13:50:42
看起來成功囉!!
cron job 設起來~
感謝 @acerxp511 m(_ _)m
cron job 設起來~
感謝 @acerxp511 m(_ _)m
mrorz
13:59:07
```0 20 1,15 * * cd /home/docker/rumors-deploy; bash scripts/update-line-bot-token.sh >> /var/log/cron.log 2>&1```
每個月 2 日、16 日凌晨 4am 會更新
一個月兩次是怕其中一次失敗,還有另一次可以 cover ~
每個月 2 日、16 日凌晨 4am 會更新
一個月兩次是怕其中一次失敗,還有另一次可以 cover ~
1- 🙌2
2020-01-20
ichieh
12:24:51
嗨 cofacts 的大家,我是 g0v 揪松團的以婕,揪松團在 2020/02/02 (Sun.)預計要舉辦一場坑主小聚(坑抗 Keng of Conf),活動採邀請制,需要統計一下每個坑要給幾個邀請碼,報名收單時間為 1/29 中午 12:00 前,再麻煩想參加的朋友填寫 google 表單。
邀請碼索取表單:http://bit.ly/kenginvite
坑抗共筆:https://g0v.hackmd.io/@jothon/confkeng2020
邀請碼索取表單:http://bit.ly/kenginvite
坑抗共筆:https://g0v.hackmd.io/@jothon/confkeng2020
Google Docs
活動時間:2020/02/02 (日) 14:00 - 18:00 地點:登記完成後的 Email 會說明,注意:未登記請勿參加小聚 坑主小聚共筆:<https://g0v.hackmd.io/@jothon/confkeng2020> KKTIX 活動報名頁面:<https://g0v-jothon.kktix.cc/events/kengconf01> 本活動採邀請制,邀請碼收單時間為 1/29(三)初五 中午(12:00)。 若有任何問題請於 g0v Slack @ichieh @bess,謝謝。![]()
1- 🐳1
2020-01-21
Moooo
12:02:40
@betitaiwan has joined the channel
2020-01-22
justin
01:11:13
@justin.blinder has joined the channel
mrorz
13:43:27
ggm
17:11:07
欸突然想到某次 @mrorz 說有個 state machine lib 潮潮的叫啥去了 XDD
ggm
17:11:55
噢
ggm
17:11:57
xstate
mrorz
17:29:24
對 xstate
mrorz
17:29:32
最近用了一下
真不錯
真不錯
wisezeiro
19:42:36
那我等一下先趕稿然後如果有問題再跟你們說喔
2020-01-23
Mee
10:13:31
@mee has joined the channel
mrorz
17:18:17
coinsence.org
<http://Coinsence.org|Coinsence.org> is a decentralized network that empower changemakers and organizations to collaborate on projects that benefit society.![]()
lucien
20:11:46
看不出來有做了什麼
skygamer
22:54:09
@skygamer has joined the channel
2020-01-26
SinRin D. Tsai
14:02:55
@david.tsai0811 has joined the channel
2020-01-28
allenlinli
11:47:56
請問一下,這邊同時是美玉姨專案的討論區嗎?
allenlinli
11:49:52
我在臉書上搜尋「美玉姨」,查到唯一個社團搜尋結果是「美玉姨哪裡壞掉了不是 cofacts 的錯討論區」
這個唯一的社團搜尋結果很顯眼,所以我想給美玉姨社團建議
這個唯一的社團搜尋結果很顯眼,所以我想給美玉姨社團建議
rockhung
2020-01-28 15:01:57
作者有在該社團裡面回應
rockhung
2020-01-28 15:02:06
徐曦
mrorz
2020-01-28 15:51:42
對就是那個社團,請 @allenlinli 到那個社團討論美玉姨專案唷
allenlinli
2020-01-28 15:58:15
喔喔,原來它本身就是美玉姨的官方討論社團 Orz
我沒有仔細讀底下的留言,只看到前兩篇都是批評美玉姨的
感謝回應~
我沒有仔細讀底下的留言,只看到前兩篇都是批評美玉姨的
感謝回應~
rockhung
15:01:57
作者有在該社團裡面回應
rockhung
15:02:06
徐曦
mrorz
15:51:42
對就是那個社團,請 @allenlinli 到那個社團討論美玉姨專案唷
mrorz
15:53:15
我在看能不能生出 article-reply 列表的 API
https://github.com/cofacts/rumors-api/issues/129
但根據目前的 db mapping ( https://beta.hackfoldr.org/1yXwRJwFNFHNJibKENnLCAV5xB8jnUvEwY_oUq-KcETU/https%253A%252F%252Fhackmd.io%252Fs%252FBkxbQ8ZbM )
當時因為 query 速度所以把 articleReply 設計成 articles 底下的 nested object 而沒有選擇 parent/child ( https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-performance.html )
但實際上我們不常用 nested query,現在反而需要 articleReply 列表,nested object 沒辦法做到這個囧
https://github.com/cofacts/rumors-api/issues/129
但根據目前的 db mapping ( https://beta.hackfoldr.org/1yXwRJwFNFHNJibKENnLCAV5xB8jnUvEwY_oUq-KcETU/https%253A%252F%252Fhackmd.io%252Fs%252FBkxbQ8ZbM )
當時因為 query 速度所以把 articleReply 設計成 articles 底下的 nested object 而沒有選擇 parent/child ( https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-performance.html )
但實際上我們不常用 nested query,現在反而需要 articleReply 列表,nested object 沒辦法做到這個囧
GitHub
<https://g0v.hackmd.io/SLdQ6HlETYO4NWmfVYsB1g> 之後想要做一個 article reply 列表,比較能反映大家的 contribution 要 notify 使用者來看的話,有這樣的列表也是好事 另外還可以加上有用 / 沒用程度 filter
mrorz
2020-01-28 16:57:21
看起來 nested aggregation + terms sub-aggregation 有機會可以做到「列出 nested object “articleReply”」但不支援 sorting 與 pagination ⋯⋯
mrorz
2020-01-28 16:57:46
有一個加強版 terms aggregation 叫做 composite aggregation
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/search-aggregations-bucket-composite-aggregation.html
但似乎要到 ES7 才支援把 composite aggregation 放在 nested aggregation 之下,而我們正在用 ES6.2.3:
https://github.com/elastic/elasticsearch/issues/28611
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/search-aggregations-bucket-composite-aggregation.html
但似乎要到 ES7 才支援把 composite aggregation 放在 nested aggregation 之下,而我們正在用 ES6.2.3:
https://github.com/elastic/elasticsearch/issues/28611
mrorz
2020-01-28 22:18:30
ES7 看起來確實可以達成我們要的東西
• 列出所有 articleReply
• sort by `articleReply` 的 `createdAt`
• 可以翻頁(cursor-based)
有待研究:
• 指定每頁數量
• filter by `articleReply` 的 `userId` 或 `negativeFeedbackCount` (這不容易,可能達不到:https://github.com/elastic/elasticsearch/issues/28611 )
• 列出所有 articleReply
• sort by `articleReply` 的 `createdAt`
• 可以翻頁(cursor-based)
有待研究:
• 指定每頁數量
• filter by `articleReply` 的 `userId` 或 `negativeFeedbackCount` (這不容易,可能達不到:https://github.com/elastic/elasticsearch/issues/28611 )
allenlinli
15:58:15
喔喔,原來它本身就是美玉姨的官方討論社團 Orz
我沒有仔細讀底下的留言,只看到前兩篇都是批評美玉姨的
感謝回應~
我沒有仔細讀底下的留言,只看到前兩篇都是批評美玉姨的
感謝回應~
mrorz
16:57:21
看起來 nested aggregation + terms sub-aggregation 有機會可以做到「列出 nested object “articleReply”」但不支援 sorting 與 pagination ⋯⋯
mrorz
16:57:46
有一個加強版 terms aggregation 叫做 composite aggregation
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/search-aggregations-bucket-composite-aggregation.html
但似乎要到 ES7 才支援把 composite aggregation 放在 nested aggregation 之下,而我們正在用 ES6.2.3:
https://github.com/elastic/elasticsearch/issues/28611
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/search-aggregations-bucket-composite-aggregation.html
但似乎要到 ES7 才支援把 composite aggregation 放在 nested aggregation 之下,而我們正在用 ES6.2.3:
https://github.com/elastic/elasticsearch/issues/28611
GitHub
The 6.x new composite aggregation provides a way to scroll and page on terms bucket, and it&#39;s a good thing. However, it&#39;s not (for now?) possible to set a composite aggregation as a child o...
mrorz
22:18:30
ES7 看起來確實可以達成我們要的東西
• 列出所有 articleReply
• sort by `articleReply` 的 `createdAt`
• 可以翻頁(cursor-based)
有待研究:
• 指定每頁數量
• filter by `articleReply` 的 `userId` 或 `negativeFeedbackCount` (這不容易,可能達不到:https://github.com/elastic/elasticsearch/issues/28611 )
• 列出所有 articleReply
• sort by `articleReply` 的 `createdAt`
• 可以翻頁(cursor-based)
有待研究:
• 指定每頁數量
• filter by `articleReply` 的 `userId` 或 `negativeFeedbackCount` (這不容易,可能達不到:https://github.com/elastic/elasticsearch/issues/28611 )
2020-01-29
mrorz
13:18:26
lucien
23:52:19
- ❤️2
2- 🐳2
- 🦒2
2020-01-30
bil
01:25:40
謝謝小鹿
bil
01:27:33
cofacts.kktix.cc
個月一次,用一個下午的時間加入 Cofacts 團隊,一起工作闢謠解惑,你就是改變台灣的假新聞終結者。 來編輯小聚就送限量 Cofacts 貼紙。回應超過200篇,送委外設計的LINE貼圖!![]()
2020-01-31
bil
20:09:24
好喔感謝感謝,補充:加上
2019新型冠狀病毒,參加cofacts闢謠活動了解更多🖐️
歡迎戴口罩闢謠😷
2019新型冠狀病毒,參加cofacts闢謠活動了解更多🖐️
歡迎戴口罩闢謠😷
mrorz
2020-01-31 23:16:54
其實我會比較希望 2/8 的時候疫情已經降溫到健康的人不用口罩啦⋯⋯ XD
大專院校延後開學喔我覺得沒那麼容易xD
不戴口罩也沒關係啦我是要說這不是個不能戴口罩的場域
不戴口罩也沒關係啦我是要說這不是個不能戴口罩的場域
mrorz
23:16:54
其實我會比較希望 2/8 的時候疫情已經降溫到健康的人不用口罩啦⋯⋯ XD