- Notifications
You must be signed in to change notification settings - Fork0
fix: handle more than 2 approved factcheck articles#51
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
can you check if all the relevant tests for templates pass with this change? The resulting scenarios look good in the UI. I have some minor concern about the implementation. There must be a way to capture that exception and do appropriate things in the UI. |
Hey@dennyabrain, I have run all the tests in the Regarding your concern about the exception, the The issue is how this In the above reference, in lines 375 and 377, we are calling functions that call As we approve any article, the Also, in the So, I understand that approving more articles is an unusual event, but in this case, it is checking "Too many articles" as a case and handling it automatically and then indicating that "there is no match for this case" as well in a standard way like it doing for all other unmatched cases. One other way that we can approach this is to not allow adding more than the required articles in the beginning itself. But then we would also need to provide a way to delete the added articles as well (which I was thinking of adding as a feature in a separate issue on its own in any case). Let me know your thoughts! |
0eff420
intomainUh oh!
There was an error while loading.Please reload this page.
This PR addresses issue#149 in the DAU repository.
Changes Made
Fixed Error on More Than 2 Approved Articles
raise
statement has been removed from the default condition to prevent this.Updated Behavior When More Than 2 Articles Are Approved
Added an Alert Message
Future Needs
"deepfake_wo_ar_3fc_en"
and their contents. In thetemplate_name
creation function, we would simply add a case for"3"
. That’s all!Screenshots
Case: More Than 2 Approved Articles (Alert + No Template)
Case: 2 or Fewer Approved Articles (Template Visible, No Alert)
cc:@aatmanvaidya