opensearch-plugins
opensearch-plugins copied to clipboard
[BUG] Names don't adhere to plugin naming convention
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
- index-management-dashboards-plugin
- observability
- security-analytics-dashboards-plugin
- security-dashboards-plugin
- dashboards-maps
- dashboards-visualizations ...
What is the expected behavior?
Plugins follow the convention.
- Evaluate and publish the delta.
- Update contentions if needed.
- 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
@mnkugler could you help pick this one up?
@elfisher sure!
@elfisher sure!
Thanks!
Can anyone comment on the implications of renaming a plugin? For example, how do we handle existing dependencies? With an alias?
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. 🤔
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?
+1 on getting rid of YMMV
Here's a summary of the most noticeable deviations from the conventions.
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 Do you have a strong preference one way or another? Feels like 3.0 may be a good time to do this.
@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.
-
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.
-
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.
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 |
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.