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
1308cfb7
Commit
1308cfb7
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add ordering to list views
Add ordering for nested views for a superevent: events, voevents, and EMObservations.
parent
74c7de89
No related branches found
Branches containing commit
Tags
gracedb-2.0.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/api/v1/superevents/views.py
+3
-0
3 additions, 0 deletions
gracedb/api/v1/superevents/views.py
with
3 additions
and
0 deletions
gracedb/api/v1/superevents/views.py
+
3
−
0
View file @
1308cfb7
...
@@ -117,6 +117,7 @@ class SupereventEventViewSet(SafeDestroyMixin,
...
@@ -117,6 +117,7 @@ class SupereventEventViewSet(SafeDestroyMixin,
lookup_url_kwarg
=
'
graceid
'
lookup_url_kwarg
=
'
graceid
'
destroy_error_classes
=
(
Superevent
.
PreferredEventRemovalError
,)
destroy_error_classes
=
(
Superevent
.
PreferredEventRemovalError
,)
destroy_error_response_status
=
status
.
HTTP_400_BAD_REQUEST
destroy_error_response_status
=
status
.
HTTP_400_BAD_REQUEST
list_view_order_by
=
(
'
pk
'
,)
# TODO: do we need to filter events by user?
# TODO: do we need to filter events by user?
def
get_object
(
self
):
def
get_object
(
self
):
...
@@ -287,6 +288,7 @@ class SupereventVOEventViewSet(SafeCreateMixin,
...
@@ -287,6 +288,7 @@ class SupereventVOEventViewSet(SafeCreateMixin,
create_error_classes
=
(
VOEventBuilderException
)
create_error_classes
=
(
VOEventBuilderException
)
lookup_url_kwarg
=
'
N
'
lookup_url_kwarg
=
'
N
'
lookup_field
=
'
N
'
lookup_field
=
'
N
'
list_view_order_by
=
(
'
N
'
,)
class
SupereventEMObservationViewSet
(
SafeCreateMixin
,
class
SupereventEMObservationViewSet
(
SafeCreateMixin
,
...
@@ -300,6 +302,7 @@ class SupereventEMObservationViewSet(SafeCreateMixin,
...
@@ -300,6 +302,7 @@ class SupereventEMObservationViewSet(SafeCreateMixin,
ParentSupereventAnnotatePermissions
,)
ParentSupereventAnnotatePermissions
,)
lookup_url_kwarg
=
'
N
'
lookup_url_kwarg
=
'
N
'
lookup_field
=
'
N
'
lookup_field
=
'
N
'
list_view_order_by
=
(
'
N
'
,)
class
SupereventSignoffViewSet
(
SafeCreateMixin
,
class
SupereventSignoffViewSet
(
SafeCreateMixin
,
...
...
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