cofacts

Month: 2020-12

2020-12-01

github 13:28:26

Review on #235 Feature/dialogflow

LGTM! One minor nice-to-have comment is added. I am deploying this to staging so that everyone can try it out.

github 13:28:26

Comment on #235 Feature/dialogflow

nit: seems that we can directly `return responses[0]` so that we don't need `intentResponse` variable anymore.

mrorz 13:33:27
@jojomango 的 fix 上 production 囉
非常感謝 m(_ _)m
github 18:24:45

Comment on #232 user profile related api changes

`updatedAt` is returned by `GetUser` I'm checking that `updatedAt` shouldn't be changed since last test file, and that's why MockDate is different for all test cases (line 14 at *tests*/UpdateUser.js but let me change current time to a more readable time

github 19:56:01

Comment on #237 fix typo in openpeeps json

<https://coveralls.io/builds/35356033|Coverage Status> Coverage decreased (-0.06%) to 86.188% when pulling *<https://github.com/cofacts/rumors-api/commit/69cf776af03686833a0e63430f60e4da14b2437b|69cf776> on typo* into *<https://github.com/cofacts/rumors-api/commit/18c99cddf67f2292ef88e2cfa451fe7129bc4095|18c99cd> on master*.

github 20:45:16

#239 Update all dependencies

reopen PR accidentally closed <https://github.com/cofacts/rumors-api/pull/173|#173>

github 20:57:11

Review on #238 fix typo in openpeeps json

Thanks for spotting the typo!

github 21:56:31

#357 support openpeeps avatar

*storybook:* <https://user-images.githubusercontent.com/1817638/100747027-76b16d00-341c-11eb-847b-902d2d13d556.png|Screen Shot 2020-12-01 at 7 44 36 PM> *relies and feedbacks:* <https://user-images.githubusercontent.com/1817638/100747087-9052b480-341c-11eb-992f-0d069168f2ec.png|Screen Shot 2020-12-01 at 7 44 22 PM> *replyrequest:* <https://user-images.githubusercontent.com/1817638/100747127-9ea0d080-341c-11eb-93b1-b1d31a1315fe.png|Screen Shot 2020-12-01 at 7 29 52 PM> *reply list:* <https://user-images.githubusercontent.com/1817638/100747176-ac565600-341c-11eb-9515-572118ebdf5a.png|Screen Shot 2020-12-01 at 7 29 14 PM> <https://user-images.githubusercontent.com/1817638/100747177-ad878300-341c-11eb-98a9-a100804c9e4c.png|Screen Shot 2020-12-01 at 7 28 59 PM> *header:* <https://user-images.githubusercontent.com/1817638/100749591-d4938400-341f-11eb-8fcb-f42e748465da.png|Screen Shot 2020-12-01 at 9 46 41 PM>

github 23:46:59

Comment on #235 Feature/dialogflow

• 目的 • 建立「Cofacts 會如何在群組裡對話」的示範 • more _accurate_ view count • 功能 • 還是會在群組裡自動回話,但只限於: • 訊息相似度幾乎完全命中 • Category: 醫藥保健、COVID-19、資訊安全 • 狀態:has useful reply 且標為「含有錯誤訊息」、「含有個人意見」 &gt; 過去收到的 feedback 是在群組裡回話會中斷討論流程,尤其是「不在查證範圍」 • 針對群組內「已經有人回報」的訊息 (不限於會自動回話的): • 送 google analytics viewed 數 • 若群組內有 5 人,一次要加幾個 view count? • 算是一個人、一次 view count [name=bil] • view 過 article 不代表有 view 過 reply • 還是算一次 view article [name=bil] • 自動送出 reply request (?) • 在群組裡被送入,不要送 reply request,因為這與「發問」不同 [name=bil] • 增加 google analytics count 就好 [name=bil] • 幫群組裡有加 cofacts 的人建立 `userArticleLink` • 放的話他可以收到新回應推播 [name=mrorz] • 「看過的訊息」是私人的體驗,放了會有點破壞。先不要 [name=bil] • 先不要功能 • 私訊群組裡有加 cofacts 的人 • <https://g0v.hackmd.io/-j-fAX0tS62amv9LejshOg#%E7%BE%A4%E7%B5%84%E8%A8%8A%E6%81%AF|原始提案>中的「hash 保存」 • 技術 • Job queue (open-source 版美玉姨的做法) • delay: reply token 到期之前能回就好 • 材料 • 自介 wording • 被 tag 時再自我介紹即可 • 回應時的 wording • FAQ:隱私疑慮、bot 誰做的、跟美玉姨的差別 • 放主頁置頂即可

github 23:49:08

Comment on #13 支援 LINE chatbot 群組聊天

<https://g0v.hackmd.io/Sl_84QO8TQ6WKKI0bT4pYw#TODO|20201104 Discussion>: • 目的 • 建立「Cofacts 會如何在群組裡對話」的示範 • more _accurate_ view count • 功能 • 還是會在群組裡自動回話,但只限於: • 訊息相似度幾乎完全命中 • Category: 醫藥保健、COVID-19、資訊安全 • 狀態:has useful reply 且標為「含有錯誤訊息」、「含有個人意見」 &gt; 過去收到的 feedback 是在群組裡回話會中斷討論流程,尤其是「不在查證範圍」 • 針對群組內「已經有人回報」的訊息 (不限於會自動回話的): • 送 google analytics viewed 數 • 若群組內有 5 人,一次要加幾個 view count? • 算是一個人、一次 view count [name=bil] • view 過 article 不代表有 view 過 reply • 還是算一次 view article [name=bil] • 自動送出 reply request (?) • 在群組裡被送入,不要送 reply request,因為這與「發問」不同 [name=bil] • 增加 google analytics count 就好 [name=bil] • 幫群組裡有加 cofacts 的人建立 `userArticleLink` • 放的話他可以收到新回應推播 [name=mrorz] • 「看過的訊息」是私人的體驗,放了會有點破壞。先不要 [name=bil] • 先不要功能 • 私訊群組裡有加 cofacts 的人 • <https://g0v.hackmd.io/-j-fAX0tS62amv9LejshOg#%E7%BE%A4%E7%B5%84%E8%A8%8A%E6%81%AF|原始提案>中的「hash 保存」 • 技術 • Job queue (open-source 版美玉姨的做法) • delay: reply token 到期之前能回就好 • 材料 • 自介 wording • 被 tag 時再自我介紹即可 • 回應時的 wording • FAQ:隱私疑慮、bot 誰做的、跟美玉姨的差別 • 放主頁置頂即可

2020-12-02

mrorz 10:25:41
@stbb1025 設計、 @yutunghsiao19 實作的新 landing page 放到 staging 囉
大家可以玩玩看:

中文版 https://dev-zh.cofacts.org/
英文版 https://dev-en.cofacts.org/

dev-zh.cofacts.org

Cofacts - Connecting facts and instant messages

「Cofacts 真的假的」是一套連結網路訊息與查證訊息的協作型系統,試圖對假訊息問題作出草根應對。

dev-en.cofacts.org

Cofacts - Connecting facts and instant messages

Cofacts is a collaborative system connecting instant messages and fact-check reports or different opinions together. It's a grass-root effort fighting mis/disinformation in Taiwan.

❤️ 5
mrorz 10:26:13
Haiyaa 我們需要一個新的 og-image XD
chihao 12:27:45
Haiyaa
github 13:55:10

Review on #232 user profile related api changes

Thanks for the explanation! Let's merge this :+1:

github 14:50:29

Comment on #356 Landing page

I prefer not using `AppLayout` in `src/index` at all, instead of adding more logic to `AppLayout` to support the landing page. `AppLayout` is designed for application pages with header. It seems that the only common part between application pages and the landing page is the app footer and the login dialog. If that is the case, I suggest using `AppLayout/AppFooter` and `AppLayout/LoginModal` in `src/index` directly. Also, `LandingPageHeader` can be isolated from `AppLayout/AppHeader` and move to under `LandingPage` directory; since it's only used in `LandingPage`, it should be more straightforward to host it there.

github 14:50:29

Review on #356 Landing page

Hello <https://github.com/hsiao19|@hsiao19> thanks for the implementation! After comparing the landing page with other pages in the application, I think it makes sense when we re-use `AppLayout/AppFooter.js` and `AppLayout/LoginModal.js`. Thank you for updating the style within these two components to the latest look! However, I think we don't need to apply the entire `AppLayout/AppLayout.js` in landing page (`src/index.js`), because landing page look and works differently from application content. I suggest that in `src/index.js`, we just import the components we want to re-use from `AppLayout` directory, but we do not need to wrap it with `&lt;AppLayout&gt;`, and `AppLayout` should not be modified to support the use in landing page.

github 14:50:29

Comment on #356 Landing page

I think the browser already handles scroll position across navigation. Why should we reset scroll here?

2020-12-03

2020-12-04

weiyu zhang 11:46:06
@viyucheung has joined the channel

2020-12-05

kidstarkenny 01:50:16
@kidstarkenny has joined the channel
bil 13:03:22
等一下cofacts 2點在魔法學校三樓的R3有蹦蹦跳跳工作坊喔,準時開始喔來來來

(不會真的身體跳起來,蹦蹦跳跳只是我很興奮哪)
🙌 2
Roy Liu 13:39:44
@king8951 has joined the channel
👋 1
allenhlkuo 13:45:30
@allenhlkuo has joined the channel
itingo 13:49:08
@itingfan has joined the channel
Chloe 14:36:49
@chloeweidepei has joined the channel
clairecyliu 14:36:54
@clairecyliu has joined the channel
Shane C. 14:37:09
@shengpingchang1991 has joined the channel
applebook102 14:37:20
@applebook102 has joined the channel
cuemoya 16:05:12
@cuemoya has joined the channel
bil 19:02:10
嗚嗚嗚謝謝大家願意捧場,坐滿感人(;´༎ຶД༎ຶ`)我昨晚擔心到做惡夢
❤️ 9

2020-12-06

Alban 10:56:51
@albanrpy has joined the channel
Will Ou 11:00:25
@oujiaang514 has joined the channel
Vivian Chen 15:30:00
@viviantp6 has joined the channel
github 16:39:47

#358 fetch reference in reply

<https://github.com/cofacts/rumors-site/issues/285|#285> add reference in gql

github 17:43:50

Review on #356 Landing page

Thanks for <https://github.com/hsiao19|@hsiao19> for fixing key errors and the `InputBox` storybook &amp; design! JS review is completed, I am addressing CSS part in next review.

github 17:43:50

Comment on #356 Landing page

I think we can translate this~ Suggested change

github 17:43:50

Comment on #356 Landing page

As we don't use `&lt;AppLayout&gt;` in landing page anymore. I suggest reverting `pathname` related changes here as well.

2020-12-07

isabelhou 10:21:55
Politifact’s funding model: https://www.politifact.com/who-pays-for-politifactOther big medias such as AP or Wapo has its own fact checking team
02:50 CKCheng Factcheck.org’s funding model is also donation :https://www.factcheck.org/our-funding/
02:50 CKCheng Another good fact check org: https://metafact.io/how_it_works
02:50 CKCheng Funding model: https://metafact.io/support_us

2020-12-08

github 12:20:51

Review on #235 Feature/dialogflow

Thanks for the fix! Let's merge this :+1:

github 12:24:33

Comment on #235 Feature/dialogflow

It's weird that I always got error1 if intent input &gt; 256 characters.. error1 <https://user-images.githubusercontent.com/6376572/101439407-65ea8500-394f-11eb-9469-79ffbd820112.png|https://user-images.githubusercontent.com/6376572/101439407-65ea8500-394f-11eb-9469-79ffbd820112.png> error2 <https://user-images.githubusercontent.com/6376572/101439395-5ec37700-394f-11eb-806f-7e8728a65a74.png|https://user-images.githubusercontent.com/6376572/101439395-5ec37700-394f-11eb-806f-7e8728a65a74.png>

github 13:30:51

Comment on #235 Feature/dialogflow

&gt; It's weird that I always got error1 if intent input &gt; 256 characters.. &gt; &gt; error1 &gt; <https://user-images.githubusercontent.com/6376572/101439407-65ea8500-394f-11eb-9469-79ffbd820112.png|https://user-images.githubusercontent.com/6376572/101439407-65ea8500-394f-11eb-9469-79ffbd820112.png> Would that error go away if we change <https://github.com/cofacts/rumors-line-bot/pull/235/files#diff-899b7ebc30d32f645a19cb6b425fd98b347ba981bed7091b3bd4c17daf07f034R23|`sessionId` generation> to be URL-safe? Such as `crypto.randomBytes(16).toString('hex')` instead of using raw bytes.

github 13:52:48

#359 iOS safari &lt;= 12 cannot find intersection observer

Visiting cofacts article page using iPhone 6 (iOS 8, 11, 12) will show "An unexpected error has occurred". Intersection observer was <https://webkit.org/blog/8582/intersectionobserver-in-webkit/|delivered in iOS 12.2> *Compatibility* iOS 8, 11, 12: <https://user-images.githubusercontent.com/108608/101445284-30986400-395c-11eb-9253-9391b80f0765.png|image> <https://user-images.githubusercontent.com/108608/101445055-bec01a80-395b-11eb-97af-cadfd5329c72.png|image> <https://user-images.githubusercontent.com/108608/101445530-a0a6ea00-395c-11eb-9d11-465055d26458.png|image> iOS 13+ should work. <https://user-images.githubusercontent.com/108608/101445467-853bdf00-395c-11eb-84ef-fc93185a686e.png|image> *Regression* `IntersectionObserver` was introduced into Cofacts code base <https://github.com/cofacts/rumors-site/commits/76e947d115a69cdd7f593316547997fb8fa80cb9|6 months ago>, so the problem persisted for 6 months. *Browser support* 根據過去的<https://g0v.hackmd.io/@mrorz/rksKX45D8#LIFF-compatibility|會議記錄> 我們應該要盡量支援到 iOS Safari version 10.3,故應該要補上 <https://github.com/w3c/IntersectionObserver/tree/master/polyfill|polyfill>.

github 14:08:25

#360 Collapse long references text

According to <https://g0v.hackmd.io/vErWoVXYRTKnxpID610C-A?both#%E7%B6%B2%E7%AB%99-UX|20201202 discussion>, when reply is long, it's difficult to differentiate two references. We can collapse long text, reference section and hyperlink section together when • reply text + reference + hyperlink exceeds a certain height or line count. • there are multiple replies for the article. Need to see if `ExpandableText` supports such need.

QMO Lee 22:31:30
@yudgrayman has joined the channel

2020-12-09

hsiao 23:07:28
升級動畫翻譯 https://docs.google.com/spreadsheets/d/1HlcoAXqFSeGwl4BrNEYBnYvw73_BTdc9oQ1WC3virpI/edit#gid=0
@mrorz 開權限囉,再麻煩你看看有沒有
感謝感謝

@lucien @stbb1025 那個「好的」因為放在「請繼續為真真假假的世界盡一份力!」後面,所以我翻成「I’ve got your back」,看要不要把中文也改成「包在我身上」
在按鈕用語上勒索一波 (?)
(比起要求開啟推播的「忍痛放棄」這樣應該還好ㄅ)
我覺得可以喔
❤️ 1

2020-12-10

gaga5lala 10:50:45
@gaga5lala has joined the channel
kidstarkenny 11:12:08
感謝會議紀錄
mrorz 13:54:36
【下線維護公告】
Cofacts 將在 12/11 凌晨 1:00 - 1:30 下線維修,屆時 Cofacts 網站、API 服務以及 Cofacts chatbot 都將會無法使用唷。

下線維護詳細內容:https://g0v.hackmd.io/NqPf1SfPQEGOZ3Z6h7Q7wA?view#Migration

g0v.hackmd.io

20201209 會議記錄 - HackMD

維護已經完成囉!

2020-12-11

chaoh 22:04:34
@chaoh has joined the channel

2020-12-13

github 19:21:41

#240 Add consent check to ensure all developers agree with TOS

In order to perform <https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FNqPf1SfPQEGOZ3Z6h7Q7wA|license change>, we are adding a custom HTTP header to ensure all API users acknowledge the license change. If `LICENSE_URL` is provided, it will look like this: <https://user-images.githubusercontent.com/108608/102010283-27523180-3d78-11eb-8015-7ed4929ea19d.png|image>

github 19:24:39

Comment on #240 Add consent check to ensure all developers agree with TOS

<https://coveralls.io/builds/35671336|Coverage Status> Coverage decreased (-0.5%) to 86.016% when pulling *<https://github.com/cofacts/rumors-api/commit/6ede84425bfc95e1b95e1478c5a9821a357708c3|6ede844> on cc-by* into *<https://github.com/cofacts/rumors-api/commit/5632c4532c11b30dd160c4dfab9adea500250d3c|5632c45> on master*.

github 20:01:02

#19 Change license text to CC BY-SA

• Remove CC0 sentences • Add CC BY-SA license attribution that is generated using <https://creativecommons.org/choose/|CC license chooser>

2020-12-14

github 14:12:53

Review on #356 Landing page

Sorry to keep you waiting. Here are the comments after reviewing the CSS.

github 14:12:53

Comment on #356 Landing page

Currently the button text looks a bit lower than expected: <https://user-images.githubusercontent.com/108608/102043913-af841580-3e10-11eb-8f2d-ecf7acd2a210.png|image> It's probably because of its line-height exceeding the space of the button. I suggest use top &amp; bottom paddings instead of flexbox &amp; height; this also applies to other buttons in other sections in the landing page.

github 14:12:53

Comment on #356 Landing page

1. On macs that hides scrollbars by default, 0 right padding causes the content directly touching right edge: <https://user-images.githubusercontent.com/108608/102044275-7304e980-3e11-11eb-8f09-a8828be00254.png|截圖 2020-12-14 下午1 36 10> 2. The top / bottom padding on `articleContainer` leaves space on top &amp; bottom. I suggest 1. apply padding to `.scrollbarWrapper &gt; *` instead of `articleContainer` so that no top / bottom empty space when scrolled 2. it is OK to use smaller right padding to accommodate scrollbar tracks; however, we should then • use `overflow-y: scroll` to ensure that scrollbar always shows • use <https://www.digitalocean.com/community/tutorials/css-scrollbars|`::-webkit-scrollbar` (for webkit browsers) and `scrollbar-width` (w3c spec)> to specify width of the scrollbar

github 14:12:53

Comment on #356 Landing page

We probably need to set a max width for tablet size, so that the text is not covered by images <https://user-images.githubusercontent.com/108608/102045382-dd1e8e00-3e13-11eb-9e15-238dce29cf62.png|image>

github 14:12:53

Comment on #356 Landing page

Not turning `item` to flexbox container seems to make its contents align better. *Current* <https://user-images.githubusercontent.com/108608/102045787-de03ef80-3e14-11eb-976e-babfcec2a83d.png|image> *After removing `display: flex` and related styles* <https://user-images.githubusercontent.com/108608/102045726-b1e86e80-3e14-11eb-8d13-b83cfa6d1cf6.png|image>

github 14:12:53

Comment on #356 Landing page

We can use `initial` to avoid syntax error <https://user-images.githubusercontent.com/108608/102045520-41d9e880-3e14-11eb-8d52-40d343186ceb.png|image> Suggested change

2020-12-15

github 13:22:17

#361 Provide better placeholder for editors

Discussion see <https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FNqPf1SfPQEGOZ3Z6h7Q7wA|20201209 meeting note> *As-is* Currently the editor UI shows `140 字以內` no matter what reply type the editor has chosen. When shown this UI, editors are not instructed to input useful reply here. <https://user-images.githubusercontent.com/108608/102174085-8d08ff80-3ed7-11eb-8232-27479d756b90.png|image> *To-be* Replace `140 字以內` placeholder with the following: *When `replyType === 'NOT_ARTICLE'`:* Please briefly explain why this message should not be processed in Cofacts 請簡單說明為何 Cofacts 不該處理這則訊息 *When `replyType === 'NOT_RUMOR'`:* As a brief intro for the references, please point out which part of the message is correct. 請簡單說明它哪個部分是正確的,作為「資料來源」的導讀 *When `replyType === 'OPINIONATED'`:* Please briefly: 1. explain which part of the message contains personal opinion 2. remind the audience that this is not factual 請簡單說明: 1. 它哪個部分含有主觀意見之處 2. 提醒讀者這不是客觀事實 (Note: textarea placeholders <https://stackoverflow.com/questions/7312623/insert-line-break-inside-placeholder-attribute-of-a-textarea|can include line breaks>. ) *When `replyType === 'RUMOR'`:* As a brief intro for the references, please point out which part of the message is incorrect. 請簡單說明不實之處,作為「資料來源」的導讀

github 13:28:36

#362 Provide better text for reference input

Discussion see <https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FNqPf1SfPQEGOZ3Z6h7Q7wA|20201209 meeting note> *As-is* We just instruct editors to input 「資料來源」and provide「超連結與連結說明文字」in the placeholder. <https://user-images.githubusercontent.com/108608/102174552-b8d8b500-3ed8-11eb-901a-3ca37c51578a.png|image> *To-be* *Title* This title should apply to website editors and the reply section below: <https://user-images.githubusercontent.com/108608/102174699-05bc8b80-3ed9-11eb-80f3-c2e49fea1e31.png|截圖 2020-12-15 下午1 25 03> *When `replyType === 'OPINIONATED'`:* Opinion Sources 不同意見出處 *When `replyType` is other values:* References 資料佐證 *Placeholder* One line summary » Source URL 來源說明 » 連結網址 (Note: textarea placeholders <https://stackoverflow.com/questions/7312623/insert-line-break-inside-placeholder-attribute-of-a-textarea|can include line breaks>. )

github 13:31:30

Comment on #295 UX improvements of search function in desktop editor

Discussions on revamp of this issue is here <https://g0v.hackmd.io/NqPf1SfPQEGOZ3Z6h7Q7wA?both#%E6%90%9C%E5%B0%8B%E6%94%B9%E9%80%B2|https://g0v.hackmd.io/NqPf1SfPQEGOZ3Z6h7Q7wA?both#%E6%90%9C%E5%B0%8B%E6%94%B9%E9%80%B2> However the revamp is postponed until we deliver the bug fix described in this ticket.

github 13:32:39

#363 Fix editor RWD breakpoints

From <https://g0v.hackmd.io/NqPf1SfPQEGOZ3Z6h7Q7wA#mobile--desktop|20201209 meeting note>: Breakpoint 設定有誤,mobile 與 desktop 版中間有一個出處沒有標題的版本: <https://camo.githubusercontent.com/43c23fe77d7c81e76890461168eb8d8acc904aeb09ca956a6d50c36a2693ef0e/68747470733a2f2f73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6730762d6861636b6d642d696d616765732f75706c6f6164732f75706c6f61645f37613635306661303635346530646638353062616464383531666230633438392e706e67|https://camo.githubusercontent.com/43c23fe77d7c81e76890461168eb8d8acc904aeb09ca956a6d50c36a2693ef0e/68747470733a2f2f73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6730762d6861636b6d642d696d616765732f75706c6f6164732f75706c6f61645f37613635306661303635346530646638353062616464383531666230633438392e706e67> In this case please all go for desktop style.

2020-12-16

mrorz 13:07:24
今日會議記錄
https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2FuJKukwUkSYy_FYI17SsYew

HackMD

Cofacts 會議記錄 - HackMD

# Cofacts 會議記錄 ## 2020 - [20201216 會議記錄](/uJKukwUkSYy_FYI17SsYew) - [20201209 會議記錄](/NqPf1SfPQEGO

github 14:17:36

Review on #358 fetch reference in reply

Tested and works on my machine. Confirmed that this will fix <https://github.com/cofacts/rumors-site/issues/285|#285>. Thanks for the fix!

github 14:18:08

Comment on #285 “Add this reply to my reply” failed to copy reference

Fixed by <https://github.com/cofacts/rumors-site/pull/358|#358> . Kudos to <https://github.com/jojomango|@jojomango> !

github 14:55:30

Comment on #357 support openpeeps avatar

Should we drop `classes.avatar` as we specify `size={40}` in `&lt;Avatar&gt;`?

github 14:55:30

Comment on #357 support openpeeps avatar

is `mdSize` applied to this case as well?

github 14:55:30

Review on #357 support openpeeps avatar

Hello <https://github.com/ztsai|@ztsai> thanks for the contribution and sorry for the late reply. I have added comments regarding 1. use of `mdSize` and 2. colocating fragments.

github 14:55:30

Comment on #357 support openpeeps avatar

This actually comes from `Avatar` inside `AppHeader` and `AppSidebar`. Since we follow <https://www.apollographql.com/docs/react/data/fragments/#creating-colocated-fragments|fragment colocation> in this repo, we may need to • Declare static member `.fragments.User` for `AppSidebar` and `AppHeader` that includes `Avatar.fragments.AvatarData`, since these components are using `&lt;Avatar&gt;` • AppLayout should use `AppSidebar.fragments.User` here. (apollo-client will perform dedup on the fields) In this way the dependency of GraphQL fields can be tracked on component basis.

2020-12-17

github 17:30:16

#14 Features/backup db

Ref: <https://github.com/cofacts/rumors-db/pull/50|/rumors-db/pull/50>

github 17:34:59

Comment on #50 Features/backup db

moved to <https://github.com/cofacts/rumors-deploy/pull/14|cofacts/rumors-deploy#14>

2020-12-18

mrorz 13:37:38
感謝 @jojomango
插入現有回應的 `undefined` bugfix 已經 release 囉 https://github.com/cofacts/rumors-site/releases/tag/release%2F20201217
2
github 18:05:09

Comment on #356 Landing page

<https://github.com/MrOrz|@MrOrz> Both css and js have been revised, please check if there are any problems.

2020-12-19

github 02:14:55

Comment on #240 Add consent check to ensure all developers agree with TOS

Do you need to trim space first before splitting to accommodate someone pass params with space after comma.

github 02:14:55

Comment on #240 Add consent check to ensure all developers agree with TOS

hmmm... should we expose all license to api page?

github 02:30:08

Comment on #240 Add consent check to ensure all developers agree with TOS

Good point. I trimmed each URL after splitting, because I think it's possible for developers to write something like `URL1, URL2`.

github 14:01:35

#364 Adding CC BY-SA notice

*For editors* Notice paragraph on login window. <https://user-images.githubusercontent.com/108608/102682007-f7d07880-4200-11eb-9317-d39110a66a53.png|image> *For site visitors* Notify visitors that the content is distributed under CC BY-SA. <https://user-images.githubusercontent.com/108608/102682178-81347a80-4202-11eb-926f-3673ea8239be.png|image> Copied text: ``` 說法一:端午節是屈原的忌日,故不能祝賀快樂,僅能祝福「端午安康」避免犯忌。 說法二:台灣民俗專家指出快樂、安康皆可。 說法三:當前已淡忘節日的文化意義,故端午節快樂已成為習慣。 📋 節錄自 Cofacts 真的假的:<http://localhost:3000/article/3g7kzwmea74z2> ℹ️ 此資訊 by Cofacts crowd-sourced fact-checking community is licensed under CC BY-SA 4.0. 🤔 在 LINE 看到可疑訊息?加「真的假的」好友,查謠言與詐騙 ➡️ <https://line.me/R/ti/p/%40cofacts> ``` "Share" button: ``` contains personal perspective 【Reason】⋯⋯的部分純屬個人價值觀,並非客觀事實。 見仁見智。 說法一:端午節是屈原的忌日,故不能祝賀快樂,僅能祝福「端午安康」避免犯忌。 說法二:台灣民俗專家指出快樂、安康皆可。 說法三:當前已淡忘節日的文化意義,故端午節快樂已成為習慣。 ↓Details↓ <http://localhost:3000/article/3g7kzwmea74z2> ↓Reference↓ 自由時報/端午節祝快樂犯大忌? 民俗專家指出快樂、安康皆可 <http://news.ltn.com.tw/news/life/breakingnews/2083224> 中國時報/名家觀點-端午節快樂? <http://www.chinatimes.com/newspapers/20160610000330-260109> -- ℹ️ 此資訊 by Cofacts crowd-sourced fact-checking community is licensed under CC BY-SA 4.0. 🤔 在 LINE 看到可疑訊息?加「真的假的」好友,查謠言與詐騙 ➡️ <https://line.me/R/ti/p/%40cofacts> ```

github 16:42:40

#236 Sends CC BY-SA license to server and add copyleft notice

• Sends `x-accept-license` along with HTTP requests when speaking to API server `/graphql` • Adds CC BY-SA license text in response *Screenshot* <https://user-images.githubusercontent.com/108608/102685121-25c1b700-4219-11eb-98f0-d0092a632f0e.png|image>

github 16:45:56

Comment on #236 Sends CC BY-SA license to server and add copyleft notice

*Pull Request Test Coverage Report for <https://coveralls.io/builds/35836629|Build 1234>* • *0* of *0* changed or added relevant lines in *0* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *86.42%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*

github 17:03:29

Review on #364 Adding CC BY-SA notice

Forgot to run `npm run i18n:extract`? Share and copied text didn't translate.

github 17:33:55

Review on #356 Landing page

LGTM! Let's ship this <https://github.githubassets.com/images/icons/emoji/shipit.png|:shipit:>

github 19:01:06

#365 Upgrade dialog

Spec <https://www.figma.com/file/zpD45j8nqDB2XfA6m2QskO/Cofacts-website?node-id=912%3A384|https://www.figma.com/file/zpD45j8nqDB2XfA6m2QskO/Cofacts-website?node-id=912%3A384>

github 19:08:34

#366 update og image

change landing page og image <https://user-images.githubusercontent.com/6726515/102687902-8d81fd00-422d-11eb-942f-843a4246400e.png|ogimage>

github 19:17:13

Review on #366 update og image

LGTM! Thanks for the change.

github 19:30:29

Comment on #365 Upgrade dialog

Please include variable `LEVEL_NAMES[nextLevel]` in the translation Suggested change

2020-12-20

github 00:44:04

#367 Profile page header display

Implements user profile page's header • URL: `/user?id=xxx` or `/user/slug` (But no one has slug yet) • Links to user page: on reply's header • Edit function of profile page header is not implemented yet *Screenshots* *Clicking into user page* <https://user-images.githubusercontent.com/108608/102694202-858c8200-425a-11eb-91f5-c2b68888bc84.gif|user-page-enter> *Self* (Edit button exists but its behavior is not implemented yet) <https://user-images.githubusercontent.com/108608/102693951-ffbc0700-4258-11eb-80af-dd24964c1506.png|image> *Mobile* <https://user-images.githubusercontent.com/108608/102694268-d0a69500-425a-11eb-95e7-b044e9c04bbd.png|image>

github 13:24:50

Comment on #364 Adding CC BY-SA notice

&gt; Forgot to run `npm run i18n:extract`? &gt; Share and copied text didn't translate. Nice catch. As landing page branch is merged, now I can translate them.

加上翻譯,圖也重截囉
mrorz 14:12:47
加上翻譯,圖也重截囉
github 17:03:56

Comment on #365 Upgrade dialog

Seems that `stage` is a state rather than a prop. I think we can remove this from storybook to avoid confusion.

github 17:03:56

Review on #365 Upgrade dialog

Thanks for the implementation! I have some comments regarding the icons and state management. I will test on local machine after these logics got fixed.

github 17:03:56

Comment on #365 Upgrade dialog

The operation name `UserLevelQuery` is already used in AppLayout. I think we can use another name such as: Suggested change No matter what name we chose, we should also update `NewReplySection/index.js` 's `refetchQueries`.

github 17:03:56

Comment on #365 Upgrade dialog

It seems that in `UpgradeDialog` we only use `level` and `points` fields from `GetUser`. Please consider removing `id`, `name` and `avatarUrl` fields from this query.

github 17:03:56

Comment on #365 Upgrade dialog

Does `loadUser` change on re-render? If not, we can confidently add `loadUser` to the dependency array and we don't need to disable eslint for the line.

github 17:03:56

Comment on #365 Upgrade dialog

I am wondering if we can bring down the number of states into 1 and simplify the logic. The only state we need: `fetchedUser` (initializes to null), which is an object of • `level` - the user's current level • `points.currentLevel` - the number of EXP for the user to reach current level • `points.nextLevel` - the number of EXP for the user to reach the next level The basic idea is: 1. `fetchedUser` stores the previous result from the GraphQL query. 2. show the dialog when `fetchedUser` is different from the latest result (`data.GetUser`). 3. update `fetchedUser` state after the user choose to close the dialog. • This will hide the dialog, as `fetchedUser` is identical to `data.GetUser` again. • Therefore, no `isActive` state is required. *Implementation detail* *Rendering* If `fetchedUser` is `null` (it is not initialized yet), renders `null`. Otherwise, render: ``` &lt;UpgradeDialogLayout open={fetchedUser.level !== data.GetUser.level} currentLevel={fetchedUser.level} currentLevelScore={fetchedUser.points.currentLevel} nextLevel={fetchedUser.level + 1} nextLevelScore={fetchedUser.points.nextLevel} onClose={closeUpgradeDialog} /&gt; ``` *Initialize when `data.getUser` changes* • if `fetchedUser` is null, set `fetchedUser` to latest `data.getUser`; otherwise, do nothing. *Update state in `handleUpgradeDialogClose` callback* • set `fetchedUser` state to latest `data.getUser`.

github 17:03:56

Comment on #365 Upgrade dialog

Please use the icons from `LevelIcon`. <https://user-images.githubusercontent.com/108608/102707436-e2794e00-42d5-11eb-8dfa-7bc296e7aa43.png|image>

github 17:03:56

Comment on #365 Upgrade dialog

Please consider moving `close.svg` to `components/icon.js` as a React component. It supports coloring and sizing. <https://user-images.githubusercontent.com/108608/102707423-c1186200-42d5-11eb-8db4-7ff726b6a8d0.png|image>

github 17:03:57

Comment on #365 Upgrade dialog

I found a even better color function: <https://developer.mozilla.org/en-US/docs/Web/CSS/repeating-conic-gradient()|`repeating-conic-gradient`> <https://user-images.githubusercontent.com/108608/102709162-bb754900-42e2-11eb-971b-fbeff7ea84fd.png|image> It has the same compatibility as `conic-gradient`. Since it's repeating, we can animate using just `from XXdeg`; other parts of the gradient stops can be identical. See: <https://codepen.io/MrOrz/pen/YzGxPpB|https://codepen.io/MrOrz/pen/YzGxPpB>

github 23:51:51

#241 [Trivial] expose user.appId for all users &amp; all apps

In the user profile page for LINE bot users, I want to tell site visitors that this user is from LINE and its username / avatar is randomly generated. Therefore, I would like to expose user's `appId`. Currently I cannot think of reasons why we kept it for current user. This PR removes the restriction.

2020-12-21

github 00:02:37

Comment on #241 [Trivial] expose user.appId for all users &amp; all apps

<https://coveralls.io/builds/35846161|Coverage Status> Coverage decreased (-0.05%) to 86.143% when pulling *<https://github.com/cofacts/rumors-api/commit/760468d51b90546657fdee727232b582434937d6|760468d> on expose-user-appid* into *<https://github.com/cofacts/rumors-api/commit/9cf53b702f56c252cc19f9e0f7ccb818071d417b|9cf53b7> on master*.

github 00:28:17

#368 Introduce ProfileLink and chatbot user profile

• Replace `EditorName` with more generalized `ProfileLink` • Generates link to user profile using slug when applicable; if no slug, use id instead *Screenshots* *Chatbot user's profile* <https://user-images.githubusercontent.com/108608/102718421-fd25e400-4322-11eb-8fd1-319c8f30e0ec.png|image> <https://user-images.githubusercontent.com/108608/102718430-07e07900-4323-11eb-8427-81b5632d4d47.png|image>

github 01:13:32

#369 Edit profile function

This feature doesn't have figma. • Allows user to edit display name, username (in URL), and bio. • Updates UI after edit • When the user have a slug (or updates a slug), redirect to URL with slug (`/user/[slug]`) *Screenshots* *Normal edit* <https://user-images.githubusercontent.com/108608/102719441-25184600-4329-11eb-9666-8c60635ae0c5.gif|no slug change> *Edit involves slug* Notice the URL changes as we save the new slug. <https://user-images.githubusercontent.com/108608/102719444-28133680-4329-11eb-95b8-e0ef166db375.gif|slug-change> *Redirect `/user?id=xxx` to slug when available* <https://user-images.githubusercontent.com/108608/102719496-7b858480-4329-11eb-9333-3e2b26a9c383.gif|redirect userid>

其實我們好像沒有討論過 URL slug 的限制

我想要不要
• 強制都轉小寫
• 如果 not url-safe (`slug !== encodeURIComopnents(slug)`) 的話就不給過
• 前後端都實作檢查限制
mrorz 01:27:12
其實我們好像沒有討論過 URL slug 的限制

我想要不要
• 強制都轉小寫
• 如果 not url-safe (`slug !== encodeURIComopnents(slug)`) 的話就不給過
• 前後端都實作檢查限制
github 13:40:58

Review on #369 Edit profile function

我加了一些長名字的 handling
即使名字叫Tikki Tikki Tembo-no Sa Rembo-chari Bari Ruchi-pip Peri Pembo 也可以支援唷
mrorz 14:33:01
我加了一些長名字的 handling
即使名字叫Tikki Tikki Tembo-no Sa Rembo-chari Bari Ruchi-pip Peri Pembo 也可以支援唷
❤️ 1 1 🦒 1
bil 23:33:32
Tikki Tikki Tembo-no Sa Rembo-chari Bari Ruchi-pip Peri Pembo
bil 23:33:39
掉到井裡面去了
🍵 1

2020-12-22

mrorz 14:22:12
目前 Staging API 正在測試 developer 的 license consent 的部分。如果打開 graphql playground 看到下面 error 請不要慌張:
image.png
mrorz 14:22:49
補上 HTTP header `"x-accept-license": "https://github.com/cofacts/opendata#terms"` 就又可以正常使用囉!
image.png

2020-12-23

github 13:55:26

#370 "I checked" Button has invalid

「我查核過」按鈕失效 <https://user-images.githubusercontent.com/22763286/102964395-7b9ea380-4526-11eb-892a-a78e41e217cd.gif|giphy>

2
mrorz 22:51:40
@stbb1025 @lucien 目前 dev.cofacts.org 的 landing page,在桌面環境下似乎少了讓人往下捲的示意或 call to action 按鈕
@acerxp511 第一眼的注意力會被紅色 1、2 抓過去
這個部分有沒有什麼改善的空間呢
我剛剛隨便看了其他網站,他們都沒有示意可以往下捲,但都會有一個按鈕放在中間(start now/freetrial),我覺得讓「懷疑自己收到謠言嗎」的圖可以按可能比示意好一點(?)
可能第一張圖的區域用扁一點,讓「你可以這麼做」露出一半
我想想
@lucien 想好了ㄇ
我覺得 @stbb1025 的 solution 可以
我之前有做過
1. 向下浮動箭頭
2. 向下掉落或是搖擺的導引動畫
3. 不全屏
4. 下面邊緣上 shadow
現在 mobile 上的是 3
志超上面也是採 3
mrorz 23:07:14
<!here> 大家好~我們最近希望把資料的開放授權改成 CC BY-SA。由於 BY 署名的部分會彰顯在所有用到 Cofacts 資料的地方(參考網站chatbot),所以想要可以選一個好名字。
我們希望這個署名可以囊括 Cofacts 社群的下面的幾個概念,越多越好:
• 是大家都可以參與的,不是封閉的
• 是一群人,不是特定幾人
• 參與者包含回報訊息的人、替回應評分的人、以及闢謠編輯
• 做的事情:提供查核或不同意見
• 查核對象:即時訊息
• 使用到公民科技、自動化技術
我們有想到幾個 candidate:

🐊 Cofacts 群眾查核社群
🦒 真的假的 聊天機器人 協作社群
🐘 Cofacts 真的假的訊息回報與查證協作社群
🐪 Cofacts 真的假的訊息回報 chatbot 與查核協作社群
🐴 (大家想到的其他組合)

之前的討論紀錄:https://g0v.hackmd.io/f0V7J5ceTS-1vnKh0RwILw?both#%E9%96%8B%E6%94%BE%E6%8E%88%E6%AC%8A%E8%AE%8A%E6%9B%B4
我還是覺得「聊天機器人協作社群」看起來像是在做聊天機器人技術的社群啦⋯⋯

> 此資訊由真的假的聊天機器人協作社群以 CC BY-SA 4.0 授權條款提供
詢問大家 CC BY-SA 標示,其實背後的意義是,想問問在 Cofacts 有貢獻的大家,當自己的貢獻被使用時,「願意被什麼樣的名字代表」。

是「聊天機器人 協作社群」
還是「 群眾查核社群」
還是「訊息回報與查證協作社群」
或是其他形式呢
哈哈哈
所以要選「真的假的聊天機器人協作社群」嗎
我還是想幫 🐘「真的假的訊息回報與查證協作社群」拉個票,因為我覺得這個名字會讓人知道這個系統大家可以幫忙回報訊息或查證
缺點就是太長了大家不會讀完囧
真的假的報查社(?)
徵信社
「Cofacts 真的假的」訊息回報機器人與查證協作社群
口法社
名字要短真的好難哦⋯
developer 來取名字就會變得很長
身為 developer 我覺得「『Cofacts 真的假的』訊息回報機器人與查證協作社群」挺不錯的
因為不會掉到井裡面溺死所以名字長一點還行 (?
英文我想用
Cofacts message reporting chatbot and fact-checking collaborative community

但 Collaborative community 是不是專有名詞呀 https://www.fda.gov/about-fda/cdrh-strategic-priorities-and-updates/collaborative-communities-addressing-health-care-challenges-together
我要來收斂目前選擇了

目前有三個命名邏輯
🐘 覺得光露出 Cofacts 專案名沒有辦法達成目的,想囊擴所有專案面向 ➡️「Cofacts 真的假的」訊息回報機器人與查證協作社群
🐳 想用最簡單符合創用 CC 規定,也避免露出單一專案面向來框住專案實際做的事情 ➡️ Cofacts 真的假的社群
🦒從專案發展脈絡以及顧及收集資料需求出發,選擇強調聊天機器人➡️ 真的假的聊天機器人協作社群
機器人跟查證社群並不是分開的工作呢,開發者很多設計都是在協助查核社群協作出查核機器人。2016年開始的提案也就是聊天機器人,給bot一個機會。
真的假的機器人及真人社群 XD
🦒 3 🐳 1 1 1 🐊 2 🐘 2

2020-12-24

mrorz 11:30:54
我還是覺得「聊天機器人協作社群」看起來像是在做聊天機器人技術的社群啦⋯⋯

> 此資訊由真的假的聊天機器人協作社群以 CC BY-SA 4.0 授權條款提供
mrorz 11:54:26
然後關於標註方式,由於 Cofacts 的資料裡有 third party content 如
1. 使用者回報的訊息,其實是他人撰寫的文字
2. 編輯有時候會直接擷取他人文字的內文作為 reply text
其實它們無法被 CC 出去:https://wiki.creativecommons.org/wiki/Marking_your_work_with_a_CC_license#Noting_third-party_content_in_your_work

CC wiki 其實是建議說如果有 third party content 最好劃定說哪個部分適用 CC 出去(只是 Cofacts 的 case 其實滿難區分的 @@)
isabelhou 13:33:32
只能CC cofacts社群自己寫的那部分。
isabelhou 13:34:12
1和2可以分辨並且標示嗎?
實務上有些困難 QQ

以這篇回應為例,第一段是編輯寫的,第二段則是從第三個出處的聯合報導裡面複製貼上的:
https://cofacts.g0v.tw/reply/IqhmUHYB9w1KR1Iki14S
技術上要抓出重複然後標示我覺得滿麻煩的,而且沒辦法做得很可靠 QQ
mrorz 14:07:50
詢問大家 CC BY-SA 標示,其實背後的意義是,想問問在 Cofacts 有貢獻的大家,當自己的貢獻被使用時,「願意被什麼樣的名字代表」。

是「聊天機器人 協作社群」
還是「 群眾查核社群」
還是「訊息回報與查證協作社群」
或是其他形式呢

2020-12-25

github 01:12:47

Review on #365 Upgrade dialog

Thanks for fixing the logic! Please update snapshot and take a look at possibility to simplify `repeating-conic-gradient` and we are good to go :+1:

github 13:26:00

#371 [WIP] Landing page optimization

• Remove irrelevant deps • Disable ariticle loading on server for lighter load • Modify landing page title for better SEO

mrorz 23:55:02
https://iorg.tw/a/disinformed-democracy

iorg.tw

開放資料、公民參與、國際連結對抗資訊操弄 歐美學者肯定台灣經驗 / IORG

IORG 於 12 月 7 日舉辦線上討論會,邀請國內外資料科學、跨國衝突及國家安全跨領域學者、專業工作者上線交流。會中提及,由民間自主發起的開放資料專案,是資訊操弄科學研究的重要基石,也是集體民主防衛的具體實踐,而以工作坊等公民參與方式連結研究者與社會大眾,有助公民社會提升防衛意識,受到與會者的肯定。台灣是中國資訊操弄的重要目標,而遠在敘利亞的魯克班難民營也能發現中國資訊操弄的痕跡。面對威權擴張,紐約大學國際關係教授瑪慈伽里指出,唯有強化社會連結和民主韌性才能有效反制。未來,莫楠提出應建立「有責溯源」及「有責臆測」的標準,IORG 亦將持續精進資料科學研究方法,提出資訊操弄研究的開放框架,貢獻「台灣經驗」,供國際友人參考。

2020-12-26

2020-12-27

mrorz 19:22:28
所以要選「真的假的聊天機器人協作社群」嗎
我還是想幫 🐘「真的假的訊息回報與查證協作社群」拉個票,因為我覺得這個名字會讓人知道這個系統大家可以幫忙回報訊息或查證
缺點就是太長了大家不會讀完囧

2020-12-28

riverdm 10:15:12
@riverdm has joined the channel
github 17:12:29

#8 The usage of model docker image

``` docker run -t model-image:latest model --url=<https://ai-api-stag.cofacts.org> --action=register docker run -t model-image:latest model --url=<https://ai-api-stag.cofacts.org> --action=start --api-key=this_is_an_api_key ```

github 17:13:43

Comment on #10 Category mapping

<https://github.com/gary9630|@gary9630> 這裡是目前使用的 mapping ``` DEFAULT_CATEGORY_MAPPING = { 0: 'kj287XEBrIRcahlYvQoS', # 中國影響力 1: 'kz3c7XEBrIRcahlYxAp6', # 性少數與愛滋病 2: 'lD3h7XEBrIRcahlYeQqS', # 女權與性別刻板印象 3: 'lT3h7XEBrIRcahlYugqq', # 保健秘訣、食品安全 4: 'lj2m7nEBrIRcahlY6Ao_', # 基本人權問題 5: 'lz2n7nEBrIRcahlYDgri', # 農林漁牧政策 6: 'mD2n7nEBrIRcahlYLAr7', # 能源轉型 7: 'mT2n7nEBrIRcahlYTArI', # 環境生態保護 8: 'mj2n7nEBrIRcahlYdArf', # 優惠措施、新法規、政策宣導 9: 'mz2n7nEBrIRcahlYnQpz', # 科技、資安、隱私 10: 'nD2n7nEBrIRcahlYwQoW', # 免費訊息詐騙 11: 'nT2n7nEBrIRcahlY6QqF', # 有意義但不包含在以上標籤 12: 'nj2n7nEBrIRcahlY-gpc', # 無意義 13: 'nz2o7nEBrIRcahlYBgqQ', # 廣告 14: 'oD2o7nEBrIRcahlYFgpm', # 只有網址其他資訊不足 15: 'oT2o7nEBrIRcahlYKQoM', # 政治、政黨 16: 'oj2o7nEBrIRcahlYRAox' # 轉發協尋、捐款捐贈 } ```

有一些沒在用了耶
如[]

有一些則是新的要加
👍 2

2020-12-29

github 00:11:11

Comment on #7 Remove &amp;test=1

Add debug_mode flag to include both dev and prod conditions

github 00:12:06

Comment on #5 Decouple rumors-ai-bert from rumors-ai

Done. Currently, all scripts/programs/data are used in this repo.

github 00:59:30

Comment on #4 Use gcp credentials file to create a GPU instance

<https://github.com/godgunman|@godgunman> 我查了一下,使用 `gcloud compute` 的指令,好像不能透過指定 credential 的方式來使用這個 API,必須要在 create VM 的時候就先設定好了,你可以幫我看看我有沒有搞錯這部分 <https://stackoverflow.com/questions/35928534/403-request-had-insufficient-authentication-scopes-during-gcloud-container-clu/35932921|https://stackoverflow.com/questions/35928534/403-request-had-insufficient-authentication-scopes-during-gcloud-container-clu/35932921> <https://acloud.guru/forums/gcp-certified-associate-cloud-engineer/discussion/-Lh3ET0aNrv3FwNbNvh6/Insufficient%20Permission:%20Request%20had%20insufficient%20authentication%20scopes|https://acloud.guru/forums/gcp-certified-associate-cloud-engineer/discussion/-Lh3ET0aNrv3FwNbNvh6/Insufficient%20Permission:%20Request%20had%20insufficient%20authentication%20scopes>. <https://serverfault.com/questions/974012/how-to-start-an-instance-from-another-instance-in-the-same-project-gcp|https://serverfault.com/questions/974012/how-to-start-an-instance-from-another-instance-in-the-same-project-gcp> 只要一開始 VM 有開啟 <https://developers.google.com/identity/protocols/oauth2/scopes#compute|compute engine API>,就可以使用了,感覺不需要特別做什麼

ggm 02:38:01
@mrorz 問你噢 https://github.com/cofacts/rumors-deploy#crontab-setup 的預設的情境是在怎樣的環境呀?

cofacts/rumors-deploy

Deployment scripts for g0v rumors project

ggm 02:38:28
這個是在 docker 外面對嗎?
ggm 02:41:43
https://github.com/cofacts/rumors-deploy/pull/14/files 所以我就如法炮製的塞了一個 mongodump 這樣是不是就搞定了?我原本在 rumors-db 那邊是用 node 寫了個工具的 script,但在這邊好像也不適合初始化一個 node 專案,所以就直接塞進去 cronjob 就可以了
Cron 本身是在專案之外,去呼叫 application 內的單次執行 script (若需重用專案內的 utility function) 或 application 之外的工具
github 03:20:25

Comment on #4 Use gcp credentials file to create a GPU instance

我試過用 gcloud 可以直接開 gpu instance 所以應該是權限足夠的,正名一下好了,好像應該要叫做 service-account ``` $ gcloud compute instances create ggm-test \ &gt; --machine-type n1-standard-2 --zone asia-east1-a \ &gt; --accelerator type=nvidia-tesla-t4,count=1 \ &gt; --image-family pytorch-latest-gpu --image-project deeplearning-platform-release \ &gt; --maintenance-policy TERMINATE --restart-on-failure Created [<https://www.googleapis.com/compute/v1/projects/godgunman/zones/asia-east1-a/instances/ggm-test>]. NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS ggm-test asia-east1-a n1-standard-2 10.140.0.2 a.b.c.d RUNNING ```

mrorz 09:06:50
我要來收斂目前選擇了

目前有三個命名邏輯
🐘 覺得光露出 Cofacts 專案名沒有辦法達成目的,想囊擴所有專案面向 ➡️「Cofacts 真的假的」訊息回報機器人與查證協作社群
🐳 想用最簡單符合創用 CC 規定,也避免露出單一專案面向來框住專案實際做的事情 ➡️ Cofacts 真的假的社群
🦒從專案發展脈絡以及顧及收集資料需求出發,選擇強調聊天機器人➡️ 真的假的聊天機器人協作社群
🐘 2 🐳 1 🦒 2

2020-12-30

github 13:27:36

Comment on #365 Upgrade dialog

Nit: since the pattern repeats every 30 degree and it is an repeating animation, we can just animate from 0deg to 30deg and have the same visual effect.

github 13:27:36

Review on #365 Upgrade dialog

LGTM! The spinning logic is much simpler now :)

mrorz 13:34:26
@lucien 想好了ㄇ
我覺得 @stbb1025 的 solution 可以

2020-12-31

github 09:11:19

#17 Bump urijs from 1.19.1 to 1.19.5

Bumps <https://github.com/medialize/URI.js|urijs> from 1.19.1 to 1.19.5. Release notes _Sourced from <https://github.com/medialize/URI.js/releases|urijs's releases>._ &gt; *1.19.5 (December 30th 2020)* &gt; &gt; • dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/404|#404>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/404|medialize/URI.js#404>) &gt; &gt; *1.19.4 (December 23rd 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - followed up to by <https://github.com/alesandroortiz|alesandroortiz> in [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|medialize/URI.js#403>), relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.3 (December 20th 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - disclosed privately by <https://github.com/alesandroortiz|alesandroortiz>, relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.2 (October 20th 2019)* &gt; &gt; • fixing <http://medialize.github.io/URI.js/docs.html#static-build|`URI.build()`> to properly handle relative paths when a scheme is given - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/387|#387>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/387|medialize/URI.js#387>) &gt; • fixing <http://medialize.github.io/URI.js/docs.html#static-buildQuery|`URI.buildQuery()`> to properly handle empty param name - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/243|#243>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/243|medialize/URI.js#243>), [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/383|#383>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/383|medialize/URI.js#383>) &gt; • support Composer [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/386|#386>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/386|medialize/URI.js#386>) Changelog _Sourced from <https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md|urijs's changelog>._ &gt; *1.19.5 (December 30th 2020)* &gt; &gt; • dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/404|#404>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/404|medialize/URI.js#404>) &gt; &gt; *1.19.4 (December 23rd 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - followed up to by <https://github.com/alesandroortiz|alesandroortiz> in [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|medialize/URI.js#403>), relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.3 (December 20th 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - disclosed privately by <https://github.com/alesandroortiz|alesandroortiz>, relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.2 (October 20th 2019)* &gt; &gt; • fixing <http://medialize.github.io/URI.js/docs.html#static-build|`URI.build()`> to properly handle relative paths when a scheme is given - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/387|#387>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/387|medialize/URI.js#387>) &gt; • fixing <http://medialize.github.io/URI.js/docs.html#static-buildQuery|`URI.buildQuery()`> to properly handle empty param name - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/243|#243>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/243|medialize/URI.js#243>), [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/383|#383>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/383|medialize/URI.js#383>) &gt; • support Composer [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/386|#386>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/386|medialize/URI.js#386>) Commits • <https://github.com/medialize/URI.js/commit/d7bb4ce8cb71caa5063a617b2afdb5a0a3685532|`d7bb4ce`> chore(build): bumping to version 1.19.5 • <https://github.com/medialize/URI.js/commit/bf04ec5f053829f9ea3a887608bdfca4fd84cd64|`bf04ec5`> chore(build): bumping to version 1.19.4 • <https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155|`b02bf03`> fix(parse): treat backslash as forwardslash in authority (<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>) • <https://github.com/medialize/URI.js/commit/d7064ab9acbbdf8d8acc35d9dc2454cf1606ff98|`d7064ab`> chore(build): bumping to version 1.19.3 • <https://github.com/medialize/URI.js/commit/4f45fafedec9fea4d65c2562721ec94343a33c2b|`4f45faf`> fix(parse): treat backslash as forwardslash in authority • <https://github.com/medialize/URI.js/commit/594ffc1d1ba995d8e90814d6de18e1330d419be1|`594ffc1`> chore(build): bumping to version 1.19.2 • <https://github.com/medialize/URI.js/commit/e780eebc0ddaea04a6928c0f7d54b061e541e05c|`e780eeb`> chore: inform people of modern APIs • <https://github.com/medialize/URI.js/commit/433f0e51e4028130a8685dfe49a185e982bc1f47|`433f0e5`> chore(package): support Composer by adding composer.json • <https://github.com/medialize/URI.js/commit/4ced30a1c5ad278eae70bb06dee8d7886e68052b|`4ced30a`> fix(build): handle relative paths with missing authority • <https://github.com/medialize/URI.js/commit/7168049bd2b9b0000ea1ea46108c46e22ef57a37|`7168049`> fix(buildQuery): support params without key • See full diff in <https://github.com/medialize/URI.js/compare/v1.19.1...v1.19.5|compare view> <https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores|Dependabot compatibility score> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. * * * Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: • `@dependabot rebase` will rebase this PR • `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it • `@dependabot merge` will merge this PR after your CI passes on it • `@dependabot squash and merge` will squash and merge this PR after your CI passes on it • `@dependabot cancel merge` will cancel a previously requested merge and block automerging • `@dependabot reopen` will reopen this PR if it is closed • `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually • `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) • `@dependa…

github 12:42:55

#372 Bump urijs from 1.19.2 to 1.19.5

Bumps <https://github.com/medialize/URI.js|urijs> from 1.19.2 to 1.19.5. Release notes _Sourced from <https://github.com/medialize/URI.js/releases|urijs's releases>._ &gt; *1.19.5 (December 30th 2020)* &gt; &gt; • dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/404|#404>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/404|medialize/URI.js#404>) &gt; &gt; *1.19.4 (December 23rd 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - followed up to by <https://github.com/alesandroortiz|alesandroortiz> in [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|medialize/URI.js#403>), relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.3 (December 20th 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - disclosed privately by <https://github.com/alesandroortiz|alesandroortiz>, relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) Changelog _Sourced from <https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md|urijs's changelog>._ &gt; *1.19.5 (December 30th 2020)* &gt; &gt; • dropping jquery.URI.js from minified bundle accidentally added since v1.19.3 - [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/404|#404>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/404|medialize/URI.js#404>) &gt; &gt; *1.19.4 (December 23rd 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - followed up to by <https://github.com/alesandroortiz|alesandroortiz> in [PR <https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>](<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|medialize/URI.js#403>), relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) &gt; &gt; *1.19.3 (December 20th 2020)* &gt; &gt; • *SECURITY* fixing <http://medialize.github.io/URI.js/docs.html#static-parseAuthority|`URI.parseAuthority()`> to rewrite `\` to `/` as Node and Browsers do - disclosed privately by <https://github.com/alesandroortiz|alesandroortiz>, relates to [Issue <https://github-redirect.dependabot.com/medialize/URI.js/issues/233|#233>](<https://github-redirect.dependabot.com/medialize/URI.js/pull/233|medialize/URI.js#233>) Commits • <https://github.com/medialize/URI.js/commit/d7bb4ce8cb71caa5063a617b2afdb5a0a3685532|`d7bb4ce`> chore(build): bumping to version 1.19.5 • <https://github.com/medialize/URI.js/commit/bf04ec5f053829f9ea3a887608bdfca4fd84cd64|`bf04ec5`> chore(build): bumping to version 1.19.4 • <https://github.com/medialize/URI.js/commit/b02bf037c99ac9316b77ff8bfd840e90becf1155|`b02bf03`> fix(parse): treat backslash as forwardslash in authority (<https://github-redirect.dependabot.com/medialize/URI.js/issues/403|#403>) • <https://github.com/medialize/URI.js/commit/d7064ab9acbbdf8d8acc35d9dc2454cf1606ff98|`d7064ab`> chore(build): bumping to version 1.19.3 • <https://github.com/medialize/URI.js/commit/4f45fafedec9fea4d65c2562721ec94343a33c2b|`4f45faf`> fix(parse): treat backslash as forwardslash in authority • See full diff in <https://github.com/medialize/URI.js/compare/v1.19.2...v1.19.5|compare view> <https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores|Dependabot compatibility score> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. * * * Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: • `@dependabot rebase` will rebase this PR • `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it • `@dependabot merge` will merge this PR after your CI passes on it • `@dependabot squash and merge` will squash and merge this PR after your CI passes on it • `@dependabot cancel merge` will cancel a previously requested merge and block automerging • `@dependabot reopen` will reopen this PR if it is closed • `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually • `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) • `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) • `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) • `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language • `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language • `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language • `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the <https://github.com/cofacts/rumors-site/network/alerts|Security Alerts page>.