Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2016 at 05:37 UTC
Updated:
19 Jan 2017 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxpanshulk12641758git
Fixed the git clone URL in the issue summary for non-maintainer users.
We 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 #3
gauravjeet commentedFull manual project review :
- Can you make AdobeAnalyticsHelper.php a Controller. Any custom code in a module can be placed as a Controller for better usage
- README.txt needs a D8 touch. The code examples mentioned are still in D7 code
- there is no default value for adobeanalytics_track_roles: variable in adobeanalytics.settings.yml
- Please correct
'#open' => TUREin AdobeanalyticsAdminSettings.php- adobeAnalyticsTokenReplace() - this function does not has any return value in AdobeAnalyticsHelper.php
- adobeAnalyticsGetTokenContext() - this function does not return any value and its return value being used on line 51 in AdobeAnalyticsHelper.php
$context = !empty($variables) ? $this->adobeAnalyticsGetTokenContext() : array();One important thing
Can you please help us in the reviewing process and review at least 3 new projects from the issue queue. After reviewing 3 projects, you can add PAReview: review bonus tag.
Comment #4
manjit.singhManual Code review:
description: 'Adds Adobe Analytics javascript tracking code to your site''s pages.'Please correct the description in
adobeanalytics.info.ymlfunction adobeanalytics_helpdescription. I guess it should bereturn t("Settings for Adobe analytics");And Please add review bonusof your latest review of other project applications. This will speedup the review process of your application.
Comment #5
RavindraSingh commentedFunctionality issues:
Saving conf variables can be handled with good better way.
Example like (#1910694: system_settings_form() is replaced by \Drupal\Core\Form\ConfigFormBase):
Comment #6
panshulk commentedFixed Following Issues:
Also the JS code that is being added is adopted from the previous version of this module.
Comment #7
panshulk commentedComment #8
RavindraSingh commentedComment #9
RavindraSingh commented// $query_string = '?' . variable_get('css_js_query_string', '0');.
Remove commented code and debug code.
Proper documentation missing
/**
* Get the extra variable form with some conditions.
*/
Above mentioned small fixes are remaining. Please fix ASAP. module is ready to be RTBC after that.
Comment #10
panshulk commentedComment #11
panshulk commentedRemoved the Commented Code and improved the Documentation for the code.
Comment #12
panshulk commentedComment #13
RavindraSingh commentedAwesome - Reviewed the commit http://cgit.drupalcode.org/sandbox-panshulk1-2641758/commit/?id=9348fa5
Making this RTBC.
Comment #14
heykarthikwithuManual Code review:
1. In
template_preprocess_html(), the javascript is been embedded,It would be great if this would be added in better way.
2. In
admin/config/system/adobeanalytics, fields are taking whatever the input is given, IMO if validation is been implemented that would be great.Comment #15
gauravjeet commented@panshulk
Please review at least 3 other projects and feel free to mark it as Needs Review and adding a PAReview: review bonus issue tag to speed up the process.
Moving the status back to Needs Work for now.
Comment #16
klausi@gauravjeet: please only put applications to "needs work" if you did a code review and found blocking issues.
Comment #17
panshulk commentedComment #18
panshulk commentedThanks Gauravjeet for the Review. Working on Review of other modules till then changing the issue status to "Needs Review"
Comment #19
panshulk commentedComment #20
panshulk commentedComment #21
manjit.singhPlease add review bonus tag when will you are adding your manual reviews.
Moving it to RTBC (as per #13 and #16) as there is nothing that would be blocker for you application.
Comment #22
panshulk commentedThanks Manjit for the Updates
Comment #23
panshulk commentedComment #24
klausiproject page is empty, please describe your module at https://www.drupal.org/sandbox/panshulk1/2641758 , see https://www.drupal.org/node/997024
Comment #25
panshulk commentedThanks @Klausi for the updates :)
Added the project description - https://www.drupal.org/sandbox/panshulk1/2641758
Comment #26
klausimanual review:
The var_dump() is a blocker right now. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #27
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #28
panshulk commentedHi @Klausi
Thanks for the valuable review ! :)
Removed var_dump() from adobeanalytics_preprocess_html,
Removed $query_string (empty variable) from adobeanalytics.module,
Removed SafeMarkup from Adobeanalyticshelper.php and adobeanalytics.module,
Added comment in adobeanalytics.perissions.yml for restrict access property.
Working on fixing the error reported by Code Sniffer, till then changing the status to Needs Work.
Comment #29
panshulk commentedComment #30
panshulk commentedComment #31
klausiRemoving review bonus tag, you can add it again if you have done another 3 reviews of other projects. Please add them to the issue summary.
Comment #32
esolano commentedHi,
I noticed the use of dependency injection and adding AdobeAnalyticsHelper as a service, suggested by @Klausi in comment #26 (item 5), was missing.
I've implemented those changes; plus a few other PHP notice fixes on the generation of the header and footer javascript code.
Please review.
Regards,
Comment #33
esolano commentedHi,
I've been testing the module a little more; and I run into a possible issue. I saw something similar when I first checked the module, and included a few changes in my previous patch to fix that. But it now seems like this is something intentional. I wonder if this is by design, or if i'm just missing something.
I'm referring to the way some JS code gets printed on the page. In adobeanalytics.module, there's some code like this:
That would print something like this:
<script type="text/javascript" src="Array"></script>And I see the same pattern (['#plain_text' => $some_js_code]) several times; like for instance when adding Adobe Analytics custom variables. The code is in AdobeAnalyticsHelper.php:
Again, that will attempt to print an array instead of the custom variable name ($key).
and the following Notice shows up:
Please advice all this is by design, and how to print the correct JS code; or if this is in fact a bug that needs to be fixed.
Regards,
Comment #34
panshulk commented@esolano
Thank you for spending your valuable time on testing and debugging, apologies for the late response.
I am looking into the issue and will revert back ASAP :)
Comment #35
panshulk commentedComment #36
panshulk commentedComment #37
panshulk commentedComment #38
panshulk commentedComment #39
arun ak commentedStill the following issues mentioned in #26 is not fixed. Please fix these issues.
Thanks,
ARUN AK
Comment #40
klausiReview of the 8.x-1.x branch (commit bbd29de):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
And you should also fix the open points from above. Otherwise I think there are not critical application blockers left.
Assigning to Naveen as he might have time to take a final look at this.
Comment #41
naveenvalechaManual Review :
define('ADOBEANALYTICS_TOKEN_CACHE', 'adobeanalytics:tag_token_results');Use const instead of define as it is two times faster than define.// Fieldset changed to details in drupal 8.from AdobeanalyticsAdminSettings.php fieldsets are still there in d8 as well.Comment #42
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #43
kmoll commentedI've created an issue on the sandbox to address some of these issues and get the conversation going again on getting this module updated, #2825875: Fix issues outlined on port issue.
Comment #44
kmoll commentedComment #45
kmoll commentedI have taken the patch in #32 and updated it based on other feedback given here. There are still some issues with the module, but I feel we've removed the blockers for making this a project. If others feel that is the case, lets commit and make this a project and we can create issues to tackle the remaining problems.
Comment #46
kmoll commentedComment #47
kmoll commentedI moved the patch over to #2700715: D8 Port of Adobe Analytics (SiteCatalyst) to D8 since that is an issue on the sandbox project. Once that is reviewed and commited, we can look for the project review to happen again.
Comment #48
panshulk commentedComment #49
zeeshan_khan commentedMoving to RTBC as per https://www.drupal.org/node/2700715 fixes.
Comment #50
manjit.singhRTBC ++
Comment #51
naveenvalechaBack to N/W there were lot of blockers and improvements that I found. I have done that in the issue #2839812: Code improvements After that its good to go.
Comment #52
timmillwoodThere are some good suggestions in #2839812: Code improvements but I don't see any of them as a blocker for this being a full project. I'd be happy to see an alpha release with the current code, then follow ups to address these items before a beta release.
Comment #53
manjit.singhAwesome !! Thanks for working on it @Tim @Naveen
Comment #54
naveenvalechaAssigning to myself. will review it tonight. The module has existing bug #2831122: Add variable section of form does not work
// Naveen
Comment #55
kmoll commentedYes @naveenvalecha. There are still some bugs here that we are continuously working on. I don't believe the module needs to have a stable release for it to be accepted and created as a project, which is what this ticket is for I believe. I don't seen any blockers or any reason why the sandbox should not be promoted as a full project as we continue to work on bugs and get it to a stable release. There will only be a 8.x-1.x-dev version at first, but then we will release alpha/beta releases as we fix these issues.
Comment #56
naveenvalecha@kmoll,
I assigned myself for the second git admin review to review the code again b/c there were a couple of changes in the code from the last time when I review it. I'll be able to approve it after reviewing the code. See the process https://www.drupal.org/node/539608
you unassigned the issue from me, Do you want to fix the bugs first and then want to take the review ?
// Naveen
Comment #57
kmoll commented@Naveen, no the unassigned was unintentional, please assign it back to yourself and review when you have a moment. Thanks.
Comment #58
naveenvalechaReview of the 8.x-1.x branch (commit de54a8c):
Pareview.sh : https://pareview.sh/node/735
administer AdobeAnalytics configuration:Why restrict access true with administer permission ?
Rest looks good to me.
Here's the patch attached that fixed few of the above.
// Naveen
Comment #59
naveenvalechaComment #60
naveenvalechaThanks for your contribution, panshulk!
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 #61
panshulk commentedThanks @naveen for the fix and also for the promote access
Thanks all for the hard work and the valuable review, this came out as a good learning process :)
Promoting this to 8.x-1.x-dev version , so that we can work upon this to make it a bug-free module. :)