Revert "FEATURE: Count only approved flagged posts in user pages (#22799)" (#23962)

This reverts commit 5f0bc4557fb04928a8d38cba410d316a76f1bf8c.

Through extensive internal discussion we have decided to revert
this change, as it significantly impacted moderation flow for
some Discourse site moderators, especially around "something else"
flags. We need to re-approach how flags are counted holistically,
so to that end this change is being reverted.
This commit is contained in:
Martin Brennan
2023-10-18 11:38:17 +10:00
committed by GitHub
parent 30778e5fa4
commit e91d8feab3
6 changed files with 15 additions and 102 deletions

View File

@ -52,28 +52,6 @@ module PageObjects
self
end
def has_reviewable_flagged_posts_path?(user)
params = {
status: "approved",
sort_order: "score",
type: "ReviewableFlaggedPost",
username: user.username,
}
page.has_current_path?("/review?#{params.to_query}")
end
def staff_info_flagged_posts_counter
page.find(".staff-counters .flagged-posts")
end
def has_staff_info_flagged_posts_count?(count:)
staff_info_flagged_posts_counter.text.to_i == count
end
def has_no_staff_info_flagged_posts_counter?
page.has_no_css?(".staff-counters .flagged-posts")
end
private
def primary_navigation_selector(name)