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

Unified Diff: appengine/findit/model/flake/flake_analysis_request.py

Issue 2396283002: [Findit] Hook up analysis for CQ flakes. (Closed)
Patch Set: Fix nit. Created 4 years, 2 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
Index: appengine/findit/model/flake/flake_analysis_request.py
diff --git a/appengine/findit/model/flake/flake_analysis_request.py b/appengine/findit/model/flake/flake_analysis_request.py
index 1c9c4f9244478c7c6df195d04096ab20a7a7230d..651c8b31ba4bc5740a0b57fc1f9825e0946679b9 100644
--- a/appengine/findit/model/flake/flake_analysis_request.py
+++ b/appengine/findit/model/flake/flake_analysis_request.py
@@ -119,3 +119,12 @@ class FlakeAnalysisRequest(VersionedModel):
BuildStep.Create(
master_name, builder_name, build_number, step_name, reported_time))
return True
+
+ def CopyFrom(self, other):
+ """Copies all states from the given request."""
+ assert isinstance(other, FlakeAnalysisRequest)
+ self.is_step = other.is_step
+ self.bug_id = other.bug_id
+ self.user_emails = other.user_emails
+ self.build_steps = other.build_steps
+ self.analyses = other.analyses

Powered by Google App Engine
This is Rietveld 408576698