Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
2176fdbe
Commit
2176fdbe
authored
Apr 23, 2019
by
Tanner Prestegard
Committed by
GraceDB
Apr 23, 2019
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add server code version to home page and API
parent
368ee8f2
Pipeline
#58642
passed with stages
in 11 minutes and 43 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
config/settings/base.py
config/settings/base.py
+3
-0
gracedb/api/v1/main/views.py
gracedb/api/v1/main/views.py
+3
-0
gracedb/events/views.py
gracedb/events/views.py
+3
-0
gracedb/templates/gracedb/index.html
gracedb/templates/gracedb/index.html
+1
-0
No files found.
config/settings/base.py
View file @
2176fdbe
...
...
@@ -21,6 +21,9 @@ def get_from_env(envvar, default_value=None, fail_if_not_found=True):
'Could not get environment variable {0}'
.
format
(
envvar
))
return
value
# Version ---------------------------------------------------------------------
PROJECT_VERSION
=
'2.4.3'
# Unauthenticated access ------------------------------------------------------
# This variable should eventually control whether unauthenticated access is
# allowed *ANYWHERE* on this service, except the home page, which is always
...
...
gracedb/api/v1/main/views.py
View file @
2176fdbe
...
...
@@ -150,6 +150,9 @@ class GracedbRoot(APIView):
"signoff-statuses"
:
dict
(
SignoffBase
.
OPERATOR_STATUS_CHOICES
),
"instruments"
:
dict
(
SignoffBase
.
INSTRUMENT_CHOICES
),
"voevent-types"
:
dict
(
VOEvent
.
VOEVENT_TYPE_CHOICES
),
"api-versions"
:
api_settings
.
ALLOWED_VERSIONS
,
"server-version"
:
settings
.
PROJECT_VERSION
,
# Maintained for backwards compatibility with client
"API_VERSIONS"
:
api_settings
.
ALLOWED_VERSIONS
,
})
...
...
gracedb/events/views.py
View file @
2176fdbe
...
...
@@ -99,6 +99,9 @@ def index(request):
signoff_instrument
=
group
.
name
[:
2
].
upper
()
break
# Server code version
context
[
'server_version'
]
=
settings
.
PROJECT_VERSION
context
[
'signoff_authorized'
]
=
signoff_authorized
context
[
'signoff_instrument'
]
=
signoff_instrument
...
...
gracedb/templates/gracedb/index.html
View file @
2176fdbe
...
...
@@ -88,6 +88,7 @@ body {
<li><a
href=
"https://gw-astronomy.org/wiki/LV_EM/TechInfo"
>
LV-EM Technical Info
</a></li>
<li><a
href=
"https://dcc.ligo.org/G1501296"
>
Tutorial for operators and detector engineers
</a></li>
</ul>
<p>
Server code version:
<b>
{{server_version}}
</b></p>
{% endif %}
</div>
...
...
Tanner Prestegard
@tanner.prestegard
mentioned in issue
#139 (closed)
·
May 16, 2019
mentioned in issue
#139 (closed)
mentioned in issue #139
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment