From 204f143c50d339d14584014bc86f945cfa987fc2 Mon Sep 17 00:00:00 2001 From: Isaac Hellendag <2823852+hellendag@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:33:12 -0500 Subject: [PATCH] [ui] Fix internal static asset test for GraphiQL (#23448) ## Summary & Motivation Fix internal test related to the GraphiQL change. The relevant configuration is in OSS, but the test runs internally. ## How I Tested These Changes Point internal branch at this branch, verify that the internal build passes. --- .../dagster-webserver/dagster_webserver/webserver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_modules/dagster-webserver/dagster_webserver/webserver.py b/python_modules/dagster-webserver/dagster_webserver/webserver.py index 7f8f4a536f073..2ca19aada200a 100644 --- a/python_modules/dagster-webserver/dagster_webserver/webserver.py +++ b/python_modules/dagster-webserver/dagster_webserver/webserver.py @@ -292,6 +292,10 @@ def _static_file(path, file_path): # These are tested by an internal test without building the app. return [ Route("/favicon.png", lambda _: FileResponse(path="/favicon")), + Route( + "/vendor/graphiql/graphiql.min.css", + lambda _: FileResponse(path="/vendor/graphiql/graphiql.min.css"), + ), ] return routes