summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorAlexandru Damian <alexandru.damian@intel.com>2015-02-24 17:20:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-24 23:35:45 +0000
commitf120b7822ea09fd234a51000c979ad97c9f26722 (patch)
treeb4eb124eeabb1aa5fb599a37688201e868cdb32a /bitbake/lib/toaster/orm
parentcb23e3043bf5c07f111787287a321df0ece647dd (diff)
downloadpoky-f120b7822ea09fd234a51000c979ad97c9f26722.tar.gz
bitbake: toastergui: performance improvements in task details page
This patch brings better forward and reverse dependency computing in tasks page (offloading python code to the database), as well as replacing the recursive depth-first covered-by tree search with breadth-first search. (Bitbake rev: bc76da054570ae385c87d14c9f2337368e8311f3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 9d4f4c94c1..15481e5a58 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -393,6 +393,8 @@ class Task(models.Model):
393 outcome_text = property(get_outcome_text) 393 outcome_text = property(get_outcome_text)
394 sstate_text = property(get_sstate_text) 394 sstate_text = property(get_sstate_text)
395 395
396 def __unicode__(self):
397 return "%d %s:%s" % (self.id, self.recipe.name, self.task_name)
396 class Meta: 398 class Meta:
397 ordering = ('order', 'recipe' ,) 399 ordering = ('order', 'recipe' ,)
398 unique_together = ('build', 'recipe', 'task_name', ) 400 unique_together = ('build', 'recipe', 'task_name', )