This module allow site admin to set HTTP response headers to different part of the sites through admin UI. Currently this module allows to set the header by
1. path
2. content type
3. user roles.
There is a admin configuration page to manage list of headers that are allowed to set.
Similar module:
1. Context HTTP headers(https://drupal.org/project/context_http_headers) - Specific to context.
2. It works the same way block module does, but the front end functionality is different.
Project page: https://drupal.org/sandbox/vijaycs85/2108205
Project repo link: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/vijaycs85/2108205.git http_response_headers
Reviewed project:
1. https://drupal.org/node/2113649#comment-7981789
2. https://drupal.org/node/2115823#comment-7981809
3. https://drupal.org/node/2107661#comment-7981839
4. https://drupal.org/node/2096821#comment-7981865
Review set 1 (till #14):
1. https://drupal.org/node/2113649#comment-7973389
2. https://drupal.org/node/2101533#comment-7973573
3. https://drupal.org/node/2112353#comment-7976299
Comments
Comment #0.0
vijaycs85Updating project page URL.
Comment #1
octoplod commentedhi,
I'm receiving 'warning; remote HEAD refers to nonexistent ref, unable to checkout' when I tried to clone your repository.
octoplod
Comment #2
ajits@vijaycs85 : You are doing awesome job on the Drupal 8 core issue queue.
For others who don't know about vijaycs85, Dries just mentioned his name in his keynote at DrupalCon Prague this year, for his contribution towards Drupal 8 core (has seen more 140+ patches through, also helps in keeping the issue queue clean, etc.)
I'd suggest we give him a privilege of working on Drupal 8 core (we need some people there badly). If it counts I can volunteer on his behalf for reviewing the projects which would help him seeing this issue through.
Enough introduction, now back to work ;-)
git clone http://git.drupal.org/sandbox/vijaycs85/2108205.git http_response_headersAll the best with the module. Will stay subscribed and provide more feedback whenever I'm able to clone the project.
Changing status to needs work. Once you fix the issues, you should change the status to needs review.
Keep up the good work!
Comment #3
ajitsComment #4
vijaycs85Thanks @octoplod and @AjitS for reviewing it. Here is the update on individual items:
#1:
@octoplod as mentioned by @AjitS, I put the wrong clone URL. I just updated. It should work now.
#2:
Thanks for the intro @AjitS :)
1. Clone URL - fixed
2. Automated review - fixed (Ref: http://pareview.sh/pareview/httpgitdrupalorgsandboxvijaycs852108205git).
3. Can't clone - may be URL issue in 1?
4. Incomplete - Updated information as much as I have. Please let me know, if I still miss any.
Comment #4.0
vijaycs85Updated issue summary.
Comment #5
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #6
ajitsCode sniffer is still not happy
Comment #7
bneil commentedHello,
After uninstalling the module, there are some variables that this module set that were not deleted. You will want to use hook_uninstall() and variable_del() to remove them.
UX:
It might be useful to add a configure link from the modules page: https://drupal.org/node/542202#configure
Also having a message on admin/config/system/http-response-headers that informs you that you need to set the allowed headers in settings might be helpful.
Comment #8
vijaycs85Thanks @AjitS and @bneil for review. I have fixed all in #7 and can't get the code review issues in #6.Not sure, if I'm missing any.
Comment #8.0
vijaycs85Updated issue summary with anonymous clone URL
Comment #8.1
vijaycs85Updated issue summary.
Comment #9
bappa.sarkar commentedStill has some CS issues http://pareview.sh/pareview/httpgitdrupalorgsandboxvijaycs852108205git
Manual review
To
return drupal_match_path($path, $pages) || drupal_match_path($_GET['q'], $pages);$header_rules[$header] = $header_value;withdrupal_add_http_header($header, $header_value);No need for double foreach loop inside init hook.Otherwise looking fine to me.
Comment #10
bappa.sarkar commentedComment #11
vijaycs85Thanks for your review @bappa.sarkar. here is my updates on them:
#9.1 Not sure, whether we really use .tpl for hook_help content. I checked core and found more content and still they are on .module. So I guess it is better to leave it in .module.
#102. request_path() vs $_GET['q'] - fixed.
#9.3 I guess, there is a if condition and that need to be executed if the path is not same.
#9.4 Removed the foreach.
There are 3 defects related to lowerCamel naming of properties. Ctool requires them as '_'. So can't help more there.
Comment #11.0
vijaycs85Updated issue summary.
Comment #12
vijaycs85Adding my 3 project application reviews in issue summary and updating tag...
Comment #13
abghosh82 commentedI did a manual review of your module and I like the idea behind it. A few very minor suggestions:
There are some line in the code which are too long for good readability. You can consider breaking them into multiple lines.
Some of these are as below:
Content in hook_help I agree no tpl is not required but consider breaking the long lines into multiple lines.
File 'http_response_headers.drush.inc' line no. 59, 76, 143, 325 and 344.
File 'http_response_headers.admin.inc' line no. 27.
Some line in 'http_response_headers_ui.module'.
Other than these all looks good and a very well written module.
Not setting to needs work as its very minor but you can consider addresing them.
Comment #14
klausimanual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to dman as he might have time to take a final look at this.
Comment #15
vijaycs85Thanks for your review @klausi. I have removed the empty validation.
Comment #16
PA robot commentedProject 1: https://drupal.org/node/2115857
Project 2: https://drupal.org/node/2108495
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #16.0
PA robot commentedUpdated issue summary with reviews
Comment #17
vijaycs85Ok, closed the other application(#2115857: [D7] Client cache) and updating reviews in summary and adding 'review bonus' tag.
Comment #17.0
vijaycs85Updated issue summary - Updating reviews
Comment #18
klausiBack to RTBC.
Comment #19
klausino objections for more than a week, so ...
Thanks for your contribution, vijaycs85!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #20
vijaycs85Thank you.
Comment #20.0
vijaycs85Updated issue summary.