-
Notifications
You must be signed in to change notification settings - Fork 918
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
[Non-Inclusive Language] Replace master in comments #1778
Conversation
async function getLicenseFromLocalOrMaster(opensearchClient: OpenSearchClient) { | ||
// Fetching the local license is cheaper than getting it from the master node and good enough | ||
// Fetching the local license is cheaper than getting it from the cluster_manager node and good enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's weird for me to see the comments being updated before the function names. I'm guessing that's planned for another PR, but I'd prefer if they were all together so we could validate that the comments still match the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's weird for me to see the comments being updated before the function names. I'm guessing that's planned for another PR, but I'd prefer if they were all together so we could validate that the comments still match the code.
I looked into other open issues related to this task and I don't see any specific issue for updating the function names as such. I think I should have that updated as part of this PR for better readability. Thanks for catching this!
15c4e5d
to
1ccb8e9
Compare
async function getLicenseFromLocalOrMaster(opensearchClient: OpenSearchClient) { | ||
// Fetching the local license is cheaper than getting it from the master node and good enough | ||
async function getLicenseFromLocalOrClusterManager(opensearchClient: OpenSearchClient) { | ||
// Fetching the local license is cheaper than getting it from the cluster_manager node and good enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I think the comments would be main
or manager
node? But if not, it should definitely be cluster manager
node.
Also, can you do me a favor and mark this as deprecated
and create an issue to verify if this is in use? We shouldn't have any licensing checks. It's all telemetry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I think the comments would be
main
ormanager
node? But if not, it should definitely becluster manager
node.
Sure! Updated.
Also, can you do me a favor and mark this asdeprecated
and create an issue to verify if this is in use? We shouldn't have any licensing checks. It's all telemetry.
Created: #1787
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could improve a couple of these comments, but no blockers.
src/core/server/http/http_service.ts
Outdated
@@ -164,7 +164,7 @@ export class HttpService | |||
* Indicates if http server has configured to start listening on a configured port. | |||
* We shouldn't start http service in two cases: | |||
* 1. If `server.autoListen` is explicitly set to `false`. | |||
* 2. When the process is run as dev cluster master in which case cluster manager | |||
* 2. When the process is run as dev cluster manager in which case cluster manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - "in which case cluster manager" doesn't really make sense to me or add anything useful, so I'd recommend deleting.
* 2. When the process is run as dev cluster manager in which case cluster manager | |
* 2. When the process is run as dev cluster manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
// master | ||
// cluster_manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea what the purpose of this comment is 😂 - I'd recommend removing as unhelpful
Does signing off with your full name works on |
I just updated my GPG keys with user name matching my full name and re-signed commit with my full name. I hope this gets 'verified' now on 2.x. |
Codecov Report
@@ Coverage Diff @@
## main #1778 +/- ##
==========================================
- Coverage 67.51% 67.50% -0.01%
==========================================
Files 3073 3073
Lines 59069 59069
Branches 8963 8963
==========================================
- Hits 39881 39877 -4
- Misses 17006 17008 +2
- Partials 2182 2184 +2
Continue to review full report at Codecov.
|
…nction names As part of the meta issue opensearch-project/OpenSearch#2589 to track the plan and progress of applying inclusive naming across OpenSearch Repositories. Issue - opensearch-project#1692 Signed-off-by: Manasvini B Suryanarayana <[email protected]>
…nction names (#1778) As part of the meta issue opensearch-project/OpenSearch#2589 to track the plan and progress of applying inclusive naming across OpenSearch Repositories. Issue - #1692 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit e32a259)
…nction names (#1778) (#1793) As part of the meta issue opensearch-project/OpenSearch#2589 to track the plan and progress of applying inclusive naming across OpenSearch Repositories. Issue - #1692 Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit e32a259) Co-authored-by: Manasvini B Suryanarayana <[email protected]>
Signed-off-by: manasvinibs [email protected]
Description
As part of the meta issue opensearch-project/OpenSearch#2589 to track the plan and progress of applying inclusive naming across OpenSearch Repositories.
In this change, we are replacing 'master' in comments with 'cluster_manager'.
Issues Resolved
#1692
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr