Belle II Software development
|
Public Member Functions | |
def | __init__ (self, working_folder, gitlab_object, gitlab_config, gitlab_map) |
def | create_comparison (self) |
def | index (self) |
def | plots (self, *args) |
def | check_comparison_status (self) |
def | revisions (self, revision_label=None) |
def | comparisons (self, comparison_label=None) |
def | system_info (self) |
def | retrieve_file_metadata (self, filename) |
def | create_issue (self, title, description) |
def | issue (self, file_path, rev_label, contact) |
def | issue_redirect (self, iid) |
def | update_issue (self, id, file_path, rev_label) |
Public Attributes | |
working_folder | |
html folder that contains plots etc. | |
last_restart | |
Date when this object was instantiated. | |
version | |
Git version. | |
gitlab_object | |
Gitlab object. | |
gitlab_config | |
Gitlab config. | |
gitlab_map | |
Gitlab usermap. | |
file_path | |
placeholder variable for path | |
revision_label | |
placeholder variable for revision label | |
contact | |
placeholder variable for contact | |
Root Validation class to handle non-static HTTP requests into the validation server. The two main functions are to hand out compiled json objects of revisions and comparisons and to start and monitor the creation of comparison plots.
Definition at line 651 of file validationserver.py.
def __init__ | ( | self, | |
working_folder, | |||
gitlab_object, | |||
gitlab_config, | |||
gitlab_map | |||
) |
class initializer, which takes the path to the folders containing the validation run results and plots (aka comparison), gitlab object and config
Definition at line 661 of file validationserver.py.
def check_comparison_status | ( | self | ) |
Checks on the status of a comparison creation
Definition at line 744 of file validationserver.py.
def comparisons | ( | self, | |
comparison_label = None |
|||
) |
return the json file of the comparison results of one specific comparison
Definition at line 859 of file validationserver.py.
def create_comparison | ( | self | ) |
Triggers the start of a now comparison between the revisions supplied in revision_list
Definition at line 698 of file validationserver.py.
def create_issue | ( | self, | |
title, | |||
description | |||
) |
Call the functions to create the issue and redirect to the created Gitlab issue page.
Definition at line 920 of file validationserver.py.
def index | ( | self | ) |
forward to the static landing page if the default url is used (like http://localhost:8080/)
Definition at line 712 of file validationserver.py.
def issue | ( | self, | |
file_path, | |||
rev_label, | |||
contact | |||
) |
Return a template issue creation interface for the user to add title and description.
Definition at line 981 of file validationserver.py.
def issue_redirect | ( | self, | |
iid | |||
) |
Redirect to the Gitlab issue page.
Definition at line 999 of file validationserver.py.
def plots | ( | self, | |
* | args | ||
) |
Serve file from the html/plot directory. :param args: For the request /plots/a/b/c, these will be the strings "a", "b", "c"
Definition at line 720 of file validationserver.py.
def retrieve_file_metadata | ( | self, | |
filename | |||
) |
Returns: Metadata(str) of the file
Definition at line 908 of file validationserver.py.
def revisions | ( | self, | |
revision_label = None |
|||
) |
Return a combined json object with all revisions and mark the newest one with the field most_recent=true
Definition at line 755 of file validationserver.py.
def system_info | ( | self | ) |
Returns: JSON file containing git versions and time of last restart
Definition at line 888 of file validationserver.py.
def update_issue | ( | self, | |
id, | |||
file_path, | |||
rev_label | |||
) |
Update existing issue in Gitlab with current result plot and redirect to the updated Gitlab issue page.
Definition at line 1015 of file validationserver.py.
contact |
placeholder variable for contact
Definition at line 693 of file validationserver.py.
file_path |
placeholder variable for path
Definition at line 689 of file validationserver.py.
gitlab_config |
Gitlab config.
Definition at line 683 of file validationserver.py.
gitlab_map |
Gitlab usermap.
Definition at line 686 of file validationserver.py.
gitlab_object |
Gitlab object.
Definition at line 680 of file validationserver.py.
last_restart |
Date when this object was instantiated.
Definition at line 672 of file validationserver.py.
revision_label |
placeholder variable for revision label
Definition at line 691 of file validationserver.py.
version |
Git version.
Definition at line 675 of file validationserver.py.
working_folder |
html folder that contains plots etc.
Definition at line 669 of file validationserver.py.