docbrown/app
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
..
assets Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00
controllers Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
decorators Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers Limit an organizations displayed and add an overflow count (#17339) 2022-04-20 13:10:17 +02:00
javascript Add prop for user-defined selections in MultiSelectAutocomplete (#17402) 2022-04-29 09:39:25 +01:00
lib Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
liquid_tags Sharpen RegEx that matches Forem-specific links (#17500) 2022-04-29 11:34:32 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
policies Encapsulating the "why we hide/show" something (#17166) 2022-04-11 13:40:16 -04:00
queries Community Wellness badge (#17394) 2022-04-29 12:38:40 -06:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Community Wellness badge (#17394) 2022-04-29 12:38:40 -06:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
workers Skip rescoring draft articles (#17379) 2022-04-21 10:56:59 -05:00