diff --git a/.github/workflows/update-web.yml b/.github/workflows/update-web.yml index 4f1db596353..40d5da41804 100644 --- a/.github/workflows/update-web.yml +++ b/.github/workflows/update-web.yml @@ -20,15 +20,18 @@ jobs: echo "WEB_VERSION=$(npm info @deephaven/code-studio@latest version)" >> $GITHUB_OUTPUT echo "GRID_VERSION=$(npm info @deephaven/embed-grid@latest version)" >> $GITHUB_OUTPUT echo "CHART_VERSION=$(npm info @deephaven/embed-chart@latest version)" >> $GITHUB_OUTPUT + echo "WIDGET_VERSION=$(npm info @deephaven/embed-widget@latest version)" >> $GITHUB_OUTPUT - name: Update deephaven-core env: WEB_VERSION: ${{steps.web_versions.outputs.WEB_VERSION}} GRID_VERSION: ${{steps.web_versions.outputs.GRID_VERSION}} CHART_VERSION: ${{steps.web_versions.outputs.CHART_VERSION}} + WIDGET_VERSION: ${{steps.web_versions.outputs.WIDGET_VERSION}} run: | sed -i "s/^ARG WEB_VERSION=.*/ARG WEB_VERSION=$WEB_VERSION/" ./web/client-ui/Dockerfile sed -i "s/^ARG GRID_VERSION=.*/ARG GRID_VERSION=$GRID_VERSION/" ./web/client-ui/Dockerfile sed -i "s/^ARG CHART_VERSION=.*/ARG CHART_VERSION=$CHART_VERSION/" ./web/client-ui/Dockerfile + sed -i "s/^ARG WIDGET_VERSION=.*/ARG WIDGET_VERSION=WIDGET_VERSION/" ./web/client-ui/Dockerfile - name: Create Pull Request uses: peter-evans/create-pull-request@v5 env: diff --git a/server/jetty/src/main/java/io/deephaven/server/jetty/JettyBackedGrpcServer.java b/server/jetty/src/main/java/io/deephaven/server/jetty/JettyBackedGrpcServer.java index 7b921233312..97e869601c8 100644 --- a/server/jetty/src/main/java/io/deephaven/server/jetty/JettyBackedGrpcServer.java +++ b/server/jetty/src/main/java/io/deephaven/server/jetty/JettyBackedGrpcServer.java @@ -106,7 +106,7 @@ public JettyBackedGrpcServer( context.setInitParameter(DefaultServlet.CONTEXT_INIT + "dirAllowed", "false"); // Cache all of the appropriate assets folders - for (String appRoot : List.of("/ide/", "/iframe/table/", "/iframe/chart/")) { + for (String appRoot : List.of("/ide/", "/iframe/table/", "/iframe/chart/", "/iframe/widget/")) { context.addFilter(NoCacheFilter.class, appRoot + "*", EnumSet.noneOf(DispatcherType.class)); context.addFilter(CacheFilter.class, appRoot + "assets/*", EnumSet.noneOf(DispatcherType.class)); } diff --git a/web/client-ui/Dockerfile b/web/client-ui/Dockerfile index eaa9ac2d5f4..c408f6aafe4 100644 --- a/web/client-ui/Dockerfile +++ b/web/client-ui/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /usr/src/app ARG WEB_VERSION=0.57.1 ARG GRID_VERSION=0.57.1 ARG CHART_VERSION=0.57.1 +ARG WIDGET_VERSION=0.57.1 # Pull in the published code-studio package from npmjs and extract is RUN set -eux; \ @@ -31,3 +32,12 @@ RUN set -eux; \ mv package/build iframe/chart; \ rm -r package; \ rm deephaven-embed-chart-${CHART_VERSION}.tgz; + +# Pull in the published embed-widget package from npmjs and extract is +RUN set -eux; \ + npm pack @deephaven/embed-widget@${WIDGET_VERSION}; \ + tar --touch -xf deephaven-embed-widget-${WIDGET_VERSION}.tgz; \ + mkdir -p iframe; \ + mv package/build iframe/widget; \ + rm -r package; \ + rm deephaven-embed-widget-${WIDGET_VERSION}.tgz;