docbrown/spec/support
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
..
fixtures Don't create podcast episodes without any media (#17449) 2022-04-27 11:21:03 -05:00
initializers Remove "New Admin Member"-Related Code (#16475) 2022-02-10 06:42:56 -07:00
seeds style the orgs, add cypress tests (#17370) 2022-04-20 15:37:20 +01:00
shared_examples Remove "New Admin Member"-Related Code (#16475) 2022-02-10 06:42:56 -07:00
comments_helper.rb Community Wellness badge (#17394) 2022-04-29 12:38:40 -06:00
embeds_helpers.rb Revalidate embedded links that redirect (#17150) 2022-04-07 13:32:07 -04:00
omniauth_helpers.rb Login with Google (#15986) 2022-01-13 10:25:52 -06:00
rpush_helpers.rb Adds validations to avoid creating unnecessary PNs (#14621) 2021-08-31 15:00:30 -06:00
runkit_tag_context.rb Fix Runkit tags not being activated when comment is added (#6767) 2020-05-15 14:27:46 +02:00
shared_context.rb Refactoring shared context to remove assumption (#16573) 2022-02-15 11:32:49 -05:00
sidekiq_test_helpers.rb Add implicit points to follows to improve feed relevancy (in all algorithms) (#11513) 2020-11-25 16:09:51 -05:00
within_block_is_expected.rb Improve ArticlesController's authorization (#466) 2018-06-21 14:18:32 -04:00