-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5514 – Import fact-check as published report #2094
Conversation
thanks @vasconsaurus - in theory, |
@caiosba It should work, that is why I'm unsure on this one.. I'll do some more poking around today and see what I can find. Yesterday I did stick a Anyway! Will double check and come back. |
@caiosba still will look some more into this after lunch, but for now: It seems
Also, we set check-api/app/models/fact_check.rb Lines 125 to 126 in 04e2897
|
Ah, that actually makes sense, @vasconsaurus ... we simply haven't implemented that as part of the big articles work. I think we're good as far as debugging is concerned. Just one question... I don't know if the solution is... (1) Replace the current line (2) In addition to the current line At the end of the day, we need to be sure that both the fact-check and the report have the status "published". |
both fact-check and dynamic status should be published
We need to be sure that both the fact-check and the report have the status "published".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @vasconsaurus ! Did the test fail before the fix?
While trying to run a fact check import Jessie noted that the fact checks weren't imported as published. I looked at some older imports and seems to have been the case for a while even though we set fc.publish_report = true in the FetchBot. We were updating the published value for Dynamic but weren't for FactCheck. We hadn't implemented that as part of the big articles work. So we just need to make sure both are updated as published when importing through the FetchBot. References: 5390, 5514 PR: 2094
Description
Context
While trying to run a fact check import Jessie noted that the fact checks weren't imported as published.
I looked at some older imports and seems to have been the case for a while even though we set
fc.publish_report = true
in the FetchBot.What
We were updating the published value for
Dynamic
but weren't forFactCheck
. We hadn't implemented that as part of the big articles work.So we just need to make sure both are updated as published when importing through the FetchBot.
References: 5390, 5514
How has this been tested?
rails test test/models/bot/fetch_test.rb:257
Things to pay attention to during code review
Please describe parts of the change that require extra attention during code review, for example:
Checklist