Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: appengine/findit/handlers/crash/crash_config.py

Issue 1914113002: [Findit] Enable project classifier and component classifier (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/test/stacktrace_test_suite.py ('k') | appengine/findit/model/crash/crash_config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/crash/crash_config.py
diff --git a/appengine/findit/handlers/crash/crash_config.py b/appengine/findit/handlers/crash/crash_config.py
index d3ed043f1bf60ce05c3648f53e5cb2087bba5ccd..63c81791d433a9b10d0512bc60993ddf75454b23 100644
--- a/appengine/findit/handlers/crash/crash_config.py
+++ b/appengine/findit/handlers/crash/crash_config.py
@@ -21,6 +21,8 @@ class CrashConfig(BaseHandler):
data = {
'fracas': settings.fracas,
+ 'component_classifier': settings.component_classifier,
+ 'project_classifier': settings.project_classifier,
}
return {'template': 'crash/crash_config.html', 'data': data}
@@ -28,6 +30,10 @@ class CrashConfig(BaseHandler):
def HandlePost(self):
data = self.request.params.get('data')
new_config_dict = json.loads(data)
- CrashConfigModel.Get().Update(
+
+ crash_config = CrashConfigModel.Get()
+
+ crash_config.ClearCache()
+ crash_config.Update(
users.get_current_user(), users.IsCurrentUserAdmin(), **new_config_dict)
return self.HandleGet()
« no previous file with comments | « appengine/findit/crash/test/stacktrace_test_suite.py ('k') | appengine/findit/model/crash/crash_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698