Skip to content

First time contribution from NodeConf EU - #16821

Closed
paulashfield wants to merge 3 commits into
nodejs:masterfrom
paulashfield:master
Closed

First time contribution from NodeConf EU#16821
paulashfield wants to merge 3 commits into
nodejs:masterfrom
paulashfield:master

Conversation

@paulashfield

Copy link
Copy Markdown
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
Affected core subsystem(s)

@nodejs-github-botnodejs-github-bot added dont-land-on-v4.x node-api Issues and PRs related to the Node-API. test Issues and PRs related to the tests. labels Nov 6, 2017

@apapirovskiapapirovski left a comment

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.

Thanks @paulashfield — just some minor feedback below.

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 would be a bit nicer as just, say:

constval1=41.92;constval2=0.08;

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 could be then rewritten as:

constactual=addon.testNapiRun(`(${val1} + ${val2});`);

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 could then be const expected = val1 + val2;

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.

Here you could remove the third argument (the error message) as the default message communicates the same thing.

@apapirovskiapapirovski added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 6, 2017
@gireeshpunathil

Copy link
Copy Markdown
Member

@paulashfield -
looks like you pushed changed without:

#git config --global user.name
#git config --global user.email

on your system - implication of which is that this commit will not be associated with your profile. Can you set them up and push once again?

@vsemozhetbyt

Copy link
Copy Markdown
Contributor

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.

A nit: the last line seems lacking the last line break.

@paulashfield

Copy link
Copy Markdown
Author

Many thanks all for feedback - really helped. I have amended and recommitted, hope that looks better.

@Trott

Trott commented Nov 7, 2017

Copy link
Copy Markdown
Member

@Trott

Trott commented Nov 8, 2017

Copy link
Copy Markdown
Member

Hi @paulashfield! Welcome and thanks for the PR! If you run make lint-js (or vcbuild lint-js if you're on Windows), you will see a report of a linting error on line 15. Could you fix that up?

@TrottTrott 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.

Needs spacing flagged by linter fixed...

@TrottTrott 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.

Because the lint issue was just about adding two spaces, I went ahead and did it myself. Hope that's OK.

@Trott

Trott commented Nov 8, 2017

Copy link
Copy Markdown
Member

Trott pushed a commit to Trott/io.js that referenced this pull request Nov 8, 2017
PR-URL: nodejs#16821
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@Trott

Trott commented Nov 8, 2017

Copy link
Copy Markdown
Member

Landed in 3ee524b.
Thanks for the contribution! 🎉

@TrottTrott closed this Nov 8, 2017
evanlucas pushed a commit that referenced this pull request Nov 13, 2017
PR-URL: #16821
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@evanlucasevanlucas mentioned this pull request Nov 13, 2017
@LJNeonLJNeon mentioned this pull request Nov 15, 2017
@gibfahn

Copy link
Copy Markdown
Member

@paulashfield just an FYI, this commit isn't associated with your Github account. You need to go to https://github.com/settings/emails and add paul.ashfield@intercity.technology. Then all your commits will be associated with you.

That's why there's a ? next to your name on the commit: 3ee524b

image

gibfahn pushed a commit that referenced this pull request Dec 13, 2017
PR-URL: #16821
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This was referenced Dec 20, 2017
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 16, 2018
PR-URL: nodejs#16821
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
MylesBorins pushed a commit that referenced this pull request Apr 16, 2018
Backport-PR-URL: #19447
PR-URL: #16821
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
@MylesBorinsMylesBorins mentioned this pull request Apr 16, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.node-apiIssues and PRs related to the Node-API.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@paulashfield@gireeshpunathil@vsemozhetbyt@Trott@gibfahn@apapirovski@nodejs-github-bot