docbrown/spec/queries
Fernando Valverde c4df397fef
Community Wellness badge (#17394)
* First greedy algorithm approach to awarding community wellness badge

* Update app/services/badges/award_community_wellness.rb

I'm sorry I ignored you rubocop. It's still on draft for a reason 😅

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update app/services/badges/award_community_wellness.rb

Okay, whatever you say rubocop. This line will go away before merging anyways

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Use app/queries/comments/community_wellness_query.rb to replace greedy algorithm

* Query indenting + rename positive_reactions to negative_reactions in EXCEPT

* First step towards query spec

* Fix spec and make it more robust

* Slight cleanup/tweaks

* Badge reward & message

* copy edits + spec improvements + 3 days ago min for query

* Cron update to run daily + small tweak for FeatureFlag use

* inline comment tweaks

* Slight reorder of guard checks in service (FeatureFlag related)

* PR review feedback

* Fix specs from static method refactor

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-29 12:38:40 -06:00
..
admin Rename banned and comment_banned roles (#12270) 2021-04-06 10:12:14 -05:00
articles [15-Minute Fix] Sidebar Tags Show Relevant Posts on Homepage (#13326) 2021-04-09 10:40:09 -06:00
comments Community Wellness badge (#17394) 2022-04-29 12:38:40 -06:00
consumer_apps Fixes a name conflict in Rpush models (#15978) 2022-01-07 09:38:16 -06:00
homepage [Hotfix] [Search 2.0] Optimize performance of listings and articles and fix bugs (#13577) 2021-04-29 17:37:59 +02:00