Skip to content

Commit

Permalink
Disable streamed sync endpoints
Browse files Browse the repository at this point in the history
Related-Issue: AAH-224
  • Loading branch information
awcrosby committed Oct 7, 2021
1 parent 14f8353 commit 65e37b9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGES/224.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable streamed sync endpoints
25 changes: 14 additions & 11 deletions galaxy_ng/app/api/v3/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@
]

urlpatterns = [
path("", viewsets.RepoMetadataViewSet.as_view({"get": "retrieve"}), name="repo-metadata"),
path(
"collections/all/",
viewsets.UnpaginatedCollectionViewSet.as_view({"get": "list"}),
name="all-collections-list",
),
path(
"collection_versions/all/",
viewsets.UnpaginatedCollectionVersionViewSet.as_view({"get": "list"}),
name="all-collection-versions-list",
),
# The following endpoints are related to issue https://issues.redhat.com/browse/AAH-224
# For now endpoints are temporary deactivated
#
# path("", viewsets.RepoMetadataViewSet.as_view({"get": "retrieve"}), name="repo-metadata"),
# path(
# "collections/all/",
# viewsets.UnpaginatedCollectionViewSet.as_view({"get": "list"}),
# name="all-collections-list",
# ),
# path(
# "collection_versions/all/",
# viewsets.UnpaginatedCollectionVersionViewSet.as_view({"get": "list"}),
# name="all-collection-versions-list",
# ),
path(
"collections/", viewsets.CollectionViewSet.as_view({"get": "list"}), name="collections-list"
),
Expand Down
29 changes: 16 additions & 13 deletions galaxy_ng/tests/unit/api/test_api_v3_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,22 @@ def setUp(self):
"galaxy:api:v3:default-content:collection-artifact-upload"
)

self.all_collections_url = reverse(
"galaxy:api:content:v3:all-collections-list",
kwargs={
"path": self.repo.name,
},
)

self.all_versions_url = reverse(
"galaxy:api:content:v3:all-collection-versions-list",
kwargs={
"path": self.repo.name,
},
)
# The following tests use endpoints related to
# issue https://issues.redhat.com/browse/AAH-224
# For now endpoints are temporary deactivated
# self.all_collections_url = reverse(
# "galaxy:api:content:v3:all-collections-list",
# kwargs={
# "path": self.repo.name,
# },
# )
#
# self.all_versions_url = reverse(
# "galaxy:api:content:v3:all-collection-versions-list",
# kwargs={
# "path": self.repo.name,
# },
# )

self.metadata_url = reverse(
"galaxy:api:content:v3:repo-metadata",
Expand Down

0 comments on commit 65e37b9

Please sign in to comment.