Skip to content

doc: add options description for process.send() and worker.send() - #29868

Closed
dev-script wants to merge 5 commits into
nodejs:masterfrom
dev-script:add-devendra-shekhawat
Closed

doc: add options description for process.send() and worker.send()#29868
dev-script wants to merge 5 commits into
nodejs:masterfrom
dev-script:add-devendra-shekhawat

Conversation

@dev-script

@dev-scriptdev-script commented Oct 7, 2019

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the doc Issues and PRs related to the documentations. label Oct 7, 2019
@dev-script

Copy link
Copy Markdown
ContributorAuthor

This is my first PR, Please review. Thank you

Comment threaddoc/api/cluster.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is missing from the signature above

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@mscdex thanks, i fix it.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@mscdex please can you give me some more idea about this.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Hello @mscdex

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@dev-313 - you need to modify the API signature at line 466 to add the options argument as well - like how did it for the worker.send API.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@gireeshpunathil please review now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good. @mscdex - PTAL!

Comment threadpackage-lock.json Outdated
@BridgeARBridgeAR changed the title Added the description for the boolean return value of 'send()' in process.send() and worker.send() api.doc: add options description for process.send() and worker.send()Oct 9, 2019
@dev-scriptdev-script reopened this Oct 10, 2019
@dev-script

Copy link
Copy Markdown
ContributorAuthor

@BridgeAR should I close this PR.

@BridgeAR

Copy link
Copy Markdown
Member

@dev-313 if I am not mistaken this is an documentation fix. As such, it would be great to keep it open. Seems like there's just one comment left that should be addressed (worker.send(message[, sendHandle][, callback]) misses the options argument completely and that should be added there).
I just do not know what options are valid and which are not for this API; @addaleax maybe?

@BridgeARBridgeAR reopened this Oct 10, 2019
Comment threaddoc/api/process.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
*`options` {Object} The `options` argument, if present, is an object used to
Object used to

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

so should remove the existing options {Object} line and add only Object used to , Am i right @Trott

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whoops, my mistake. Let me try again.

Suggested change
*`options` {Object} The `options` argument, if present, is an object used to
*`options` {Object} Used to

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

ok i understand @Trott , Thnaks

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@Trott i have one more doubt all three files have to change (child_process, cluster, process) or only process.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Only process.md.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Ok Thanks

@Trott

Copy link
Copy Markdown
Member

@dev-313 I see you responded to a comment seven days ago, but it hasn't been addressed. Are you still working on this?

@dev-script

Copy link
Copy Markdown
ContributorAuthor

yes @Trott i'm working on this.

@dev-script

Copy link
Copy Markdown
ContributorAuthor

@Trott help why these stage 2 tests are failed.

Comment threaddoc/api/process.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like you have a merge conflict to resolve.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks @Trott , I'll fix it,instead of this everything is ok or not.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@dev-script

Copy link
Copy Markdown
ContributorAuthor

@Trott everytime i get this commit message error, please guide me how i can resolve this issue.
I know how to write a proper commit but confusion is that how to change this first commit message.

@Trott

Copy link
Copy Markdown
Member

@Trott everytime i get this commit message error, please guide me how i can resolve this issue.
I know how to write a proper commit but confusion is that how to change this first commit message.

You need to rebase and amend the first commit message. That can happen when the pull request is landed so if you don't get to it, that's OK. You do need to make changes to address @mscdex's comment, though.

Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
Add 'options' argument in worker.send() (doc/api/cluster.md)
API signature.
Fixes: #26995
@Trott

Copy link
Copy Markdown
Member

@dev-script
dev-script requested a review from TrottOctober 22, 2019 09:45
@gireeshpunathilgireeshpunathil added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 23, 2019
@gireeshpunathil

Copy link
Copy Markdown
Member

all looks good to me. One more approval, and we should be ready to go!

@gireeshpunathil

Copy link
Copy Markdown
Member

invoking 7 day rule for PR with a single approval!

gireeshpunathil pushed a commit that referenced this pull request Oct 30, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@gireeshpunathil

Copy link
Copy Markdown
Member

landed as 5d1578d

thanks @dev-313 for your contribution!

targos pushed a commit that referenced this pull request Nov 5, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@targostargos mentioned this pull request Nov 5, 2019
targos pushed a commit that referenced this pull request Nov 8, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
targos pushed a commit that referenced this pull request Nov 10, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
targos pushed a commit that referenced this pull request Nov 10, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@targostargos mentioned this pull request Nov 10, 2019
targos pushed a commit that referenced this pull request Nov 11, 2019
Describes the meaning of the boolean return in process.send()
(doc/api/process.md) and worker.send() (doc/api/cluster.md) as
described in subprocess.send() (doc/api/child_process.md)
Fixes: #26995
PR-URL: #29868
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.docIssues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@dev-script@BridgeAR@Trott@nodejs-github-bot@gireeshpunathil@mscdex