Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
51517054
Commit
51517054
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
adding superevent URL templates to API root
parent
d65aceb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!8
Superevents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/events/api/views.py
+9
-17
9 additions, 17 deletions
gracedb/events/api/views.py
with
9 additions
and
17 deletions
gracedb/events/api/views.py
+
9
−
17
View file @
51517054
...
...
@@ -36,6 +36,8 @@ from core.http import check_and_serve_file
from
guardian.models
import
GroupObjectPermission
from
superevents.api.view_templates
import
construct_api_url_templates
import
os
import
urllib
import
shutil
...
...
@@ -829,6 +831,8 @@ class EventLogList(APIView):
if
tagnames
and
len
(
tagnames
):
for
tagname
in
tagnames
:
n
=
logentry
.
N
# Yeah... this is really bad and doesn't work as expected.
# Creates any new tags all with the same displayName.
tmp
=
EventLogTagDetail
()
retval
=
tmp
.
put
(
request
,
event
.
graceid
(),
n
,
tagname
)
# XXX This seems like a bizarre way of getting an error message out.
...
...
@@ -1536,8 +1540,13 @@ class GracedbRoot(APIView):
"
signoff-list-template
"
:
signofflist
,
}
# Get superevent templates
superevent_templates
=
construct_api_url_templates
(
request
)
templates
.
update
(
superevent_templates
)
return
Response
({
"
links
"
:
{
"
superevents
"
:
reverse
(
"
superevent-list
"
,
request
=
request
),
"
events
"
:
reverse
(
"
event-list
"
,
request
=
request
),
"
self
"
:
reverse
(
"
api-root
"
,
request
=
request
),
"
performance
"
:
reverse
(
"
performance-info
"
,
request
=
request
),
...
...
@@ -1876,20 +1885,3 @@ class OperatorSignoffList(APIView):
}
return
Response
(
rv
)
#==================================================================
# Superevent
class
SupereventList
(
APIView
):
"""
Superevent list resource
"""
def
get
(
self
,
request
):
pass
def
post
(
self
,
request
):
pass
class
SupereventDetail
(
APIView
):
"""
Superevent detail resource
"""
def
get
(
self
,
request
):
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment