Uh oh!
There was an error while loading. Please reload this page.
lib: make event static properties non writable and configurable - #50425
Conversation
BenzeneAlcohol
commented
Oct 27, 2023
making |
BenzeneAlcohol
commented
Oct 30, 2023
I've run the linter and fixed the errors, and also changed up stuff a bit. Please review @KhafraDev |
H4ad
commented
Oct 30, 2023
@BenzeneAlcohol Can you please fix the issue on the first commit? https://github.com/nodejs/node/actions/runs/6690083519/job/18190085079?pr=50425 But thanks for the PR, looks great! |
da98db5 to
e90fbb1CompareBenzeneAlcohol
commented
Oct 30, 2023
Done, thank you! :) |
BenzeneAlcohol
commented
Oct 30, 2023
The test for some reason runs on the old commit message? |
BenzeneAlcohol
commented
Oct 31, 2023
Any changes I have to further make? |
You can squash everything, or you can rebase, but you need to change the commit message, both should work. |
e90fbb1 to
53502c7CompareBenzeneAlcohol
commented
Nov 1, 2023
Squashed into one commit. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BenzeneAlcohol
commented
Nov 1, 2023
Ok, I have a very noob question. But I do some small changes, and every time do I have to make the detailed commit message? Because sometimes the change I do is like removing a few lines (like I removed a few console lines) but then the commit message should contain details about the actual change in case it gets merged. So do I just wait for approval, then rebase all changes to 1 commit message? And have normal commit messages, 1 liners till that one final rebased single commit. |
Uh oh!
There was an error while loading. Please reload this page.
H4ad
commented
Nov 1, 2023
From what I know, only the first message will be used to create the commit description, so it's fine you keep the first commit with the message and then create other commits for minor fixes. About all commits, I will later add a flag to squash everything, so all the commits will be released as just one commit. |
KhafraDev
commented
Nov 1, 2023
I believe only the first commit must be detailed, because they typically get squashed automatically when merged. Personally, I use |
BenzeneAlcohol
commented
Nov 1, 2023
Got it, thanks! |
BenzeneAlcohol
commented
Nov 1, 2023
Alrighty! |
nodejs-github-bot
commented
Nov 1, 2023
Uh oh!
There was an error while loading. Please reload this page.
BenzeneAlcohol
commented
Nov 2, 2023
Does that failed pipeline for 4 checks indicate any changes I have to do or are they some flaky tests? |
MrJithil
commented
Nov 2, 2023
Its not because of your changes. |
nodejs-github-bot
commented
Nov 2, 2023
1923af3 to
b8cb3ccCompareBenzeneAlcohol
commented
Nov 3, 2023
Done |
nodejs-github-bot
commented
Nov 3, 2023
tniessen
commented
Nov 3, 2023
Is this semver-major or do we consider it a bug fix? |
H4ad
commented
Nov 3, 2023
I think it is a bug fix since people are not supposed to change/modify these properties. But if we want to be cautious, a semver-minor can be applied. Maybe run CITMG too? |
definitely a bug fix, I wouldn't consider it a major change. If someone relied on changing these properties, they were relying on a bug. |
BenzeneAlcohol
commented
Nov 3, 2023
Agreed. Does it need semver-minor? |
BenzeneAlcohol
commented
Nov 5, 2023
Does this need anything else before merging? |
BenzeneAlcohol
commented
Nov 10, 2023
@KhafraDev and @H4ad any blockers stopping this from merge? |
nodejs-github-bot
commented
Nov 10, 2023
Landed in b4850f2 |
IMO No. It's already landed |
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constant this means that they shouldn't be configurable and writable. However, they were, and this commit fixes that. Fixes: #50417 PR-URL: #50425 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
The idl definition for Event makes the properties constants, this means that they shouldn't be configurable. However, they were, and this commit fixes that.
Fixes: #50417