Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
C-Dash: Define the width of bars in bar graphs
[csit.git]
/
csit.infra.dash
/
app
/
cdash
/
utils
/
constants.py
diff --git
a/csit.infra.dash/app/cdash/utils/constants.py
b/csit.infra.dash/app/cdash/utils/constants.py
index
c2a7782
..
34892e7
100644
(file)
--- 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", ]
# 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"
# 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"
# 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"
# The file with tooltips.
TOOLTIP_FILE = "cdash/utils/tooltips.yaml"
@@
-349,6
+359,10
@@
class Constants:
# Default name of downloaded file with selected data.
STATS_DOWNLOAD_FILE_NAME = "stats.csv"
# 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.
############################################################################
# Trending.