Bug Fix:Remove Score Filter From Tag Mod Index (#11599)

This commit is contained in:
Molly Struve 2020-11-24 15:18:14 -05:00 committed by GitHub
parent ddb70e2900
commit c3b0103eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -13,7 +13,6 @@ class ModerationsController < ApplicationController
return unless current_user&.trusted
articles = Article.published
.where("score > -5 AND score < 5")
.order(published_at: :desc).limit(70)
articles = articles.cached_tagged_with(params[:tag]) if params[:tag].present?
if params[:state] == "new-authors"

View file

@ -130,11 +130,8 @@ RSpec.describe "Moderations", type: :request do
get "#{article.path}/actions_panel"
end
it "shows the admin add tag option if the article has room for a tag" do
it "shows the admin tag options", :aggregate_failures do
expect(response.body).to include "admin-add-tag"
end
it "shows the option to remove tags" do
expect(response.body).to include "circle centered-icon adjustment-icon subtract"
end
end