BURs: change mass updates to not remove left-hand side tags.

Change mass updates to not automatically remove the left-hand side tags
from the post. This won't work with full boolean searches in the future
and already doesn't work with complex searches involving metatags or OR-tags.
This commit is contained in:
evazion
2022-03-26 01:43:42 -05:00
parent dd21d4b45c
commit 44903abe28
2 changed files with 5 additions and 8 deletions

View File

@@ -326,7 +326,7 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
end
should "update the tags" do
assert_equal("bar baz", @post.reload.tag_string)
assert_equal("bar baz foo", @post.reload.tag_string)
assert_equal("approved", @bur.reload.status)
assert_equal(User.system, @post.versions.last.updater)
end
@@ -575,7 +575,7 @@ class BulkUpdateRequestTest < ActiveSupport::TestCase
end
should "process mass updates" do
assert_equal("bar baz bbb blah", @post.reload.tag_string)
assert_equal("aaa bar baz bbb blah", @post.reload.tag_string)
end
should "set the alias/implication approvers" do