docbrown/spec
Jeremy Friesen fbce226c08
Low Stakes Refactor of Feed class (#15180)
* Removing state change and unused method

Prior to this commit, the `@comment_weight` value would change.  This is
not ideal as depending on the call sequence, can notably change the
output.  I suspect this state change occurred so as to not alter an
underlying spec.

What this change does is remove the state change, removes a dead method,
renames a method (to the dead method name), and leverages
parameterization to better test a spec that was brittle based on
possible state changes.

I believe, from a logical stand point, that this change does not impact
the functionality nor the actual logic that is part of the production
call path.

* Marking methods as @api private

The goal is to highlight that we really shouldn't be calling these
outside of their contained class.  Ideally, I'd love to make them
private methods, but there are specs and would prefer to not use
`__send__` to change those specs.

This is a noop change.

* Renaming method to refelct returned param order

Prior to this commit the "default_home_feed_and_featured_story" returned
an array of `[featured_story, default_home_feed]`.  The method name and
the order of the returned values were misaligned.  This change helps
align the method name and the order of those returned values.

Note, methods such as `each_with_index` have an `element, index`
parameter order.
2021-10-26 09:57:33 -04:00
..
black_box Remove <provider>_created_at columns (#13264) 2021-04-29 10:24:16 -05:00
components/admin/users Refactor Admin Member Detail view - Tools section (#14283) 2021-08-17 18:55:53 +02:00
controllers/concerns 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
decorators ✂️✂️✂️ Remove boosted states from articles (legacy/dead code) (#14977) 2021-10-07 14:39:34 -04:00
factories Adds a Creator user to the users.rb for testing purposes (#15138) 2021-10-20 07:15:41 -06:00
fixtures Remove duplicated work display from header / profile work (#14210) 2021-07-30 12:28:40 +02:00
generator Add service generator (#11265) 2020-11-10 09:09:35 +07:00
helpers Markdown editor toolbar (#14876) 2021-10-19 09:22:54 +01:00
initializers Clean up feed-related code (#14707) 2021-09-17 09:23:32 +07:00
lib Forem passport (cont) (#14759) 2021-09-30 06:47:45 -06:00
liquid_tags Rubocop fixes (#14868) 2021-09-30 13:22:09 -04:00
mailers Created the Forem creator confirmation email template (#14659) 2021-10-21 14:56:09 -04:00
models Allow users to choose their default Home and Tags-View Feed (Part 1) (#15128) 2021-10-20 18:02:59 -04:00
policies Fix organization's admin unable to view an article's stats (#14767) 2021-09-21 16:05:34 +01:00
queries Adds validations to avoid creating unnecessary PNs (#14621) 2021-08-31 15:00:30 -06:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests views/podcasts, views/podcast_episodes i18n (#15020) 2021-10-25 14:32:51 +01:00
routing ✂✂✂ Remove shop_url from SiteConfig ✂✂✂ (#13773) 2021-05-18 09:03:05 +07:00
serializers/search Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
services Low Stakes Refactor of Feed class (#15180) 2021-10-26 09:57:33 -04:00
support Change fixed organization id to fixed organization slug (#15067) 2021-10-13 11:18:54 -05:00
system Page headers unified (#15158) 2021-10-25 21:41:29 +02:00
tasks Create Default Nav Links In New Forem (RFC #237) (#14345) 2021-08-02 12:52:36 -04:00
uploaders ✂✂✂ Remove events (#15062) 2021-10-15 09:31:08 -04:00
view_objects [15 min fix] Fallback to the image URL if Cloudinary/Imgproxy are not configured (#13767) 2021-05-19 15:03:20 +02:00
views Fix rotation of images uploaded from iPhones (#15010) 2021-10-11 15:17:14 -04:00
workers Add Article post_commit when user_id changes with specs (#15132) 2021-10-25 10:53:21 +07:00
i18n_spec.rb Misc i18n fixes (#14852) 2021-10-05 13:22:33 +02:00
rails_helper.rb Add feature flag for Connect (#14644) 2021-09-13 10:45:56 -04:00
spec_helper.rb [15-minute fix] Don't allow markdown to use CSS classes (#13282) 2021-04-07 11:40:39 -04:00