opensearch-plugins icon indicating copy to clipboard operation
opensearch-plugins copied to clipboard

[BUG] Names don't adhere to plugin naming convention

Open dblock opened this issue 2 years ago • 13 comments

What is the bug?

We have published a plugins naming convention to https://github.com/opensearch-project/opensearch-plugins/blob/main/CONVENTIONS.md#plugin-naming-conventions in #56, but are failing to adhere to these consistently

What is the expected behavior?

Plugins follow the convention.

  1. Evaluate and publish the delta.
  2. Update contentions if needed.
  3. Align all names to the convention.
  • [ ] https://github.com/opensearch-project/index-management-dashboards-plugin/issues/415
  • [ ] https://github.com/opensearch-project/alerting-dashboards-plugin/issues/372
  • [ ] https://github.com/opensearch-project/security-analytics-dashboards-plugin/issues/187
  • [ ] https://github.com/opensearch-project/security-dashboards-plugin/issues/1232
  • [ ] https://github.com/opensearch-project/dashboards-visualizations/issues/130#issuecomment-1503960022
  • [ ] https://github.com/opensearch-project/alerting/issues/687
  • [x] https://github.com/opensearch-project/ml-commons/issues/847
  • [x] https://github.com/opensearch-project/geospatial/issues/252
  • [ ] https://github.com/opensearch-project/dashboards-i18n/pull/22
  • [x] https://github.com/opensearch-project/asynchronous-search/issues/209

dblock avatar Oct 18 '22 14:10 dblock

@mnkugler could you help pick this one up?

elfisher avatar Oct 18 '22 16:10 elfisher

@elfisher sure!

mnkugler avatar Oct 18 '22 16:10 mnkugler

@elfisher sure!

Thanks!

elfisher avatar Oct 18 '22 16:10 elfisher

Can anyone comment on the implications of renaming a plugin? For example, how do we handle existing dependencies? With an alias?

mnkugler avatar Oct 19 '22 19:10 mnkugler

May the first brave team renaming their plugin serve as a tracer bullet for this 🎖️

If this ends up being bigger than a breadbox, we should have the discussion around whether the juice is worth the squeeze especially for plugin repos given that we are thinking of what the next iteration of plugins would be and they might be on a (albeit long) deprecation path. 🤔

davidlago avatar Oct 20 '22 13:10 davidlago

Oh man. Renaming plugins sounds like a painful process. But, can we ensure that naming is consistent moving forward? In what cases from the CONVENTIONS.md doc does "These are recommended plugin naming conventions. YMMV." really apply if we do want consistency?

macohen avatar Oct 25 '22 15:10 macohen

+1 on getting rid of YMMV

dblock avatar Oct 25 '22 18:10 dblock

For current plugins that have already been published to maven without following the convention, will we create a new plugin name and release under a new name?

amitgalitz avatar Nov 30 '22 23:11 amitgalitz

@amitgalitz Do you have a strong preference one way or another? Feels like 3.0 may be a good time to do this.

dblock avatar Dec 06 '22 15:12 dblock

@amitgalitz Do you have a strong preference one way or another? Feels like 3.0 may be a good time to do this.

If we are thinking long term, I think 3.0 is a good time to do this as well. Developers should be expecting breaking changes, having to potentially change API, or gradle dependencies during 3.0 bump could make sense.

There are 2 things I can think of at least that we should consider before though.

  1. We should find the correct way to let users know of the change to a new release on maven since I don't know of an easy way to link one maven software to a separate maven software and label that as a continuation.

  2. We should only actually change plugin names for convention case if we figure out a way to really enforce these naming conventions. Even as recent as 2.4.0 we have new plugins that used the new onboarding issue creation process that still have incorrect plugin names.

amitgalitz avatar Dec 14 '22 22:12 amitgalitz

Dashboard Maps, SQL, Common Util, & Performance Analyzer RCA have all resolved their issues. The following table illustrates the 10 Repos left and their status:

Repo Issue Owner Status GH Issue
Index Management Dashboard Remove plugin from the repo name getsaurabh02 Fix after 2.11 release issue
Alerting Dashboard Remove plugin from the repo name getsaurabh02 Fix after 2.11 release issue
Security Analytics Dashboard Plugins Remove plugin from the repo name praveensameneni Fix after 2.11 release issue
Security Dashboard Plugin Remove plugin from the repo name davidlago Fix by 3.0 issue
Dashboard Visualization Folder needs to be fixed anirudha On hold and Ani will come up with a solution issue
Alerting Folder needs to be fixed getsaurabh02 Fix after 2.11 release issue
ML Commons opensearchplugin metadata is missing from build.gradle sean-zheng-amazon complete issue
Geospatial opensearchplugin metadata is missing from build.gradle vamshin complete issue
i18n Remove plugin from the repo name & Plugin ID needs to align with convention with camel case seanneumann Complete issue
Asynchronous Search Folder needs to be fixed dhruvdas complete issue

mnkugler avatar Apr 11 '23 21:04 mnkugler

Updated chart: Alerting, Index Management, and Security Analytics is planning to work on removing the word “plugin” from the repo name after 2.11 to ensure the best timing for no breaking changes.

mnkugler avatar Sep 07 '23 18:09 mnkugler