Skip to content

fix: DH-23199: Propagate loader details from package.json to the manifest.json (#8299) - #8446

Open
mofojed wants to merge 1 commit into
deephaven:rc/v42.xfrom
mofojed:rc/v42.x-DH-23199-propagate-loader-details
Open

fix: DH-23199: Propagate loader details from package.json to the manifest.json (#8299)#8446
mofojed wants to merge 1 commit into
deephaven:rc/v42.xfrom
mofojed:rc/v42.x-DH-23199-propagate-loader-details

Conversation

@mofojed

@mofojed mofojed commented Sep 1, 2026

Copy link
Copy Markdown
Member

(cherry picked from commit 893188e)

…nifest.json (deephaven#8299)

- This is an attempt to port over the behaviour we implemented in
Enterprise: deephaven-ent/iris#4887 and
deephaven-ent/iris#4914
- Working on DH-16228, the UI now loads plugins directly from the
worker. However, the `loader` field is currently not being propagated
through to the `manifest.json` that is populated by the worker, which
breaks the `pivot-builder` plugin (the `loader` field provides details
that it depends on the `pivot` plugin)
- Tested on https://bender-dh-16228.int.illumon.com:8123/iriside/ -
Core+ BETA worker kind is using this

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Jianfeng Mao <4297243+jmao-denver@users.noreply.github.com>
(cherry picked from commit 893188e)
@mofojed mofojed self-assigned this Sep 1, 2026
Copilot AI balanced review requested due to automatic review settings September 1, 2026 21:15
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

No docs changes detected for 45fc06a

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Propagates JS plugin loader metadata from package.json through plugin registration into generated manifests.

Changes:

  • Adds loader support across Java and Python plugin paths.
  • Updates plugin packaging and integration tests.
  • Refreshes related Python dependencies and container images.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
server/.../NpmPackage.java Parses loader metadata.
server/.../JsPluginsFromManifest.java Restores loaders from manifests.
server/.../JsPluginManifestEntry.java Models manifest loader data.
server/.../JsPluginFromNpmPackage.java Transfers package loaders.
server/jetty/.../manifest.json Adds a loader fixture.
server/jetty/.../example1/package.json Adds package loader data.
server/jetty/.../Example123Registration.java Registers a loader fixture.
server/jetty/.../JettyFlightRoundTripTest.java Verifies manifest propagation.
py/server/tests/test_plugin_js.py Tests Python plugin conversion.
py/server/tests/test_jcompat.py Tests recursive JSON conversion.
py/server/deephaven/jcompat.py Adds Java JSON conversion.
py/server/deephaven/__init__.py Extends the package namespace.
py/server/deephaven_internal/plugin/js/__init__.py Transfers Python loaders.
plugin/.../JsPlugin.java Exposes the loader API.
docker/.../pack-plugins.sh Preserves loaders in packaged manifests.
docker/server/.../requirements.txt Refreshes Netty dependencies.
docker/server-jetty/.../requirements.txt Refreshes Jetty dependencies.
docker/registry/slim-base/gradle.properties Updates the slim image digest.
docker/registry/server-base/gradle.properties Updates the server image digest.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

*
* @return the loader configuration
*/
public abstract Optional<Object> loader();

@devinrsmith devinrsmith Sep 2, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JsPlugin is part of a JAVA_PUBLIC module and may already have third-party subclasses

This is not true; it's Immutable, and the only impls are owned by Deephaven.

Comment on lines 32 to +36
public static JsPluginManifestEntry of(
@JsonProperty(value = NAME, required = true) String name,
@JsonProperty(value = VERSION, required = true) String version,
@JsonProperty(value = MAIN, required = true) String main) {
return ImmutableJsPluginManifestEntry.of(name, version, main);
@JsonProperty(value = MAIN, required = true) String main,
@JsonProperty(value = LOADER) Object loader) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants