Closed (fixed)
Project:
Drupal.org customizations
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
21 Mar 2013 at 18:17 UTC
Updated:
23 May 2014 at 18:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tvn commentedI think 'User account' is a proper component for such role requests. Don't think we need a separate one for 1 specific type of issues, we do have enough components already.
Comment #2
hotwebmatter commented@tvn: I agree that "User account" is the proper Component for such role requests -- but @silverwing raises an interesting point.
When I initially followed the link from the message asking me to apply for the "Not a spammer" role, the issue Component was set to "Spam" by default, and the issue Category was set to <none>.
This caused me to hesitate in confusion, since it wasn't immediately clear how the form on this page related to the message that had led me here. This form seemed more appropriate for reporting spam comments, or for identifying spammer accounts, than for a support request to have a role granted to my User account.
I manually changed the Component to "User account" and the Category to "support request" after taking a moment to consider the available options, but this might not be an obvious choice for newbies, or for anyone who is in a hurry.
The source code for the message
<div>could be easily revised to provide some context, which might make the proper course of action more self-evident. I believe that the situation could be improved somewhat by altering the link destination from this:to something more like this:
Even if the paragraph is not revised, I'd recommend changing the link destination URL from this:
to this:
I've revised the Issue title to clarify what I believe to be the desired outcome, by changing it from this:
Create a "Not a spammer" component
to this:
Change default issue Component for "Not a spammer" requests from "Spam" to "User account"
Comment #3
killes@www.drop.org commentedI am totally ok with changing that. The code is in drupalorg_honeypot module.
Comment #4
hotwebmatter commented@killes:
Cool! Did you already change the code, or can I do it myself? It would be my first (admittedly minor) code contribution!
Comment #5
killes@www.drop.org commentedNo, I didn't make any changes. You can try to create a patch and I'll review it.
Comment #6
hotwebmatter commentedSorry for the delayed response. I think I finally found the code in question:
Should one of these, or both of these, be edited? How would I go about submitting a patch for review?
Here's how I think the amended code should look:
It's really just a one-line change, but there might be two files that require patching.
Comment #7
hotwebmatter commentedHere it is in patch format.
Note that I just used
rather than git cloning the entire drupalorg project, because I'm new to collaborating on Drupal projects (though I am familiar with git).
Comment #8
silverwing commentedCan we also add a "more information" link pointing to http://drupal.org/node/1887616 ?
Comment #9
hotwebmatter commentedHuh, I just noticed that I double-posted and apparently can't delete my own comments.
@silverwing: I'm not entirely sure how to add a second URL to
but I'll look into it.
Comment #10
hotwebmatter commentedHere's a revised patch. I've edited the message for length, hopefully without sacrificing the improved clarity:
I'd like to add the link to http://drupal.org/node/1887616 suggested by @silverwing above, but I'm not certain that I understand the rationale behind defining
<a href ="!url">viaarray('!url' => '/node/add/project-issue/webmasters&component=User%20account'). Would it be acceptable to include the link to http://drupal.org/node/1887616 inline?If there is an advantage to defining the URL in an array instead, should I define
<a href ="!url2">viaarray('!url2' => 'http://drupal.org/node/1887616'), or is there an accepted convention I should follow? I don't know what the best practice is here, and I'd like my proposed changes to adhere to the Drupal community Coding Standards.I've assigned this issue to myself, and I'm currently reading the Novice code contribution guide to make sure that I understand how to create a patch and submit it for review.
Comment #11
avpadernoUse
url()for the URL.Comment #12
hotwebmatter commentedThis is my first official attempt at a proper patch, so I hope I did everything correctly this time.
@kiamlaluno: Thanks for the advice about using url() -- I did it a different way, but it should work.
Comment #13
hotwebmatter commentedChanged Status to "needs review" -- I knew I was forgetting something!
:)
Comment #14
tvn commentedMoving to the correct project. Thanks for the patch!
I think that "please ask us to grant..." is not the best wording. We also try to avoid the word 'please' in Drupal UI and on Drupal.org (per D.o style guide). It's better to have shorter text and also to be more clear that not everyone needs to apply for a role, we just give such an opportunity if people don't want to wait till the system does it automatically.
That said, can you change the message to:
We have had bad experiences with spammers. To avoid this message (and be able to post faster) you can <a href ="!url">request "not a spammer" role</a>. For more information, see..!url can be changed to
/node/add/project-issue/webmasters&component=User%20account&categories=support&title=Request%20for%20%27not%20a%20spammer%27%20roleto automatically set support request category and issue title.
Comment #15
hotwebmatter commented@tvn: Thanks for your suggestions.
drupal_set_messageedited for clarity.!urlchanged to automatically set support request component, category and issue title.Here's a revised patch, submitted for review.
Comment #16
hotwebmatter commentedAccording to http://qa.drupal.org/pifr/queued the testbot doesn't seem to be aware of my latest patch after 24 hours.
I'm setting the Issue Status to "active" and then back to "needs review" to see if I can nudge it into the queue.
Comment #17
hotwebmatter commentedNeeds review.
Comment #18
dwwThere are no simpletests for the drupalorg* suite, so there's no automated testing of patches in this issue queue. We should fix that (just created #1974400: Add some simpletests and enable patch testing for the drupalorg queue about it), but don't worry about it here for now. The automated testing functionality is opt-in on a per-project basis, not something that happens for every patch for every issue for every project.
Cheers,
-Derek
Comment #19
drummCommitted with a few changes:
!urland@urlto!issue_urland!help_urlI also merged this up to 7.x-3.x. I deployed this on the live site.
Comment #20
hotwebmatter commented@drumm:
Thanks for the commit, and for the eminently sensible changes enumerated above.
I've updated my profile to reflect my first officially-accepted code contribution!
Comment #21
silverwing commented@hotwebmatter - thanks for your work on this! Much appreciated!