You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as well as Explainers under one list.
Checklist:
- [x] There is already an `articles` field under `TeamType`: We need to make sure that the `article_type` argument is not mandatory anymore.
- [x] Implement a `filtered_articles` method for the `Team` model, that uses SQL `UNION` and reuse the logic for explainers and fact-checks implemented by methods `filtered_explainers` and `filtered_fact_checks`, respectively.
- [x] Guard against SQL injections.
- [x] Test for all filters.
- [x] Test for all sorting options.
- [x] Avoid N + 1 queries problem.
Reference: CV2-5007.
query=query.left_joins(claim_description: {project_media: :media}).where('claim_descriptions.project_media_id IS NULL OR medias.type = ?','Blank')iffilters[:standalone]
0 commit comments