Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove public/ imports in common/ #147

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

ohltyler
Copy link
Member

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

  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Tyler Ohlsen <[email protected]>
@dbwiddis dbwiddis merged commit 23f222c into opensearch-project:main Apr 23, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 23, 2024
* Remove public references in common/

Signed-off-by: Tyler Ohlsen <[email protected]>

* handle NPE

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 23f222c)
ohltyler added a commit that referenced this pull request May 8, 2024
------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 23f222c)

Co-authored-by: Tyler Ohlsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants