opensearch-project / dashboards-flow-framework

A UI designer for constructing AI applications with OpenSearch
Apache License 2.0
6 stars 5 forks source link

Remove `public/` imports in `common/` #147

Closed ohltyler closed 3 months ago

ohltyler commented 3 months ago

Description

Removes all instances of pulling in public/ modules into common. This breaks things when trying to run the built plugin (compiled JS) in a distribution build, but doesn't cause errors in a dev environment otherwise. The consequence of moving these, is a bunch of import refactoring was needed across all files. Audited all moved imports to ensure none are missed, also sanity tested plugin flows. Also adds a one-line change to handle an edge-case NPE.

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.