aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/templates/lava_scheduler_app
AgeCommit message (Collapse)Author
2018-07-31LAVA-1384 - Add cancel button to definition pagesNeil Williams
Change-Id: I27fd2240087a4c6f2c6e27e6df895cafea6eff11
2018-07-20worker: add a link to the admin pageRémi Duraffort
Change-Id: I2655501e4352d7064e9ae940cdcfdb77eab6838a
2018-07-20CosmeticsRémi Duraffort
Change-Id: If24c0e9fdc7c1fd01c1c7bb0590b00bee7b8fdc4
2018-07-18Exclude Retired devices from warning messagesNeil Williams
Change-Id: I948b6dbab13af0eeea3bea4e01a03a9cffb1bb22
2018-07-16dt: improve the warning when hc are disabledRémi Duraffort
Change-Id: Ic435a3334c626475ad834ac4f478c773764f5f84
2018-07-13Fix crash after 210140b0Rémi Duraffort
Url lava.scheduler.job.complete_log does not exist anymore. Change-Id: I2b082aaad90f414f1372fdc695afee6742b22a1c
2018-07-10Remove support for the old v2 format (output.txt)Rémi Duraffort
This format hasn't been in used since May 2016. Also rename the templates to remove the '_pipeline' suffix. Change-Id: I521150a9f3ec3682f439f2dc940cf6dad482359e
2018-06-27LAVA-1367 - drop pretty printing of device dictionaryNeil Williams
Second guessing the jinja2 templating causes artifacts when a device dictionary reuses a variable to avoid duplication. Simplify the output to provide the raw Jinja2 and the rendered YAML. Change-Id: I926150a0d8afdac456021d8009c3e5d9bac7afa1
2018-06-27Link device hostname and device type on devicedict page.Senthil Kumaran S
This helps easy navigation and also consistent with other device pages. Change-Id: Ic3dbdc626b858eccba8112af1ac9806fbac370c7
2018-06-26LAVA-1360 - Investigate Charts Add Query autocompletionStevan Radakovic
As part of this effort, remove cumbersome jquery UI lib finally. Use typeahead instead of autocomplete which is available in deb repos. For other features, use simple js. Change-Id: Ia0ce7d36c6d8d9ba2c0526d29ab35e1a2687a3fc
2018-06-19make device and heathcheck_job pages similarRémi Duraffort
Change-Id: I3cae4d3b8496a565ea68c797c717dfffb6962f6c
2018-06-19Show an error if a device does not have a workerRémi Duraffort
In this case, the scheduler and the master can't do anything with the device: it's impossible to schedule, start or cancel any jobs. Change-Id: I22bde312d7ef3a682e92d661fcc9fb5697e672d6
2018-06-15Remove the ability to past URLs in the submit pageRémi Duraffort
This functionality had introduced a security vulnerability in lava-server. A user can forge a http request that will force lava-server-gunicorn to return any file on the server that is: * readable by lavaserver * valid yaml This bug was found by running bandit (https://github.com/PyCQA/bandit). Change-Id: Ie6876bbb4d8dad210d63d2655356bb863a592b41
2018-04-30Expand command lists in device dictionariesNeil Williams
The addition of recovery mode is likely to make hard_reset a much longer line with 4 or 5 lines. Detect a list value and print each line in a separate <pre> block. Change-Id: Ie44c06f0fd8a32426d850fdf07504b7e35230626
2018-04-19Add a page that list all device-typesRémi Duraffort
Allows to have one url to point users at. Change-Id: I04d2c1e18a19e932e6581227cd57e4640e19ae93
2018-04-13job: make the link to the bottom more visibleRémi Duraffort
Change-Id: I9e81d32cf4177639e7aa83dd744b7f64cb6a9821
2018-04-12List Infrastructure, Bug and Configuration errorsRémi Duraffort
Add an index on TestCase results to improve sql queries speed. Add links to Recent job errors and Maintenance devices to job table and device table templates. Change-Id: Ib6e67b25bf8ae88e20f03ed73230ea7a752f3e71
2018-04-06LAVA-1129 save job full configuration before startRémi Duraffort
This will help reproducing the exact same run. Also add an xmlrpc api to grab the job configuration. Change-Id: I64798a12146064d3fb811bb28bf27f49e20fd6d5
2018-04-06LAVA-1274 fix javascript exceptionRémi Duraffort
When a debug message is not a string nor an object (like a boolean) the javascript code, removed by this commit, will crash. The corresponding code was added to work around a bug in the log format that has been fixed 6 months ago. Change-Id: I4908d53aa1172b780b1e6a277a8ec07517b13769
2018-04-05job: only update if failure_comment isn't emptyRémi Duraffort
Change-Id: Id264361fa5489172baf2b37b12584636174a627f
2018-04-03LAVA-1250 Allow admin to finish a TestJobRémi Duraffort
This should only be used when lava-run is stopped. Only superuser are allowed to use this function. Change-Id: Ibcba8e2d9dbf4e3d4f5d84cf1ab3115e8cf9f44e
2018-04-03Replace "!!python/unicode" in job definitions.Senthil Kumaran S
* Add a template filter to replace "!!python/unicode " with "" - required for old job definitions * Use yaml.safe_dump to store job definitions whereever required. - acts on new job definitions that gets submitted. Change-Id: I3ee3a711576e6edbe7aa3464e741d53c1b8f9bb1
2018-04-02Add failure comment and error type to test job notifications.Stevan Radakovic
If the job finishes with incomplete health, add metadata from lava job test case. Change-Id: I1d05274d35980aeeb8366d37a088bc6bf044adee
2018-03-23Add admin link to device pages for superuserNeil Williams
Change-Id: I1bc54e6dcb94cd35ef315d8196049ba13f29bcb0
2018-03-22Fix multinode sub job definition display.Senthil Kumaran S
This fixes the way in which a sub job definition is displayed. Also, the extra line number at the end of all job definition display is removed. Change-Id: I9fa968ade563bc96d7503eb1e156f7224e5097e0
2018-03-13dt: alert when the template is invalid or missingRémi Duraffort
Change-Id: Iaef8a455c78e10479d55c0909ca6bc12061ef55f
2018-03-06Fix 500 when device-type template does not existRémi Duraffort
The crash was found on staging for juno-r2 device-type: [...] File "/usr/lib/python2.7/dist-packages/lava_scheduler_app/views.py", line 818, in device_type_detail 'health_freq': health_freq_str}) [...] File "/usr/lib/python2.7/dist-packages/django/template/defaultfilters.py", line 582, in join value = map(force_text, value) TypeError: argument 2 to map() must support iteration Change-Id: If0e16351db406c274acd087000fe407b968b202e
2018-02-28LAVA-1180 Refactor device-type pageRémi Duraffort
Device, DeviceType and Worker pages are now using the same schema. Change-Id: I13a59f4c294be0a6d9790c809a7809bcff513313
2018-02-13Use STATIC_URL and get_absolute_url when neededRémi Duraffort
Change-Id: I4e522efc2bd3d3ec69f780d01729cde836ab663d
2018-01-31Improve device tablesRémi Duraffort
Help the user to spot if a device is usable or not. Change-Id: I58260c0c700de80b67fb44bc548b9b6384f2f794
2018-01-23Set Unknown as the default option for changing healthNeil Williams
The default is to re-test a device rather than give the impression that a device should go straight to Good. Also move Maintenance above Good to reflect usage. Change-Id: Iac4368be90904a1fc857c53e77f3f62efd6436d1
2018-01-17Fix online devices listingRémi Duraffort
Also add a link to the page in alldevices and activedevices pages. Change-Id: Ibd7155d55b6c46e74684e0c7120e2e16029d311d
2018-01-15LAVA-1221 change mouse pointer whenever neededRémi Duraffort
When the mouse pointer is over the button to update Worker and Device health, it should be changed to indicate that the button is clickable. Change-Id: I59204588c33a52def038659ec0d6336da18f9340
2018-01-09Add a reason when updating device and worker healthRémi Duraffort
Change-Id: I9bd7e4f9480c8e93068468b59d2374b5fbf4fd81
2018-01-09Notifications: use email signature conventionsRémi Duraffort
Change-Id: Ifcaadd28d1ea4cf4459f157ee9ec8a690b4b2f1e
2018-01-09Fix notifications and log the exceptionRémi Duraffort
The templates where still using the old status field instead of state and health. Change-Id: I6c2c3dfa38214b09a825fb721c82b50af62a1428
2018-01-03Simplify TestJob and Device state displayRémi Duraffort
Change-Id: I4233b1728ce1f328afcb864bf5b6b5e0af6c955c
2017-12-21Rewrite from scratch the job schedulerRémi Duraffort
This patch is made of two parts: 1/ changing the Device and TestJob state machine 2/ rewrite of the TestJob scheduler Tests for the scheduler and the state machine are still missing. Change-Id: I80f55c0ba89f978875ab079d2bf595a3c963017b
2017-12-11Fix broken line detectionRémi Duraffort
We were using encode instead of decode. It's also possible to ask encode to replace broken characters by "?". Change-Id: Ide4eb8582d4f81614479f101cb70cb3f08814bb6
2017-12-01Update device dictionary handlingNeil Williams
Drop mention of 'exclusive' and update docs. Expand connection support to cover the deprecation of the single connection_command support and the use of connection_tags to denote how connections are closed. Change-Id: I6e5994d4307e78f77276b8a43786700fa2e4dbc4
2017-11-27Worker: improve main page and make updates atomicRémi Duraffort
Change-Id: Ia56c702513035ae494f9e1952a3c945ddfb15a2b
2017-11-23Add Worker state and healthRémi Duraffort
The display field has been removed and incorporated into health field. Change-Id: I62e680304c55b9ce01c74649b8f16f9ebd3a7c49
2017-11-16Remove unused models and fieldsRémi Duraffort
Change-Id: Idadcd27aa9fbd40c750af9e257f62fbc8dd03858
2017-11-16LAVA-1063 and LAVA-1064 - Drop dashboard app.Stevan Radakovic
Remove dashboard app models and add accompanying migration. Drop dashboard app code. Adjust dashboard xmlrpc to return empty object. Change-Id: I24bba3370e19a6412c810d619db0a736f97ee740
2017-11-01job: print lava.job result in case of failureRémi Duraffort
Change-Id: Idd25be554b6bf8fdcb2131c6a257b0d0d4d20180
2017-10-31Rename base-bootstrap and content-bootstrapRémi Duraffort
Change-Id: Icb0c133a9b785a7784c5cb0bbcd40abe0bed1bf3
2017-10-27Remove non pipeline jobs supportRémi Duraffort
Change-Id: I1aeeda2ba5db79d1b083d86b172b515811f5b45e
2017-10-25Remove unnecessary js lib beautify.Stevan Radakovic
Some older patch removed all references to it as well as the lib but the inclusion of it in template was not removed. Change-Id: I1923acdd395636bcd6012ab1cbd4379bfe5bb129
2017-10-24LAVA-1079 - remove HIDE_V1 and HIDE_V2 doc optionsNeil Williams
Change-Id: I5eae20a906d01e9cda555e0e26648b85b6e60bb4
2017-10-20Drop the migration status page.Neil Williams
Devices which have not migrated are neither used nor displayed. Change-Id: Ida323e4e378c54b10e166ff45fc92da4dc5194be