Merge branch 'main' into avm99963-monorail

Merged commit cd4b3b336f1f14afa02990fdc2eec5d9467a827e

GitOrigin-RevId: e67bbf185d5538e1472bb42e0abb2a141f88bac1
diff --git a/features/banspammer.py b/features/banspammer.py
index 4b66251..a6be311 100644
--- a/features/banspammer.py
+++ b/features/banspammer.py
@@ -13,6 +13,7 @@
 import time
 
 from framework import cloud_tasks_helpers
+from framework import flaskservlet
 from framework import framework_helpers
 from framework import permissions
 from framework import jsonfeed
@@ -56,7 +57,11 @@
         mr, mr.viewed_user_auth.user_view.profile_url, include_project=False,
         saved=1, ts=int(time.time()))
 
+  # def PostBanSpammerPage(self, **kwargs):
+  #   return self.handler(**kwargs)
 
+
+# when convert to flask switch jsonfeed.FlaskInternalTask
 class BanSpammerTask(jsonfeed.InternalTask):
   """This task will update all of the comments and issues created by the
      target user with is_spam=True, and also add a manual verdict attached
@@ -91,7 +96,18 @@
             self.services.issue, self.services.user, comment.id,
             reporter_id, is_spammer)
 
+    # remove the self.response.body when convert to flask
     self.response.body = json.dumps({
       'comments': len(comments),
       'issues': len(issues),
     })
+  # return json.dumps({
+  #     'comments': len(comments),
+  #     'issues': len(issues),
+  #   })
+
+  # def GetBanSpammer(self, **kwargs):
+  #   return self.handler(**kwargs)
+
+  # def PostBanSpammer(self, **kwargs):
+  #   return self.handler(**kwargs)