Skip to content

Commit

Permalink
Remove backend for shed graphql.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Feb 28, 2025
1 parent f87d79b commit 920ae8f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 3,280 deletions.
5 changes: 0 additions & 5 deletions lib/galaxy/dependencies/pinned-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ frozenlist==1.5.0
fs==2.4.16
fsspec==2025.2.0
future==1.0.0
graphene==3.4.3
graphene-sqlalchemy==3.0.0rc2
graphql-core==3.2.6
graphql-relay==3.2.0
gravity==1.0.7
greenlet==3.1.1 ; (python_full_version < '3.14' and platform_machine == 'AMD64') or (python_full_version < '3.14' and platform_machine == 'WIN32') or (python_full_version < '3.14' and platform_machine == 'aarch64') or (python_full_version < '3.14' and platform_machine == 'amd64') or (python_full_version < '3.14' and platform_machine == 'ppc64le') or (python_full_version < '3.14' and platform_machine == 'win32') or (python_full_version < '3.14' and platform_machine == 'x86_64')
gunicorn==23.0.0
Expand Down Expand Up @@ -186,7 +182,6 @@ sqlitedict==2.1.0
sqlparse==0.5.3
starlette==0.45.3
starlette-context==0.3.6
starlette-graphene3==0.6.0
supervisor==4.2.5
svgwrite==1.4.3
tenacity==9.0.0
Expand Down
21 changes: 0 additions & 21 deletions lib/tool_shed/test/functional/test_shed_graphql.py

This file was deleted.

18 changes: 0 additions & 18 deletions lib/tool_shed/webapp/fast_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,17 @@
from slowapi import Limiter, _rate_limit_exceeded_handler
from slowapi.util import get_remote_address
from slowapi.errors import RateLimitExceeded
from starlette_graphene3 import (
GraphQLApp,
make_graphiql_handler,
)

from galaxy.webapps.base.api import (
add_exception_handler,
add_request_id_middleware,
include_all_package_routers,
)
from galaxy.webapps.openapi.utils import get_openapi
from tool_shed.structured_app import ToolShedApp
from tool_shed.webapp.api2 import (
ensure_valid_session,
get_trans,
)
from tool_shed.webapp.graphql.schema import schema

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -126,16 +120,6 @@ def frontend_route(controller, path):
app.get(path, response_class=HTMLResponse)(index)


def mount_graphql(app: FastAPI, tool_shed_app: ToolShedApp):
context = {
"session": tool_shed_app.model.context,
"security": tool_shed_app.security,
}
g_app = GraphQLApp(schema, on_get=make_graphiql_handler(), context_value=context, root_value=context)
app.mount("/graphql", g_app)
app.mount("/api/graphql", g_app)


FRONT_END_ROUTES = [
"/",
"/admin",
Expand Down Expand Up @@ -190,8 +174,6 @@ def mount_static(directory: Path):
for from_route, to_route in LEGACY_ROUTES.items():
redirect_route(app, from_route, to_route)

mount_graphql(app, tool_shed_app)

mount_static(FRONTEND / "static")
if TOOL_SHED_USE_HMR:
mount_static(FRONTEND / "node_modules")
Expand Down
Loading

0 comments on commit 920ae8f

Please sign in to comment.