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

Rename namespaces from opendistro to opensearch. #43

Merged
merged 1 commit into from
May 15, 2021
Merged

Rename namespaces from opendistro to opensearch. #43

merged 1 commit into from
May 15, 2021

Conversation

spbjss
Copy link
Contributor

@spbjss spbjss commented May 14, 2021

Signed-off-by: Alex pengsun@amazon.com

Description

Rename namespaces & other references of opendistro to opensearch

Issues Resolved

Update the namespaces to adopt the opensearch GA.

Check List

  • [Y] 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: Alex <pengsun@amazon.com>
@spbjss spbjss added the version upgrade Upgrading OpenSearch compatibility label May 14, 2021
@spbjss spbjss self-assigned this May 14, 2021
@spbjss spbjss added this to In progress in OpenSearch Project Roadmap via automation May 14, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #43 (df40fe5) into main (be8c248) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #43   +/-   ##
=========================================
  Coverage     79.25%   79.26%           
- Complexity     2690     2691    +1     
=========================================
  Files           242      242           
  Lines         11065    11065           
  Branches       1012     1012           
=========================================
+ Hits           8770     8771    +1     
  Misses         1880     1880           
+ Partials        415      414    -1     
Flag Coverage Δ Complexity Δ
plugin 79.26% <ø> (+<0.01%) 2691.00 <ø> (+1.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
.../java/org/opensearch/ad/AbstractProfileRunner.java 100.00% <ø> (ø) 2.00 <0.00> (?)
...va/org/opensearch/ad/AnomalyDetectorJobRunner.java 75.00% <ø> (ø) 36.00 <0.00> (?)
.../java/org/opensearch/ad/AnomalyDetectorPlugin.java 95.38% <ø> (ø) 10.00 <0.00> (?)
...rg/opensearch/ad/AnomalyDetectorProfileRunner.java 77.25% <ø> (ø) 62.00 <0.00> (?)
.../java/org/opensearch/ad/AnomalyDetectorRunner.java 46.25% <ø> (ø) 7.00 <0.00> (?)
...in/java/org/opensearch/ad/EntityProfileRunner.java 78.16% <ø> (ø) 31.00 <0.00> (?)
src/main/java/org/opensearch/ad/ExpiringState.java 100.00% <ø> (ø) 1.00 <0.00> (?)
.../main/java/org/opensearch/ad/MaintenanceState.java 100.00% <ø> (ø) 3.00 <0.00> (?)
src/main/java/org/opensearch/ad/MemoryTracker.java 77.33% <ø> (ø) 21.00 <0.00> (?)
src/main/java/org/opensearch/ad/Name.java 100.00% <ø> (ø) 2.00 <0.00> (?)
... and 238 more

import com.amazon.opendistroforelasticsearch.ad.transport.AnomalyResultTransportAction;
import com.amazon.opendistroforelasticsearch.ad.transport.handler.AnomalyIndexHandler;
import com.amazon.opendistroforelasticsearch.ad.transport.handler.DetectionStateHandler;
import com.amazon.opendistroforelasticsearch.ad.util.ClientUtil;
import com.amazon.opendistroforelasticsearch.commons.InjectSecurity;
Copy link
Member

Choose a reason for hiding this comment

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

Should we wait for the AD dependencies (common-utils, job-scheduler) to make the corresponding namespace changes first? Then we can remove all references to opendistroforelasticsearch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!
But considering the tight launch schedule, I prefer to change as much as we could before the AD dependencies were ready. Once the dependencies were ready, we could make another small change to remove all references to opendistroforelasticsearch.

Copy link
Collaborator

Choose a reason for hiding this comment

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

line 76 to 83 of this file still using com.amazon.opendistroforelasticsearch.* as common-utils and job-scheduler not changed yet.
I think it's ok to change it later when common-utils and job-scheduler ready. So we can make sure AD build can pass.

Copy link
Member

Choose a reason for hiding this comment

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

Cool, it can be fixed after. Created #45 to track.

Copy link
Member

Choose a reason for hiding this comment

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

OpenSearch Project Roadmap automation moved this from In progress to Reviewer approved May 14, 2021
Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the change!

Copy link
Member

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

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

Thanks for the changes!

@spbjss spbjss merged commit cfebf07 into opensearch-project:main May 15, 2021
OpenSearch Project Roadmap automation moved this from Reviewer approved to Done May 15, 2021
@jcgraybill jcgraybill removed this from OpenSearch 1.3 (November 29) in OpenSearch Project Roadmap May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version upgrade Upgrading OpenSearch compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants