所以找了個熱門謠言用 google translate 翻成英文之後丟進去讓他跑跑看
是不是可以拿來變成圖
好像有點有趣
g0v.hackmd.io
<https://github.com/cofacts/rumors-line-bot/pull/321|#321 Fix image search on chatbot>
We observed that duplicate images are being submitted to Cofacts. According to the analysis in <https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#%E4%B8%8A%E7%B7%9A%E5%BE%8C%E8%BF%BD%E8%B9%A4%EF%BC%9A%E9%87%8D%E8%A4%87%E5%9C%96%E7%89%87|https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#%E4%B8%8A%E7%B7%9A%E5%BE%8C%E8%BF%BD%E8%B9%A4%EF%BC%9A%E9%87%8D%E8%A4%87%E5%9C%96%E7%89%87> , the root cause is • Production server does not have `MEDIA_ARTICLE_SUPPORT` turned on • Chatbot does not specify `articleTypes` so that only text is returned by default • Therefore, when chatbot user sends a very similar image, API always returns empty image search response This PR fixes the duplicate image submission problem by specifying all article types so that no matter what API's `MEDIA_ARTICLE_SUPPORT` is, chatbot can get all media results.
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-line-bot/pull/321|#321 [processImage] >
We observed that duplicate images are being submitted to Cofacts. According to the analysis in <https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#%E4%B8%8A%E7%B7%9A%E5%BE%8C%E8%BF%BD%E8%B9%A4%EF%BC%9A%E9%87%8D%E8%A4%87%E5%9C%96%E7%89%87|https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#%E4%B8%8A%E7%B7%9A%E5%BE%8C%E8%BF%BD%E8%B9%A4%EF%BC%9A%E9%87%8D%E8%A4%87%E5%9C%96%E7%89%87> , the root cause is • Production server does not have `MEDIA_ARTICLE_SUPPORT` turned on • Chatbot does not specify `articleTypes` so that only text is returned by default This PR fixes the duplicate image submission problem by specifying all article types so that no matter what API's `MEDIA_ARTICLE_SUPPORT` is, chatbot can get all media results.
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52272513|Build 3007073645>* • *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 *91.52%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52272513|Build 3007073645>* • *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 *91.52%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
Review on #321 Fix image search on chatbot
LGTM!
Review on #321 Fix image search on chatbot
LGTM!
<https://github.com/cofacts/rumors-line-bot/issues/322|#322 Handle duplicate image messaages>
In <https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#Case-%E7%99%BD%E8%9D%99%E8%9D%A0|20220907 meeting> we discussed several cases when users may submit images that is highly similar to existing images in the database. We will use this ticket to track the issue and see if we should mitigate this issue further (such as using image hash as article hash; don't change article ID if we change hashing algorithm)
<https://github.com/cofacts/rumors-line-bot/issues/322|#322 Handle duplicate image messaages>
In <https://g0v.hackmd.io/FYQIQOIgQ1evVfzG-33fwg#Case-%E7%99%BD%E8%9D%99%E8%9D%A0|20220907 meeting> we discussed several cases when users may submit images that is highly similar to existing images in the database. We will use this ticket to track the issue and see if we should mitigate this issue further (such as using image hash as article hash; don't change article ID if we change hashing algorithm)
<https://github.com/cofacts/rumors-site/pull/504|#504 [LandingPage] update dead link of news>
:white_check_mark: No checks have passed
<https://github.com/cofacts/rumors-site/pull/504|#504 [LandingPage] update dead link of news>
:white_check_mark: All checks have passed
<https://coveralls.io/builds/52461612|Coverage Status> Coverage remained the same at 75.86% when pulling *<https://github.com/cofacts/rumors-site/commit/1ae4bb1fb0c588bd7647795f0285791aae37d6ac|1ae4bb1> on update-news* into *<https://github.com/cofacts/rumors-site/commit/caa63930809eb36795f878acd355ab9846a48823|caa6393> on master*.
<https://coveralls.io/builds/52461612|Coverage Status> Coverage remained the same at 75.86% when pulling *<https://github.com/cofacts/rumors-site/commit/1ae4bb1fb0c588bd7647795f0285791aae37d6ac|1ae4bb1> on update-news* into *<https://github.com/cofacts/rumors-site/commit/caa63930809eb36795f878acd355ab9846a48823|caa6393> on master*.
<https://github.com/cofacts/rumors-line-bot/issues/323|#323 Button of choosing reply always expires>
*Steps to reproduce* 1. Send the following text: > 蔡英文的堂弟 蔡世能 :在桃園成立大日本帝國,希望“重建日本政府” > > 若是沒有蔡英文的認同與支持,他敢這樣幹!? 2. See the reply list, choose any reply *Expected* User should be able to read reply after choosing reply *Actual* "Button has been expired" error is shown after choosing reply <https://user-images.githubusercontent.com/108608/190229739-b75c64ae-f0e5-4ce0-b881-fa3ce36a4124.png|image>
<https://github.com/cofacts/rumors-line-bot/issues/323|#323 Button of choosing reply always expires>
*Steps to reproduce* • Send the following text: > 蔡英文的堂弟 蔡世能 :在桃園成立大日本帝國,希望“重建日本政府” > > 若是沒有蔡英文的認同與支持,他敢這樣幹!? • See the reply list *Expected* User should be able to read reply when choosing reply *Actual* "Button has been expired" error is shown <https://user-images.githubusercontent.com/108608/190229739-b75c64ae-f0e5-4ce0-b881-fa3ce36a4124.png|image>
Seems that context is empty after providing text that has 100% match. <https://user-images.githubusercontent.com/108608/190322130-3ffe80ec-704f-43aa-a2c6-6f927bd86df1.png|image> It is supposed to have at least a `data` attribute and a new `sessionId`. No `data` in context will trigger <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/index.js#L158-L170|this logic>, responding that the button is expired. Note that the action buttons do have `sessionId` in its postback data, so `data` is passed to `choosingArticle` handler correctly. Then what happens <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/choosingArticle.js#L365|when `choosingArticle` returns its `data`>? Still needs further investigation.
Seems that context is empty after providing text that has 100% match. <https://user-images.githubusercontent.com/108608/190322130-3ffe80ec-704f-43aa-a2c6-6f927bd86df1.png|image> It is supposed to have at least a `data` attribute and a new `sessionId`. No `data` in context will trigger <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/index.js#L158-L170|this logic>, responding that the button is expired. Note that the action buttons do have `sessionId` in its postback data, so `data` is passed to `choosingArticle` handler correctly. Then what happens <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/choosingArticle.js#L365|when `choosingArticle` returns its `data`>? Still needs further investigation.
Root cause: `handlePostback`, a function that returns `{context: data}`, is used in handlers that should return `{data}`.
*Root cause* `handlePostback`, a function that returns `{context: data}`, is used in handlers that should return `{data}`. 1. `handleInput`, `handlePostback` and `processImage` are top-level functions that returns `{context, replies}` for `singleUserHandler` to set redis context and submit replies. 2. These functions calls handlers such as `initState` and `choosingArticle`, who returns data in `{data, replies, ...}` format. 3. However, in `initState` and `choosingArticle`, in some scenarios we may return results from `handlePostback`. • The caller of `initState` expects a result in the form `{data, replies, ...}` but in this case it returns `{context, replies}` • The caller tries to grab `data` (which is `undefined` in this case) and put in `context`, thus the context is dropped. 4. After context is dropped, any postback action will trigger <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/index.js#L158-L170|this logic>, rendering the "button is expired" error. 5. In the unit test, we mock the return result of `handlePostback` all together, so that we cannot spot this issue. *Suggested fix* 1. In the context of handlers such as `initState` and `choosingArticle`, instead of calling `handlePostback({data}, NEXT_ACTION)`, we should call the handler for the `NEXT_ACTION` and return its result. This ensures that the signature stays the same. 2. We do not mock the called handler in unit test so that we can inspect the response of the called handler. Although the snapshot may overlap and changes to the called handler may incur multiple snapshot changes, we can at least see if the full response is as expected. *Impact* • `handlePostback({ data }, 'CHOOSING_ARTICLE', event, userId)` In `initState` under condition `edgesSortedWithSimilarity.length === 1 && hasIdenticalDocs` • --> If there is only 1 identical text, the resulting buttons have no context and always yields "button is expired" error • Example: the example in the ticket description • `handlePostback({ data }, 'CHOOSING_REPLY', event, userId)` in `choosingArticle` under condition `articleReplies.length === 1` • --> if there is only 1 reply, the "current context" will be dropped. If user chooses another article in the same search session, the LINE bot will respond with "expired button" error • Example: <https://user-images.githubusercontent.com/108608/190326939-478883ab-12f7-4f86-9a5d-68b70e7ec28b.png|image>
new7.storm.mg
假訊息.自救》不實謠言滲透台灣社會!該如何分辨假消息?事實查核團體3招教你破解-新新聞
假訊息從文字、圖片變型成影音、語音,甚至還有難以辨識的深偽變造(deepfake),除了靠政府查緝、開罰,以及事實查核機構連日研究提供報告,面對日常生活中的假訊息,我們有什麼方法可以應對?就在2022年九合一大選的參選人登記當周,法務部調查局舉辦「選舉查察工作」誓
new7.storm.mg
假訊息.現象》遭假訊息侵擾台灣蟬聯九年世界冠軍!三類謠言在選戰中發酵 中國在台資訊操弄主軸全揭露-新新聞
台灣自2018年以來的選舉受到假訊息影響深遠,距離年底九合一大選還有70天,從過去4年多次投票的經驗當中,假訊息經常以哪些形式出現,又怎麼影響我們的思考與判斷?中秋假期除了早有4年前就傳出的「柚子和優酪乳一起吃會中毒」的謠言廣傳,健康、疫情、國防類假訊息也在臉書社
HackMD
# Cofacts 會議記錄 ## 2022 - [20220921 會議記錄](/IqCOZMZLRe-JPMSJIV3yRQ) - [20220914 會議記錄](/vl_7BJq1RsGb
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52637636|Build 3095429439>* • *5* of *5* *(100.0%)* changed or added relevant lines in *4* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage increased (+*0.02%*) to *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52637636|Build 3095429439>* • *5* of *5* *(100.0%)* changed or added relevant lines in *4* files are covered. • No unchanged relevant lines lost coverage. • Overall coverage increased (+*0.02%*) to *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
Review on #324 Fix issue choosing reply button expire
LGTM! Thanks for the fix :pray:
Review on #324 Fix issue choosing reply button expire
LGTM! Thanks for the fix :pray:
g0v.hackmd.io
<https://github.com/cofacts/rumors-line-bot/pull/325|#325 Remove mongo client closing logic>
because it is done in setup-jest instead in <https://github.com/cofacts/rumors-line-bot/commit/71b69a7575b67b5994e03a34600751b4a7340091|71b69a7>
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-line-bot/pull/325|#325 Remove mongo client closing logic>
because it is done in setup-jest instead
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52703891|Build 3110520753>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52703891|Build 3110520753>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
Review on #325 Remove mongo client closing logic
LGTM
Review on #325 Remove mongo client closing logic
LGTM
<https://user-images.githubusercontent.com/108608/191896120-79b7d4f9-a313-44ee-8434-50ba1eeb8ff5.png|image> *Root cause* In <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/choosingArticle.js#L50-L74|`POSTBACK_NO_ARTICLE_FOUND` logic> of `choosingArticle` handler, we currently do not handle images properly. *TODO* • Copy the <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/processImage.js#L252-L265|current not-found reply> ("I am sorry you cannot find...") in `processImage` to `choosingArticle` • Update the <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/processImage.js#L259-L261|wording of not-found reply in `processImage`> to something like "Unfortunately, I currently don’t recognize..." in <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/initState.js#L311|initState>. • The current wording in `processImage` is actually the 'not found' reply for text when choosing article.
As found in <https://g0v.hackmd.io/IqCOZMZLRe-JPMSJIV3yRQ#%E6%B2%92%E6%9C%89%E5%AF%A6%E4%BD%9C%E3%80%8C%E6%89%BE%E4%B8%8D%E5%88%B0%E6%88%91%E6%83%B3%E6%9F%A5%E7%9A%84%E8%A8%8A%E6%81%AF%E3%80%8D|20220921 meeting>, the following button does not work: <https://user-images.githubusercontent.com/108608/191896120-79b7d4f9-a313-44ee-8434-50ba1eeb8ff5.png|image> *Root cause* In <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/choosingArticle.js#L50-L74|`POSTBACK_NO_ARTICLE_FOUND` logic> of `choosingArticle` handler, we currently do not handle images properly. *Proposed solution* Should do both of the following: • Copy the <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/processImage.js#L252-L265|current not-found reply> ("I am sorry you cannot find...") from `processImage` to `choosingArticle` • separate image handling logic from text handling logic within `choosingArticle` • Update the <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/processImage.js#L259-L261|wording of not-found reply in `processImage`> to something like "Unfortunately, I currently don’t recognize..." in <https://github.com/cofacts/rumors-line-bot/blob/master/src/webhook/handlers/initState.js#L311|initState>. • The current wording in `processImage` is actually the 'not found' reply for text when choosing article.
<https://github.com/cofacts/rumors-line-bot/issues/327|#327 Cannot record feedback in certain state>
From <https://g0v.hackmd.io/IqCOZMZLRe-JPMSJIV3yRQ#Feedback-%E7%84%A1%E6%B3%95%E7%B4%80%E9%8C%84|20220921 meeting> *Steps to reproduce* 1. 給一圖,觸發兩則圖 A, B 2. 先選一個有多個回應的圖 A,但不選回應 3. 捲回去選單一回應的圖 B,觸發回應 4. 捲回去挑一個 A 的回應顯示 5. 對該回應按「有用」或「沒用」 6. 按關閉,會出現「無法紀錄您的評價」 <https://user-images.githubusercontent.com/108608/191897488-87dae2c5-2531-4c8a-a8b0-d01a5aba7b71.png|image> <https://user-images.githubusercontent.com/108608/191897504-9496c8a1-bc17-4e64-b861-61e4c2098d89.png|image> <https://user-images.githubusercontent.com/108608/191897512-7783dac7-cf69-4b17-bcd1-5005984e5c40.png|image>
<https://github.com/cofacts/rumors-line-bot/issues/327|#327 Cannot record feedback in certain state>
From <https://g0v.hackmd.io/IqCOZMZLRe-JPMSJIV3yRQ#Feedback-%E7%84%A1%E6%B3%95%E7%B4%80%E9%8C%84|20220921 meeting> *Steps to reproduce* 1. 給一圖,觸發兩則圖 A, B 2. 先選一個有多個回應的圖 A,但不選回應 3. 捲回去選單一回應的圖 B,觸發回應 4. 捲回去挑一個 A 的回應顯示 5. 對該回應按「有用」或「沒用」 6. 按關閉,會出現「無法紀錄您的評價」 <https://user-images.githubusercontent.com/108608/191897488-87dae2c5-2531-4c8a-a8b0-d01a5aba7b71.png|image> <https://user-images.githubusercontent.com/108608/191897504-9496c8a1-bc17-4e64-b861-61e4c2098d89.png|image> <https://user-images.githubusercontent.com/108608/191897512-7783dac7-cf69-4b17-bcd1-5005984e5c40.png|image>
<https://github.com/cofacts/rumors-line-bot/pull/328|#328 docs: fix hyperlink>
The `LINE official tutorial` link at `README.md` isn't valid anymore.
<https://github.com/cofacts/rumors-line-bot/pull/328|#328 docs: fix hyperlink>
The `LINE official tutorial` link at `README.md` isn't valid anymore.
Review on #328 docs: fix hyperlink
Thanks for updating the link! :muscle:
Review on #328 docs: fix hyperlink
Thanks for updating the link! :muscle:
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52705988|Build 3110979112>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52705988|Build 3110979112>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
<https://github.com/cofacts/rumors-line-bot/pull/329|#329 fix: incorrect thank-you message>
Closes <https://github.com/cofacts/rumors-line-bot/issues/320|#320>.
<https://github.com/cofacts/rumors-line-bot/pull/329|#329 fix: incorrect thank-you message>
Closes <https://github.com/cofacts/rumors-line-bot/issues/320|#320>.
:white_check_mark: All checks have passed
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52706596|Build 3111362375>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52706596|Build 3111362375>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
Review on #329 fix: incorrect thank-you message
LGTM! Thanks for the fix
Review on #329 fix: incorrect thank-you message
LGTM! Thanks for the fix
<https://github.com/cofacts/rumors-line-bot/pull/330|#330 docs: fix hyperlink>
Fix broken LINE developer links.
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-line-bot/pull/330|#330 docs: fix hyperlink>
Fix broken LINE developer links.
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52707084|Build 3111485211>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52707084|Build 3111485211>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
<https://github.com/cofacts/rumors-line-bot/pull/331|#331 fix: `COFACTS_API_URL` is unnecessary>
We should replace `COFACTS_API_URL` with `/graphql`, otherwise `getArticlesFromCofacts` will be blocked by CORS.
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-line-bot/pull/331|#331 fix: `COFACTS_API_URL` is unnecessary>
We should replace `COFACTS_API_URL` with `/graphql`, otherwise the local development will fail.
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52708680|Build 3111950811>* • *1* of *1* *(100.0%)* changed or added relevant line in *1* file are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52708747|Build 3111962803>* • *1* of *1* *(100.0%)* changed or added relevant line in *1* file are covered. • No unchanged relevant lines lost coverage. • Overall coverage remained the same at *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
TikTok
@aa666363 ♬ 一生兄弟大过天 - 杨克意
<https://github.com/cofacts/community-builder/pull/13|#13 [BigNum] add comment count>
• Add comment count panel • Apply `website` filter to feedbacks and reply-requests so that numbers only show website user contributions • Better match the contributor on site • Adjust order to feedback > comment > reply so that it corresponds to meetup's introductionary order <https://user-images.githubusercontent.com/108608/192085333-b0bc0938-ee0e-4b49-a27b-2cec3b6396ae.png|image> <https://user-images.githubusercontent.com/108608/192085307-c549a74a-3db9-48a1-88ca-06301a65df77.png|image>
:white_check_mark: All checks have passed
<https://github.com/cofacts/community-builder/pull/13|#13 [BigNum] add comment count>
• Add comment count panel • Apply `website` filter to feedbacks and reply-requests so that numbers only show website user contributions • Better match the contributor on site • Adjust order to feedback > comment > reply so that it corresponds to meetup's introductionary order <https://user-images.githubusercontent.com/108608/192085333-b0bc0938-ee0e-4b49-a27b-2cec3b6396ae.png|image> <https://user-images.githubusercontent.com/108608/192085307-c549a74a-3db9-48a1-88ca-06301a65df77.png|image>
Review on #330 docs: fix hyperlink
LGTM, thanks!
Review on #330 docs: fix hyperlink
LGTM, thanks!
Review on #331 fix: `COFACTS_API_URL` is unnecessary
Thanks for the refactor! The constant `COFACTS_API_URL` was introduced before we stitch chatbot GraphQL and cofacts-api GraphQL together. Personally I did not spot such CORS issue because we setup our staging API to allow domains such as localhost:5001 and my personal ngrok URL. Since we have made Cofacts API available via chatbot GraphQL server, It is great to move forward without the constant. One thing to note is that we can probably drop `APP_ID` env and `x-app-id` header as well. Query used in `getArticlesFromCofacts()` does not require authentication, and Chatbot GraphQL does not forward `x-app-id` header either.
Review on #331 fix: `COFACTS_API_URL` is unnecessary
Thanks for the refactor! The constant `COFACTS_API_URL` was introduced before we stitch chatbot GraphQL and cofacts-api GraphQL together. Personally I did not spot such CORS issue because we setup our staging API to allow domains such as localhost:5001 and my personal ngrok URL. Since we have made Cofacts API available via chatbot GraphQL server, It is great to move forward without such constant. One thing to note is that we can probably drop `APP_ID` env and `x-app-id` header as well. Query used in `getArticlesFromCofacts()` does not require authentication, and Chatbot GraphQL does not forward `x-app-id` header either.
facebook.com
See posts, photos and more on Facebook.
Currently empty articles page will trigger error due to 0 elements in `edges`. After this PR, empty edges will not trigger error. `<Pagination />` should render nothing in this case. <https://user-images.githubusercontent.com/108608/192158253-f31581dd-9cd8-4d7e-9e60-91e17cac14d7.png|image>
:white_check_mark: All checks have passed
Currently empty articles page will trigger error due to 0 elements in `edges`. After this PR, empty edges will not trigger error. <https://user-images.githubusercontent.com/108608/192158253-f31581dd-9cd8-4d7e-9e60-91e17cac14d7.png|image>
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52737857|Build 3123134267>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52737857|Build 3123134267>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
HackMD
Cofacts reasearch & design docs - HackMD
# Cofacts reasearch & design docs :::info - Design docs: Implementation documents with requiremen
<https://github.com/cofacts/rumors-site/pull/505|#505 Bump degenerator and pm2>
Bumps <https://github.com/TooTallNate/node-degenerator|degenerator> to 3.0.2 and updates ancestor dependency <https://github.com/Unitech/pm2|pm2>. These dependencies need to be updated together. Updates `degenerator` from 2.2.0 to 3.0.2 Release notes _Sourced from <https://github.com/TooTallNate/node-degenerator/releases|degenerator's releases>._ > *3.0.2* > *Patches* > > • Update `vm2` to v3.9.8: f690e194041f9dacba5341d5a98bbd1a65996048 > > *3.0.1* > *Patches* > > • Fix return `undefined`: ccc3445354135398b6eb1a04c7d27c13b833f2d5 > • Fix `filename` option: 9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e > > *3.0.0* > *Major Changes* > > • Remove "generator" output mode: <https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/12|#12> > • Use `vm2` module to prevent privilege escalation of untrusted code: <https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/11|#11> > > *Minor Changes* > > • Add `any` default return type to `compile()`: e0b9fc83faabb101944b63bc73b710be7787f15b Commits • <https://github.com/TooTallNate/node-degenerator/commit/3b609557e46aca742bb2fcfc5ad8254cd599d633|`3b60955`> 3.0.2 • <https://github.com/TooTallNate/node-degenerator/commit/f690e194041f9dacba5341d5a98bbd1a65996048|`f690e19`> Update `vm2` to v3.9.8 • <https://github.com/TooTallNate/node-degenerator/commit/5cf4ab2eeacfa593e95ae84e4cc433592156088f|`5cf4ab2`> 3.0.1 • <https://github.com/TooTallNate/node-degenerator/commit/9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e|`9d25bb6`> Fix `filename` option • <https://github.com/TooTallNate/node-degenerator/commit/ccc3445354135398b6eb1a04c7d27c13b833f2d5|`ccc3445`> Fix return `undefined` • <https://github.com/TooTallNate/node-degenerator/commit/dc10ee9daa270157c19a16f7168fc42210f3355c|`dc10ee9`> 3.0.0 • <https://github.com/TooTallNate/node-degenerator/commit/e0b9fc83faabb101944b63bc73b710be7787f15b|`e0b9fc8`> Add `any` default return type to `compile()` • <https://github.com/TooTallNate/node-degenerator/commit/852043f9621f098ccf3a577a1d9a2ed0de20f402|`852043f`> Use `vm2` module to prevent privilege escalation of untrusted code (<https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/11|#11>) • <https://github.com/TooTallNate/node-degenerator/commit/7ad1041853551e393439003a10da56c605115652|`7ad1041`> Remove "generator" output mode (<https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/12|#12>) • See full diff in <https://github.com/TooTallNate/node-degenerator/compare/2.2.0...3.0.2|compare view> Updates `pm2` from 4.5.6 to 5.2.0 Release notes _Sourced from <https://github.com/Unitech/pm2/releases|pm2's releases>._ > *5.2.0* > > • replace node-cron by croner (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5183|#5183> <https://github-redirect.dependabot.com/Unitech/pm2/issues/5035|#5035>) > • upgrade mocha deps > • fix pm2 report when daemon not running > • remove semver check for legacy node.js versions > • update node version in setup.deb.sh by using lts (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5201|#5201>) + openrc > • replace legacy util._extend by Object.assign (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5239|#5239>) > • add missing start options types (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5242|#5242>) > • recursive detection of package.json (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5267|#5267>) > • make tarball module uninstall cross-platform (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5269|#5269>) > • Fix unnecessary "ENOENT" console.error when serving a spa (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5272|#5272>) > • fix: used env variable instead of hardcode datetime format (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5277|#5277>) > • copyright update (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5278|#5278>) > • fix: remove constants import from VersionCheck (not needed) (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5279|#5279>) > • Reduce async import (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5280|#5280>) > > *5.1.2* > > • cron-restart improvements > > *5.1.1* > > • add back Node 10.x support > • make pm2-sysmonit module optional > • remove fast-printf and replace with sprintfjs > > *5.0.3* > > • fixes for system monitoring > > *5.0.0* > *System Monitoring* > > A new local system monitoring feature has been added, allowing to monitor numerous vital server metrics. > > Most important metrics will be displayed when doing a pm2 ls: > > ``` > ┌─────┬─────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ > │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ > ├─────┼─────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ > │ 4 │ app │ default │ 1.0.0 │ fork │ 164618 │ 2s │ 1670 │ online │ 0% │ 41.8mb │ unitech │ disabled │ > └─────┴─────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ > host metrics | cpu: 1.6% 42.9º | mem free: 52.0% | wlp0s20f3: ⇓ 0mb/s ⇑ 0mb/s | disk: ⇓ 0.199mb/s ⇑ 0mb/s /dev/nvme0n1p3 88.25% | > ``` > > All server metrics will be available to <http://pm2.io|pm2.io>: > > ``` > ┌─────────────────────────────┬──────────────────────────────────┐ > │ PM2 CPU Usage │ 0.0 % │ > │ PM2 Memory Usage │ 67.4 mb │ > │ PM2 Agent CPU Usage │ 0 % │ > </tr></table> > ``` ... (truncated) Changelog _Sourced from <https://github.com/Unitech/pm2/blob/master/CHANGELOG.md|pm2's changelog>._ > *5.2.0* > > • replace node-cron by croner (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5183|#5183> <https://github-redirect.dependabot.com/Unitech/pm2/issues/5035|#5035>) > • upgrade mocha deps > • fix pm2 report when daemon not running > • remove semver check for legacy node.js versions > • update node version in setup.deb.sh by using lts (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5201|#5201>) + openrc > • replace legacy util._extend by Object.assign (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5239|#5239>) > • add missing start options types (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5242|#5242>) > • recursive detection of package.json (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5267|#5267>) > • make tarball module uninstall cross-platform (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5269|#5269>) > • Fix unnecessary "ENOENT" console.error when serving a spa (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5272|#5272>) > • fix: used env variable instead of hardcode datetime format (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5277|#5277>) > • copyright update (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5278|#5278>) > • fix: remove constants import from VersionCheck (not needed) (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5279|#5279>) > • Reduce async import (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5280|#5280>) > > *5.1.2* > > • easily disable cron-restart strategy via `$ pm2 restart --cron-restart 0` > • allow to update cron-restart on restart > > *5.1.1* > > • remove fast-printf and replace w…
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-site/pull/505|#505 Bump degenerator and pm2>
Bumps <https://github.com/TooTallNate/node-degenerator|degenerator> to 3.0.2 and updates ancestor dependency <https://github.com/Unitech/pm2|pm2>. These dependencies need to be updated together. Updates `degenerator` from 2.2.0 to 3.0.2 Release notes _Sourced from <https://github.com/TooTallNate/node-degenerator/releases|degenerator's releases>._ > *3.0.2* > *Patches* > > • Update `vm2` to v3.9.8: f690e194041f9dacba5341d5a98bbd1a65996048 > > *3.0.1* > *Patches* > > • Fix return `undefined`: ccc3445354135398b6eb1a04c7d27c13b833f2d5 > • Fix `filename` option: 9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e > > *3.0.0* > *Major Changes* > > • Remove "generator" output mode: <https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/12|#12> > • Use `vm2` module to prevent privilege escalation of untrusted code: <https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/11|#11> > > *Minor Changes* > > • Add `any` default return type to `compile()`: e0b9fc83faabb101944b63bc73b710be7787f15b Commits • <https://github.com/TooTallNate/node-degenerator/commit/3b609557e46aca742bb2fcfc5ad8254cd599d633|`3b60955`> 3.0.2 • <https://github.com/TooTallNate/node-degenerator/commit/f690e194041f9dacba5341d5a98bbd1a65996048|`f690e19`> Update `vm2` to v3.9.8 • <https://github.com/TooTallNate/node-degenerator/commit/5cf4ab2eeacfa593e95ae84e4cc433592156088f|`5cf4ab2`> 3.0.1 • <https://github.com/TooTallNate/node-degenerator/commit/9d25bb67d957bc2e5425fea7bf7a58b3fc64ff9e|`9d25bb6`> Fix `filename` option • <https://github.com/TooTallNate/node-degenerator/commit/ccc3445354135398b6eb1a04c7d27c13b833f2d5|`ccc3445`> Fix return `undefined` • <https://github.com/TooTallNate/node-degenerator/commit/dc10ee9daa270157c19a16f7168fc42210f3355c|`dc10ee9`> 3.0.0 • <https://github.com/TooTallNate/node-degenerator/commit/e0b9fc83faabb101944b63bc73b710be7787f15b|`e0b9fc8`> Add `any` default return type to `compile()` • <https://github.com/TooTallNate/node-degenerator/commit/852043f9621f098ccf3a577a1d9a2ed0de20f402|`852043f`> Use `vm2` module to prevent privilege escalation of untrusted code (<https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/11|#11>) • <https://github.com/TooTallNate/node-degenerator/commit/7ad1041853551e393439003a10da56c605115652|`7ad1041`> Remove "generator" output mode (<https://github-redirect.dependabot.com/TooTallNate/node-degenerator/issues/12|#12>) • See full diff in <https://github.com/TooTallNate/node-degenerator/compare/2.2.0...3.0.2|compare view> Updates `pm2` from 4.5.6 to 5.2.0 Release notes _Sourced from <https://github.com/Unitech/pm2/releases|pm2's releases>._ > *5.2.0* > > • replace node-cron by croner (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5183|#5183> <https://github-redirect.dependabot.com/Unitech/pm2/issues/5035|#5035>) > • upgrade mocha deps > • fix pm2 report when daemon not running > • remove semver check for legacy node.js versions > • update node version in setup.deb.sh by using lts (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5201|#5201>) + openrc > • replace legacy util._extend by Object.assign (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5239|#5239>) > • add missing start options types (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5242|#5242>) > • recursive detection of package.json (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5267|#5267>) > • make tarball module uninstall cross-platform (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5269|#5269>) > • Fix unnecessary "ENOENT" console.error when serving a spa (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5272|#5272>) > • fix: used env variable instead of hardcode datetime format (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5277|#5277>) > • copyright update (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5278|#5278>) > • fix: remove constants import from VersionCheck (not needed) (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5279|#5279>) > • Reduce async import (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5280|#5280>) > > *5.1.2* > > • cron-restart improvements > > *5.1.1* > > • add back Node 10.x support > • make pm2-sysmonit module optional > • remove fast-printf and replace with sprintfjs > > *5.0.3* > > • fixes for system monitoring > > *5.0.0* > *System Monitoring* > > A new local system monitoring feature has been added, allowing to monitor numerous vital server metrics. > > Most important metrics will be displayed when doing a pm2 ls: > > ``` > ┌─────┬─────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ > │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ > ├─────┼─────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ > │ 4 │ app │ default │ 1.0.0 │ fork │ 164618 │ 2s │ 1670 │ online │ 0% │ 41.8mb │ unitech │ disabled │ > └─────┴─────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ > host metrics | cpu: 1.6% 42.9º | mem free: 52.0% | wlp0s20f3: ⇓ 0mb/s ⇑ 0mb/s | disk: ⇓ 0.199mb/s ⇑ 0mb/s /dev/nvme0n1p3 88.25% | > ``` > > All server metrics will be available to <http://pm2.io|pm2.io>: > > ``` > ┌─────────────────────────────┬──────────────────────────────────┐ > │ PM2 CPU Usage │ 0.0 % │ > │ PM2 Memory Usage │ 67.4 mb │ > │ PM2 Agent CPU Usage │ 0 % │ > </tr></table> > ``` ... (truncated) Changelog _Sourced from <https://github.com/Unitech/pm2/blob/master/CHANGELOG.md|pm2's changelog>._ > *5.2.0* > > • replace node-cron by croner (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5183|#5183> <https://github-redirect.dependabot.com/Unitech/pm2/issues/5035|#5035>) > • upgrade mocha deps > • fix pm2 report when daemon not running > • remove semver check for legacy node.js versions > • update node version in setup.deb.sh by using lts (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5201|#5201>) + openrc > • replace legacy util._extend by Object.assign (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5239|#5239>) > • add missing start options types (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5242|#5242>) > • recursive detection of package.json (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5267|#5267>) > • make tarball module uninstall cross-platform (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5269|#5269>) > • Fix unnecessary "ENOENT" console.error when serving a spa (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5272|#5272>) > • fix: used env variable instead of hardcode datetime format (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5277|#5277>) > • copyright update (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5278|#5278>) > • fix: remove constants import from VersionCheck (not needed) (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5279|#5279>) > • Reduce async import (<https://github-redirect.dependabot.com/Unitech/pm2/issues/5280|#5280>) > > *5.1.2* > > • easily disable cron-restart strategy via `$ pm2 restart --cron-restart 0` > • allow to update cron-restart on restart > > *5.1.1* > > • remove fast-printf and replace w…
<https://coveralls.io/builds/52770004|Coverage Status> Coverage remained the same at 75.86% when pulling *<https://github.com/cofacts/rumors-site/commit/67fd5e2adec8c8f70e38895c9f8cafebf7817e72|67fd5e2> on dependabot/npm_and_yarn/degenerator-and-pm2-3.0.2* into *<https://github.com/cofacts/rumors-site/commit/7429b0698c89b448675b62d97f63ab302e5f01c2|7429b06> on master*.
<https://coveralls.io/builds/52770004|Coverage Status> Coverage remained the same at 75.86% when pulling *<https://github.com/cofacts/rumors-site/commit/67fd5e2adec8c8f70e38895c9f8cafebf7817e72|67fd5e2> on dependabot/npm_and_yarn/degenerator-and-pm2-3.0.2* into *<https://github.com/cofacts/rumors-site/commit/7429b0698c89b448675b62d97f63ab302e5f01c2|7429b06> on master*.
g0v.hackmd.io
<https://github.com/cofacts/rumors-line-bot/pull/333|#333 Fix comment LIFF thanks message>
Fix bug found in <https://g0v.hackmd.io/ysACleHDTBmVMbH_4mi8uQ#%E2%9B%94%EF%B8%8F-Release-Blockers|20220928 meeting> (Related to <https://github.com/cofacts/rumors-line-bot/pull/329|#329> ) *1 reply request (no other)* <https://user-images.githubusercontent.com/108608/192913275-892f2cff-a581-4134-a495-816396ca2635.png|image> *2 reply requests (1 other)* <https://user-images.githubusercontent.com/108608/192913138-f20c59a8-91d6-4bea-82cb-235317d1221d.png|image> *5 reply requests* <https://user-images.githubusercontent.com/108608/192912897-b95b63ca-1f38-4966-a456-59f1405232c2.png|image>
:white_check_mark: All checks have passed
<https://github.com/cofacts/rumors-line-bot/pull/333|#333 Fix comment LIFF thanks message>
Fix the release blocker found in <https://g0v.hackmd.io/ysACleHDTBmVMbH_4mi8uQ#%E2%9B%94%EF%B8%8F-Release-Blockers|20220928 meeting> (Related to <https://github.com/cofacts/rumors-line-bot/pull/329|#329> ). Also change the mandarin translation "共有 N 人" to "另有 N 人" so that it makes sense for both the case N = 1 and N > 1. *1 reply request (no other)* <https://user-images.githubusercontent.com/108608/192913275-892f2cff-a581-4134-a495-816396ca2635.png|image> *2 reply requests (1 other)* <https://user-images.githubusercontent.com/108608/192913783-defd37eb-7aca-4602-bad5-d5042b3fb142.png|image> *5 reply requests (4 other)* <https://user-images.githubusercontent.com/108608/192913852-fef42e29-83ed-4123-8020-c51bd387ac31.png|image>
:white_check_mark: All checks have passed
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52853496|Build 3147862573>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
*Pull Request Test Coverage Report for <https://coveralls.io/builds/52853538|Build 3147870075>* • *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 *91.543%* * * * * * * *:yellow_heart: - <https://coveralls.io|Coveralls>*
<https://github.com/cofacts/rumors-line-bot/pull/333|#333 Fix comment LIFF thanks message>
<https://github.com/cofacts/rumors-line-bot/pull/333|#333 Fix comment LIFF thanks message>
<https://github.com/cofacts/rumors-site/pull/506|#506 Bump d3-color and d3>
Bumps <https://github.com/d3/d3-color|d3-color> to 3.1.0 and updates ancestor dependency <https://github.com/d3/d3|d3>. These dependencies need to be updated together. Updates `d3-color` from 1.4.1 to 3.1.0 Release notes _Sourced from <https://github.com/d3/d3-color/releases|d3-color's releases>._ > *v3.1.0* > > • Add <https://github.com/d3/d3-color/blob/main/README.md#rgb_clamp|_rgb_.clamp> and <https://github.com/d3/d3-color/blob/main/README.md#hsl_clamp|_hsl_.clamp>. <https://github-redirect.dependabot.com/d3/d3-color/issues/102|#102> > • Add <https://github.com/d3/d3-color/blob/main/README.md#color_formatHex8|_color_.formatHex8>. <https://github-redirect.dependabot.com/d3/d3-color/issues/103|#103> > • Fix <https://github.com/d3/d3-color/blob/main/README.md#color_formatHsl|_color_.formatHsl> to clamp values to the expected range. <https://github-redirect.dependabot.com/d3/d3-color/issues/83|#83> > • Fix catastrophic backtracking when parsing colors. <https://github-redirect.dependabot.com/d3/d3-color/issues/89|#89> <https://github-redirect.dependabot.com/d3/d3-color/issues/97|#97> <https://github-redirect.dependabot.com/d3/d3-color/issues/99|#99> <https://github-redirect.dependabot.com/d3/d3-color/issues/100|#100> <https://security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592|SNYK-JS-D3COLOR-1076592> > > *v3.0.1* > > • Make build reproducible. > > *v3.0.0* > > • Adopt type: module. > > This package now requires Node.js 12 or higher. For more, please read <https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c|Sindre Sorhus’s FAQ>. > > *v2.0.0* > > This release adopts ES2015 language features such as <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of|for-of> and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-color 1.x or use a transpiler. Commits • <https://github.com/d3/d3-color/commit/7a1573ed260de4fd97d061975244841132adde92|`7a1573e`> 3.1.0 • <https://github.com/d3/d3-color/commit/75c19c40c246e4b3fbcfdeeba29249c51ccf6524|`75c19c4`> update LICENSE • <https://github.com/d3/d3-color/commit/ef94e0125cce176e2df2f877c70741f4e2856073|`ef94e01`> update dependencies • <https://github.com/d3/d3-color/commit/5e9f7579dd32a74664f5000ee99aa87e3e463c2b|`5e9f757`> method shorthand • <https://github.com/d3/d3-color/commit/e4bc34e46cba08c4b7209f2bea74ef570c000b86|`e4bc34e`> formatHex8 (<https://github-redirect.dependabot.com/d3/d3-color/issues/103|#103>) • <https://github.com/d3/d3-color/commit/ac660c6b6bd60a2f1cd255fe04ead7d1b053861d|`ac660c6`> {rgb,hsl}.clamp() (<https://github-redirect.dependabot.com/d3/d3-color/issues/102|#102>) • <https://github.com/d3/d3-color/commit/70e3a041f1890e63855fad693891652b36f48195|`70e3a04`> clamp HSL format (<https://github-redirect.dependabot.com/d3/d3-color/issues/101|#101>) • <https://github.com/d3/d3-color/commit/994d8fd95181484a5a27c5edc919aa625781432d|`994d8fd`> avoid backtracking (<https://github-redirect.dependabot.com/d3/d3-color/issues/100|#100>) • <https://github.com/d3/d3-color/commit/7d61bbe6e426a7f3d3f4520a8b31cfc92dc69ee7|`7d61bbe`> 3.0.1 • <https://github.com/d3/d3-color/commit/93bc4ff5423ecbefb6607724384bf6ca788d13b6|`93bc4ff`> related <https://github-redirect.dependabot.com/d3/d3/issues/3|d3/d33>; extract copyrights from LICENSE • Additional commits viewable in <https://github.com/d3/d3-color/compare/v1.4.1...v3.1.0|compare view> Updates `d3` from 5.16.0 to 7.6.1 Release notes _Sourced from <https://github.com/d3/d3/releases|d3's releases>._ > *v7.6.1* > > • <https://github.com/d3/d3-contour/blob/main/README.md#density_bandwidth|_density_.bandwidth> now supports fractional (non-integer) values. > > *v7.6.0* > > • Add <https://github.com/d3/d3-array/blob/main/README.md#blur|d3.blur>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#blur2|d3.blur2>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#blurImage|d3.blurImage>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#medianIndex|d3.medianIndex>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#quantileIndex|d3.quantileIndex>. > > *v7.5.0* > > • Add <https://github.com/d3/d3-contour/blob/main/README.md#density_contours|_density_.contours>. > > *v7.4.5* > > • Fix the interpretation of an array of numbers passed to <https://github.com/d3/d3-contour/blob/main/README.md#density_thresholds|_density_.thresholds>. > > *v7.4.4* > > • Fix incorrect behavior of d3.bisector when given an asymmetric comparator. > > *v7.4.3* > > • Fix crash in d3.bin. Thanks, <https://github.com/weiglemc|`@weiglemc`>! > > *v7.4.2* > > • Fix off-by-one bin assignment due to rounding error in d3.bin. > > *v7.4.1* > > • Significantly improve the performance of d3.bin. > • Fix the implementation of d3.thresholdScott. > • d3.pack and d3.packEnclose are now fully deterministic. > • d3.pack and d3.packEnclose now handle certain floating point errors better. > > *v7.4.0* > > • Add <https://github.com/d3/d3-color/blob/main/README.md#rgb_clamp|_rgb_.clamp> and <https://github.com/d3/d3-color/blob/main/README.md#hsl_clamp|_hsl_.clamp>. > • Add <https://github.com/d3/d3-color/blob/main/README.md#color_formatHex8|_color_.formatHex8>. > • Fix <https://github.com/d3/d3-color/blob/main/README.md#color_formatHsl|_color_.formatHsl> to clamp values to the expected range. > • Fix catastrophic backtracking when parsing colors. <https://security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592|SNYK-JS-D3COLOR-1076592> > > *v7.3.0* > > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolsStroke|d3.symbolsStroke>. Thanks, <https://github.com/hemanrobinson|`@hemanrobinson`>! > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolsFill|d3.symbolsFill>, replacing (deprecating) d3.symbols. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolAsterisk|d3.symbolAsterisk>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolDiamond2|d3.symbolDiamond2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolPlus|d3.symbolPlus>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolSquare2|d3.symbolSquare2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolTriangle2|d3.symbolTriangle2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolX|d3.symbolX>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#link|d3.link>. > > *v7.2.1* > > • Fix _stratify_.path when the top-level directory is only a single character. ... (truncated) Commits • <https://github.com/d3/d3/commit/19302a5055658907743b46a8428ba1ee39927b0f|`19302a5`> 7.6.1 • <https://github.com/d3/d3/commit/c1c2c0b8ca8d9058d8d07a9b8f89d6c8ec28d16e|`c1c2c0b`> d3-contour 4.0.0 • <https://github.com/d3/d3/commit/795f2030a4b727b3a14526ed9974d4e41c006a92|`795f203`> 7.6.0 • <https://github.com/d3/d3/commit/22f1dc734b8078ef7eaabff42d9aa479599559db|`22f1dc7`> d3-array 3.2.0 • <https://github.com/d3/d3/commit/d61883547c058d9e19fa04269fec48e2f4f8d494|`d618835`> 7.5.0 • <https://github.com/d3/d3/commit/d9f58e148dee005d8fa948d9e6b7dd154b18ca63|`d9f58e1`> d3-contour 3.1.0 • <https://github.com/d3/d3/commit/6d7057148dd18fc8240d51a2183d3f03ac42480c|`6d70571`> 7.4.5 • <https://github.com/d3/d3/commit/7e9eba396c80095f9b786af24cb4e8abbc03ed18|`7e9eba3`> d3-contour 3.0.2 • <https://github.com/d3/d3/commit/2f256d997879aef15d0a8f7e94a242dbc57d0106|`2f256d9`> 7.4.4 • <https://github.com/d3/d3/commit/8ff8c81b46bb43934f3cbc386298846702b99f79|`8ff8c81`> d3-array 3.1.6 • Additional commits viewable in <https://github.com/d3/d3/compare/v5.16.0...v7.6.1|compare view> Dependabot will resolve any conflicts with this PR as long as you don't alter it yo…
<https://github.com/cofacts/rumors-site/pull/506|#506 Bump d3-color and d3>
Bumps <https://github.com/d3/d3-color|d3-color> to 3.1.0 and updates ancestor dependency <https://github.com/d3/d3|d3>. These dependencies need to be updated together. Updates `d3-color` from 1.4.1 to 3.1.0 Release notes _Sourced from <https://github.com/d3/d3-color/releases|d3-color's releases>._ > *v3.1.0* > > • Add <https://github.com/d3/d3-color/blob/main/README.md#rgb_clamp|_rgb_.clamp> and <https://github.com/d3/d3-color/blob/main/README.md#hsl_clamp|_hsl_.clamp>. <https://github-redirect.dependabot.com/d3/d3-color/issues/102|#102> > • Add <https://github.com/d3/d3-color/blob/main/README.md#color_formatHex8|_color_.formatHex8>. <https://github-redirect.dependabot.com/d3/d3-color/issues/103|#103> > • Fix <https://github.com/d3/d3-color/blob/main/README.md#color_formatHsl|_color_.formatHsl> to clamp values to the expected range. <https://github-redirect.dependabot.com/d3/d3-color/issues/83|#83> > • Fix catastrophic backtracking when parsing colors. <https://github-redirect.dependabot.com/d3/d3-color/issues/89|#89> <https://github-redirect.dependabot.com/d3/d3-color/issues/97|#97> <https://github-redirect.dependabot.com/d3/d3-color/issues/99|#99> <https://github-redirect.dependabot.com/d3/d3-color/issues/100|#100> <https://security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592|SNYK-JS-D3COLOR-1076592> > > *v3.0.1* > > • Make build reproducible. > > *v3.0.0* > > • Adopt type: module. > > This package now requires Node.js 12 or higher. For more, please read <https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c|Sindre Sorhus’s FAQ>. > > *v2.0.0* > > This release adopts ES2015 language features such as <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of|for-of> and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-color 1.x or use a transpiler. Commits • <https://github.com/d3/d3-color/commit/7a1573ed260de4fd97d061975244841132adde92|`7a1573e`> 3.1.0 • <https://github.com/d3/d3-color/commit/75c19c40c246e4b3fbcfdeeba29249c51ccf6524|`75c19c4`> update LICENSE • <https://github.com/d3/d3-color/commit/ef94e0125cce176e2df2f877c70741f4e2856073|`ef94e01`> update dependencies • <https://github.com/d3/d3-color/commit/5e9f7579dd32a74664f5000ee99aa87e3e463c2b|`5e9f757`> method shorthand • <https://github.com/d3/d3-color/commit/e4bc34e46cba08c4b7209f2bea74ef570c000b86|`e4bc34e`> formatHex8 (<https://github-redirect.dependabot.com/d3/d3-color/issues/103|#103>) • <https://github.com/d3/d3-color/commit/ac660c6b6bd60a2f1cd255fe04ead7d1b053861d|`ac660c6`> {rgb,hsl}.clamp() (<https://github-redirect.dependabot.com/d3/d3-color/issues/102|#102>) • <https://github.com/d3/d3-color/commit/70e3a041f1890e63855fad693891652b36f48195|`70e3a04`> clamp HSL format (<https://github-redirect.dependabot.com/d3/d3-color/issues/101|#101>) • <https://github.com/d3/d3-color/commit/994d8fd95181484a5a27c5edc919aa625781432d|`994d8fd`> avoid backtracking (<https://github-redirect.dependabot.com/d3/d3-color/issues/100|#100>) • <https://github.com/d3/d3-color/commit/7d61bbe6e426a7f3d3f4520a8b31cfc92dc69ee7|`7d61bbe`> 3.0.1 • <https://github.com/d3/d3-color/commit/93bc4ff5423ecbefb6607724384bf6ca788d13b6|`93bc4ff`> related <https://github-redirect.dependabot.com/d3/d3/issues/3|d3/d33>; extract copyrights from LICENSE • Additional commits viewable in <https://github.com/d3/d3-color/compare/v1.4.1...v3.1.0|compare view> Updates `d3` from 5.16.0 to 7.6.1 Release notes _Sourced from <https://github.com/d3/d3/releases|d3's releases>._ > *v7.6.1* > > • <https://github.com/d3/d3-contour/blob/main/README.md#density_bandwidth|_density_.bandwidth> now supports fractional (non-integer) values. > > *v7.6.0* > > • Add <https://github.com/d3/d3-array/blob/main/README.md#blur|d3.blur>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#blur2|d3.blur2>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#blurImage|d3.blurImage>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#medianIndex|d3.medianIndex>. > • Add <https://github.com/d3/d3-array/blob/main/README.md#quantileIndex|d3.quantileIndex>. > > *v7.5.0* > > • Add <https://github.com/d3/d3-contour/blob/main/README.md#density_contours|_density_.contours>. > > *v7.4.5* > > • Fix the interpretation of an array of numbers passed to <https://github.com/d3/d3-contour/blob/main/README.md#density_thresholds|_density_.thresholds>. > > *v7.4.4* > > • Fix incorrect behavior of d3.bisector when given an asymmetric comparator. > > *v7.4.3* > > • Fix crash in d3.bin. Thanks, <https://github.com/weiglemc|`@weiglemc`>! > > *v7.4.2* > > • Fix off-by-one bin assignment due to rounding error in d3.bin. > > *v7.4.1* > > • Significantly improve the performance of d3.bin. > • Fix the implementation of d3.thresholdScott. > • d3.pack and d3.packEnclose are now fully deterministic. > • d3.pack and d3.packEnclose now handle certain floating point errors better. > > *v7.4.0* > > • Add <https://github.com/d3/d3-color/blob/main/README.md#rgb_clamp|_rgb_.clamp> and <https://github.com/d3/d3-color/blob/main/README.md#hsl_clamp|_hsl_.clamp>. > • Add <https://github.com/d3/d3-color/blob/main/README.md#color_formatHex8|_color_.formatHex8>. > • Fix <https://github.com/d3/d3-color/blob/main/README.md#color_formatHsl|_color_.formatHsl> to clamp values to the expected range. > • Fix catastrophic backtracking when parsing colors. <https://security.snyk.io/vuln/SNYK-JS-D3COLOR-1076592|SNYK-JS-D3COLOR-1076592> > > *v7.3.0* > > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolsStroke|d3.symbolsStroke>. Thanks, <https://github.com/hemanrobinson|`@hemanrobinson`>! > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolsFill|d3.symbolsFill>, replacing (deprecating) d3.symbols. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolAsterisk|d3.symbolAsterisk>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolDiamond2|d3.symbolDiamond2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolPlus|d3.symbolPlus>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolSquare2|d3.symbolSquare2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolTriangle2|d3.symbolTriangle2>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#symbolX|d3.symbolX>. > • Add <https://github.com/d3/d3-shape/blob/main/README.md#link|d3.link>. > > *v7.2.1* > > • Fix _stratify_.path when the top-level directory is only a single character. ... (truncated) Commits • <https://github.com/d3/d3/commit/19302a5055658907743b46a8428ba1ee39927b0f|`19302a5`> 7.6.1 • <https://github.com/d3/d3/commit/c1c2c0b8ca8d9058d8d07a9b8f89d6c8ec28d16e|`c1c2c0b`> d3-contour 4.0.0 • <https://github.com/d3/d3/commit/795f2030a4b727b3a14526ed9974d4e41c006a92|`795f203`> 7.6.0 • <https://github.com/d3/d3/commit/22f1dc734b8078ef7eaabff42d9aa479599559db|`22f1dc7`> d3-array 3.2.0 • <https://github.com/d3/d3/commit/d61883547c058d9e19fa04269fec48e2f4f8d494|`d618835`> 7.5.0 • <https://github.com/d3/d3/commit/d9f58e148dee005d8fa948d9e6b7dd154b18ca63|`d9f58e1`> d3-contour 3.1.0 • <https://github.com/d3/d3/commit/6d7057148dd18fc8240d51a2183d3f03ac42480c|`6d70571`> 7.4.5 • <https://github.com/d3/d3/commit/7e9eba396c80095f9b786af24cb4e8abbc03ed18|`7e9eba3`> d3-contour 3.0.2 • <https://github.com/d3/d3/commit/2f256d997879aef15d0a8f7e94a242dbc57d0106|`2f256d9`> 7.4.4 • <https://github.com/d3/d3/commit/8ff8c81b46bb43934f3cbc386298846702b99f79|`8ff8c81`> d3-array 3.1.6 • Additional commits viewable in <https://github.com/d3/d3/compare/v5.16.0...v7.6.1|compare view> Dependabot will resolve any conflicts with this PR as long as you don't alter it yo…
:white_check_mark: No checks have passed
台灣事實查核中心
【錯誤】網傳「很多人沒見過的新型測速攝影…為了你們辛苦賺來的錢,不要讓政府把你當提款機,務必小心,不要超速!」?
【報告將隨時更新 2022/9/30版】 一、網傳影片拍攝地點為桃園市。 桃園市交通局表示,網傳影片的設施為「車輛速度偵測提醒系統」,僅用於偵測車輛速度,並會以「綠色笑臉」、「紅色哭臉」圖樣來提醒駕駛人不要超速,並不具備照相舉發功能,也沒有與警局的測速照相系統連動。 二、目前桃園市共設置11支車輛速度偵測桿,交通局觀察到提醒效果卓著,行經車輛均明顯降速,今年底前還會再新增四處共8支,希望提醒駕駛人安全駕駛勿超速。 傳言呼籲駕駛人不要超速是正確觀念,但網傳影片中的「車輛速度偵測提醒系統」僅用於提醒,並不具備照相舉發功能。因此,傳言為「錯誤」訊息。