Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable streamed sync endpoints (#1012) #1014

Merged
merged 1 commit into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
27 changes: 14 additions & 13 deletions galaxy_ng/app/api/v3/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,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'}),
Expand Down
27 changes: 14 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 @@ -101,27 +101,28 @@ def setUp(self):
}
)

# The following URLS are temporary deatived due to https://issues.redhat.com/browse/AAH-224
# metadata urls
# 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',
# "galaxy:api:content:v3:all-collections-list",
# kwargs={
# 'path': self.repo.name,
# }
# "path": self.repo.name,
# },
# )

#
# self.all_versions_url = reverse(
# 'galaxy:api:content:v3:all-collection-versions-list',
# "galaxy:api:content:v3:all-collection-versions-list",
# kwargs={
# 'path': self.repo.name,
# }
# "path": self.repo.name,
# },
# )

#
# self.metadata_url = reverse(
# 'galaxy:api:content:v3:repo-metadata',
# "galaxy:api:content:v3:repo-metadata",
# kwargs={
# 'path': self.repo.name,
# }
# "path": self.repo.name,
# },
# )

# used for href tests
Expand Down