X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=csit.infra.dash%2Fapp%2Fcdash%2Futils%2Fconstants.py;h=34892e79bca7a21b13fcdac14599aef49c03f938;hb=9e28d41817b4f1b3a77a4c65d76da9d292fd9d8a;hp=6ab80d0b5cae28fcbaf6c4663a8a6d1fbc8ee2ab;hpb=877928bd3cf147654209225dd4605db02eb562e4;p=csit.git diff --git a/csit.infra.dash/app/cdash/utils/constants.py b/csit.infra.dash/app/cdash/utils/constants.py index 6ab80d0b5c..34892e79bc 100644 --- a/csit.infra.dash/app/cdash/utils/constants.py +++ b/csit.infra.dash/app/cdash/utils/constants.py @@ -44,6 +44,13 @@ class Constants: # External stylesheets. EXTERNAL_STYLESHEETS = ["/static/dist/css/bootstrap.css", ] + # URL to Jenkins + URL_JENKINS = "https://jenkins.fd.io/job/" + + # URL to the documentation + URL_DOC_TRENDING = "https://csit.fd.io/cdocs/methodology/trending/analysis/" + URL_DOC_REL_NOTES = "https://csit.fd.io/cdocs/release_notes/current/" + # Path and name of the file specifying the HTML layout of the dash # application. MAIN_HTML_LAYOUT_FILE = "base_layout.jinja2" @@ -58,6 +65,9 @@ class Constants: # Data to be downloaded from the parquets specification file. DATA_SPEC_FILE = "cdash/data/data.yaml" + # Path to schemas to use when reading data from the parquet. + PATH_TO_SCHEMAS = "cdash/data/_metadata/" + # The file with tooltips. TOOLTIP_FILE = "cdash/utils/tooltips.yaml" @@ -82,10 +92,10 @@ class Constants: CLEAR_ALL_INPUTS = False # The element is disabled. - STYLE_DISABLED = {"display": "none"} + STYLE_DISABLED = {"visibility": "hidden"} # The element is enabled and visible. - STYLE_ENABLED = {"display": "inherit"} + STYLE_ENABLED = {"visibility": "visible"} # Checklist "All" is disabled. CL_ALL_DISABLED = [ @@ -170,11 +180,13 @@ class Constants: "3n-icx": 2.600, "3n-skx": 2.500, "3n-tsh": 2.200, - "3n-snr": 2.200 + "3n-snr": 2.200, + "3na-spr": 2.800, + "3nb-spr": 2.800 } ############################################################################ - # General, plots constants. + # General, plots and tables constants. PLOT_COLORS = ( "#1A1110", "#DA2647", "#214FC6", "#01786F", "#BD8260", "#FFD12A", @@ -273,6 +285,18 @@ class Constants: "result_latency_reverse_pdr_90_hdrh": "High-load, 90% PDR." } + # Operators used to filter data in comparison tables. + OPERATORS = ( + ("contains ", ), + ("lt ", "<"), + ("gt ", ">"), + ("eq ", "="), + ("ge ", ">="), + ("le ", "<="), + ("ne ", "!="), + ("datestartswith ", ) + ) + ############################################################################ # News. @@ -335,6 +359,10 @@ class Constants: # Default name of downloaded file with selected data. STATS_DOWNLOAD_FILE_NAME = "stats.csv" + # The width of the bar in the graph in miliseconds. + STATS_BAR_WIDTH_DAILY = 1000 * 3600 * 15 + STATS_BAR_WIDTH_WEEKLY = 1000 * 3600 * 24 + ############################################################################ # Trending. @@ -349,6 +377,7 @@ class Constants: # Default name of downloaded file with selected data. TREND_DOWNLOAD_FILE_NAME = "trending_data.csv" + TELEMETRY_DOWNLOAD_FILE_NAME = "telemetry_data.csv" ############################################################################ # Coverage data.