Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are a couple of references to hook_nodeapi left behind in devel_generate.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1799024-devel_generate-fix_nodeapi_references-2.patch | 1.99 KB | pcambra |
devel_generate-fix_nodeapi_references.patch | 1.62 KB | pcambra | |
Comments
Comment #1
salvisThank you for the clean-up. Please note that D8 needs to go first.
Use parentheses with hook_node_insert() — this will generate a link in the documentation.
Also add a 'their' in the proper place, please.
Add a space.
Comment #2
pcambraBeing just documentation, patches are quite similar, here's the D8 one.
Fixed your comments, I don't see nothing wrong with the use of "their" there, I'm cutting at char 80 following the coding standards.
Comment #3
salvisI've added the "their":
Committed to D8 and D7. Thanks!
Comment #4
pcambraThanks, but next time please use proper attribution, I had even formatted the patch accordingly this time in #2
Comment #5
salvisThis is proper attribution...
... even though I had to fix your patch.
git am
is a pain because it auto-commits the patch. For that the patch needs to be 100% perfect, including the commit message. I had to fix both the patch and the commit message, so if anything is wrong here, it's that I didn't add my name (for reviewing and fixing).Even if the patch is perfect,
git am
is a pain because it cannot be rolled back as easily asgit apply
. And if I've tentatively applied a patch with apply and I decide to keep it, I will not roll it back and reapply with am. Also I don't think about the commit message until I'm ready to commit, another strike againstgit am
.As it says on the page you referenced (my emphasis):
I will do the --author thing for a perfect patch that represents a significant amount of work by a single person and no other significant contributors, but for small patches (and patches with more than one contributor) the standard attribution must do.
You'd be the first to accuse me of not doing proper attribution. Please take that back.
Comment #6
pcambraI think I've asked you very politely to use what it should be the proper attribution using a formatted patch even if you had to add a "their" in what you think was the proper place (even if that was there before, I just changed the function reference), you could have totally informed that as by pcambra, salvis, that'd be just fine too.
I'm not taking back an accusation I haven't made, I would totally applied git attribution (what I've seen in many places called as "proper attribution") in any of my modules for a patch like that and that's why I'm expecting the same thing anywhere else.
I consider your reaction a little unfortunate as I'm trying to help here in devel as you can see in more and more issues, so I would ask you to please step a little back and don't take it personal as it is not, just asking for what I think (and I'm not a fool alone in this) it should be the way to proceed for all projects.
Comment #7
pcambraChecking with other people to see what could be wrong in our communication here, I must clarify that you're right with the git am stuff, I normally use dreditor's "Create commit message" (see link above) that has now an authorship tool that simplifies heavily the commit message and the commit without having to deal with git am.
I didn't want to offend you in any mean and say that your way to proceede was not proper, I was referring to "proper attribution" as the name to the initiative to get more maintainers to use the git --author thingy, as I pasted the link above, I didn't invent the naming for that.
I truly think that's a step forward in getting more and more people contributing back as it is displayed in the user profile, and that means something, the "by name" message is hardly traceable.
Comment #8
salvis[EDIT: Our messages crossed. This is in reply to #6, without having read #7]
#4:
This implies that I have not used proper attribution. This comes across as a personal accusation.
I have shown that I have used proper attribution, and that's why I reject the implied personal accusation and I'm asking you politely to take it back.
You may have a preference for the
git am
workflow and the--author
parameter and I have a preference against them, for the reasons that I explained above.You can do whatever you feel is right with your modules, but that does not mean that your maintenance style is the one and only correct one, and that everyone else has to follow.
I realize that and I appreciate and support your efforts. Thank you.
That is your opinion. I'm not aware of any consensus to do this. The commit message provides "proper attribution" and I'm opposed to adding mandatory overhead to the maintenance workflow, as explained above.
Comment #9
moshe weitzman CreditAttribution: moshe weitzman commented@salvis - I encourage you to install dreditor and try out its 'create commit message' feature. it really does make the --author enhancement much easier. and i do think thats ultimately a good thing for devel. we need to encourage contribution. if dreditor just won't fit with your workflow, you could try out the new drush issue queue commands. I have been meaning to start using those.
I have found a way to make
git am
not painful. Basically, you usegit commit --amend -a
to add your bits to the most recent commit. To roll back, you usegit reset HEAD^1
. You can alias these togit amend
andgit rollback
if you wish.Comment #10
juampynr CreditAttribution: juampynr commentedPatches formatted with git format-patch can still be applied with git apply in case a change is needed. The commit message can also be copied and pasted from the patch. Furthermore, with git rebase -i commits can be modified, squashed or merged prior to be pushed by the maintainer.
This is not the first time I see negative comments which may make willing contributors to step back on this module. I have even heard about it at Drupalcon Munich. Contributions are good for all of us, even if they are tiny.
Comment #11
salvisThis interleaved discussion is becoming cumbersome...
@pcambra, #7:
Changing the meaning of common words is a popular tool in a propaganda campaign, but it alienates those who are not on the train. Agitation can, does, and will backfire.
--author
is flawed because it allows only one name; attributing a commit to whoever may have added the last iota is definitely wrong. I have used it (for example here) and will use it for major contributions, but having hundreds of modules listed on your profile page looks spammy IMO.Also, the
--author
names appear on the Committers page of the modules, which is not correct — authors are not committers — and spammy, too.I disagree. The cost is too high. Having to deal with a flood of trivial patches cannot be in the interest of the real committers nor of the community, and trophy hunting is the wrong incentive, especially if the trophies are so cheap that you have to amass hundreds of them to make them mean something. This is a major drain on the module maintainers.
The kids willing to spend 10 minutes to make a trivial change somewhere in exchange for a link outnumber the maintainers who have to spend 5 minutes on correspondence, reviewing, testing, committing by a factor of maybe 100 to 1. This strategy cannot work. Even if we go to the core model where committers don't look at patches until they're RTBC'd, committing a patch still takes 2 minutes.
@moshe, #10:
I have Dreditor installed. The 'create commit message' feature is not bad, but most often I don't want an --author parameter.
I use msysgit under Windows and I'm comfortable using its bash shell in a console window, but I don't think drush runs in that environment.
No, that should not be part of a normal workflow, whether per se or (even worse) aliased. We have safety nets for good reasons.
I already feel an increase of trivial patches, and if this continues, I'll either quit, WF them, or just ignore them. My time is too valuable to deal with peanuts for the benefit of trophy hunters.
@juampy, #11:
That's exactly what I did and what I'll continue to be doing. And what pcambra complained about. I'm comfortable with
git commit --amend
, too, butgit rebase -i
is more than I want to get into.Sure, everyone wants their pet feature committed and then maintained forever by others. It sucks when this doesn't happen. ;-) The people who wanted to talk to us in Munich didn't show up. Surely our fault, too...
BTW, what about the willing reviewers? I'd rather have more reviewers than more contributors at this point.
They're especially good if you don't have to move a finger, meaning that others take care of them. Being on the receiving end, I can't agree with that global statement. If you refuse to weigh costs against benefits, then you're out of touch with reality.
Comment #12
pcambraYeah, let's stop this conversation as it's clearly pointless.