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

Unified Diff: appengine/swarming/server/task_request.py

Issue 2267363004: Add CIPD pin reporting to swarming. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Rename to cipd_pins Created 4 years, 4 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/swarming/server/task_request.py
diff --git a/appengine/swarming/server/task_request.py b/appengine/swarming/server/task_request.py
index e4a8062c94bbba0b4a7ea3af7a3fa85dacc37e3f..84c038cf96e849674558feec19d56c5a3ec317ba 100644
--- a/appengine/swarming/server/task_request.py
+++ b/appengine/swarming/server/task_request.py
@@ -333,15 +333,6 @@ class CipdInput(ndb.Model):
package_names.add(p.package_name)
self.packages.sort(key=lambda p: p.package_name)
- def packages_grouped_by_path(self):
- """Returns sorted [(path), [package]) list. Used by user_task.html."""
- packages = collections.defaultdict(list)
- for p in self.packages:
- packages[p.path].append(p)
- for pkgs in packages.itervalues():
- pkgs.sort()
M-A Ruel 2016/08/26 23:19:51 I'm not sure this ever worked correctly. But it di
iannucci 2016/08/29 22:08:40 Ah, ok. So if they're sorted in the DB, then there
- return sorted(packages.iteritems())
-
class TaskProperties(ndb.Model):
"""Defines all the properties of a task to be run on the Swarming

Powered by Google App Engine
This is Rietveld 408576698