FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: clarify the parameter name in `Permission::Apply` by daeyeon · Pull Request #47874 · nodejs/node · GitHub

/ node Public

src: clarify the parameter name in Permission::Apply - #47874

Merged
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
daeyeon:main.fix/doc/permission-230505.Fri.baaf
May 7, 2023
Merged

src: clarify the parameter name in Permission::Apply#47874
nodejs-github-bot merged 3 commits into
nodejs:mainfrom
daeyeon:main.fix/doc/permission-230505.Fri.baaf

Conversation

daeyeon commented May 5, 2023

Copy link
Copy Markdown
Member

The first parameter is to set allow-permission, but its name declaration is deny. This removes any confusion.

/cc @RafaelGSS

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels May 5, 2023
tniessen requested a review from RafaelGSS May 5, 2023 09:53
This fixes confusing parameter names. They are references
to set allow-permission.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
daeyeon force-pushed the main.fix/doc/permission-230505.Fri.baaf branch from 77416b8 to 21642e7 Compare May 5, 2023 13:41
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
daeyeon force-pushed the main.fix/doc/permission-230505.Fri.baaf branch from 1ff3516 to 72cab67 Compare May 5, 2023 14:53

RafaelGSS left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This PR does two changes:

  • Correctly fix the parameter name deny -> allow
  • Use is_all_allowed_ instead of deny_all.

While I 100% agree with the first change, the second one seems odd to me. I feel that reading deny_all_ = true by default way clear than is_all_allowed_ = false

… and worker"

This reverts commit 72cab67.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>

daeyeon commented May 6, 2023

Copy link
Copy Markdown
Member Author

@RafaelGSS Thanks for the review. I reverted renaming deny_all to follow your opinion. PTAL.

daeyeon added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label May 6, 2023

RafaelGSS left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with green ci.

RafaelGSS added the request-ci Add this label to start a Jenkins CI on a PR. label May 6, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 6, 2023

Copy link
Copy Markdown
Collaborator

daeyeon added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label May 6, 2023
debadree25 added the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 7, 2023
nodejs-github-bot merged commit 39973c6 into nodejs:main May 7, 2023

Copy link
Copy Markdown
Collaborator

Landed in 39973c6

daeyeon deleted the main.fix/doc/permission-230505.Fri.baaf branch May 9, 2023 05:09
targos pushed a commit that referenced this pull request May 12, 2023
This fixes confusing parameter names. They are references
to set allow-permission.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: #47874
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
This fixes confusing parameter names. They are references
to set allow-permission.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: #47874
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
This fixes confusing parameter names. They are references
to set allow-permission.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: nodejs#47874
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL