docbrown/app/lib/constants
Daniel Uber 5678fb77f5
Remove unneeded checks for code tags when filtering articles from search indexing (#14801)
* Move logic to determine noindex from view to model

This brings attention to the code and allows for faster unit tests.

I expect we'll be modifying this soon to deemphasize the code tag as a
marker of quality.

* Replace "5" constant with home feed minimum score

* Remove check for "code" tags in low quality article check

This made sense for DEV and other devrel communities, but is no longer
necessary for Forems.

* Add UserExperience setting for minimum index score

- add setting, I used `index_minimum_score` to match the
`home_feed_minimum_score`, `minimum_index_score` feels natural but
breaks the pattern.

- use this to determine whether to include article in the sitemap

- use this to determine whether to add noindex meta to article show page

* Remove unneeded tests

Since there's no longer any check for <code> tags in the body, omit
those tests (which passed anyway).

* Add new setting to admin page
2021-09-28 13:44:35 -04:00
..
settings Remove unneeded checks for code tags when filtering articles from search indexing (#14801) 2021-09-28 13:44:35 -04:00
random_gifs.rb Remove app/labor/random_gif.rb (#11611) 2020-11-25 14:58:32 +00:00
redcarpet.rb Move constant from initializer to app/lib/constants (#12034) 2020-12-26 19:19:09 +01:00
role.rb Remove pro role + expose analytics to all users via dashboard (#13156) 2021-03-30 15:02:18 -07:00
settings.rb Improve information architecture of Settings (#11347) 2020-11-24 12:26:06 -08:00
tags.rb [Search 2.0] Homepage query (#13339) 2021-04-21 12:41:24 +02:00