summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
authorMarlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>2023-12-11 11:47:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-12 15:58:57 +0000
commitdf5c8d6471bf2484db61c7f180c9758fad4182e1 (patch)
treeb27ed4efa0ec97ecee080e5ae887a6e7488cd442 /bitbake/lib/toaster/orm/models.py
parent4bb222e0d71a4cb159b8a4f1a90b65b1af32ac10 (diff)
downloadpoky-df5c8d6471bf2484db61c7f180c9758fad4182e1.tar.gz
bitbake: toaster: Added new feature to import eventlogs from command line into toaster using replay functionality
Added a new button on the base template to access a new template. Added a model register the information on the builds and generate access links Added a form to include the option to load specific files Added jquery and ajax functions to block screen and redirect to build page when import eventlogs is trigger Added a new button on landing page linked to import build page, and set min-height of buttons in landing page for uniformity Removed test assertion to check command line build in content, because new button contains text Updated toaster_eventreplay to use library Fix test in test_layerdetails_page Rebased from master This feature uses the value from the variable BB_DEFAULT_EVENTLOG to read the files created by bitbake Exclude listing of files that don't contain the allvariables definitions used to replay builds This part of the feature should be revisited. Over a long period of time, the BB_DEFAULT_EVENTLOG will exponentially increase the size of the log file and cause bottlenecks when importing. (Bitbake rev: ab96cafe03d8bab33c1de09602cc62bd6974f157) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 1098ad3fd1..19c9686206 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1868,6 +1868,15 @@ class Distro(models.Model):
1868 def __unicode__(self): 1868 def __unicode__(self):
1869 return "Distro " + self.name + "(" + self.description + ")" 1869 return "Distro " + self.name + "(" + self.description + ")"
1870 1870
1871class EventLogsImports(models.Model):
1872 name = models.CharField(max_length=255)
1873 imported = models.BooleanField(default=False)
1874 build_id = models.IntegerField(blank=True, null=True)
1875
1876 def __str__(self):
1877 return self.name
1878
1879
1871django.db.models.signals.post_save.connect(invalidate_cache) 1880django.db.models.signals.post_save.connect(invalidate_cache)
1872django.db.models.signals.post_delete.connect(invalidate_cache) 1881django.db.models.signals.post_delete.connect(invalidate_cache)
1873django.db.models.signals.m2m_changed.connect(invalidate_cache) 1882django.db.models.signals.m2m_changed.connect(invalidate_cache)