Closed (fixed)
Project:
Salesforce Marketing Cloud API Integration
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2018 at 13:30 UTC
Updated:
27 May 2018 at 06:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bhanuprakashnani commentedComment #3
bhanuprakashnani commentedAfter going through the pareview.sh errors. I found out the Drupal dependencies errors. I solved all of them and made a patch. Please review and mention if any more changes are to be made. I'll be sending patches regarding the other errors too as soon as possible. Thank you.
Comment #4
john_a commentedMany thanks bhanuprakashnani! I'll go through your patch asap.
Comment #5
bhanuprakashnani commentedThis patch takes care of the errors regarding changing the syntax from t() to $this->t(). Please review and mention if any more changes are to be made. Thank you.
Comment #6
bhanuprakashnani commentedThis patch consists of the short array syntaxes. I have changed all the syntaxes of the array to short array. Please review and mention if any more changes are to be made. Thank you.
Comment #7
bhanuprakashnani commentedThis patch includes the correction of line break of 80 characters in the README.d file. Please review and mention if any more changes are to be made. Thank you.
Comment #8
bhanuprakashnani commentedPlease let me know what else is to be changed. I am interested in helping through this errors. Thank you.
Comment #9
bhanuprakashnani commentedThis patch takes care of the @file tag doc blocks. I have removed all of them as per their Drupal standards. Please review and mention if any more changes are to be made. Thank you.
Comment #10
john_a commentedBhanuprakashnani,
Apologies for the delay in responding. I was totally smashed by work recently. I'm checking through your patches now. Many thanks!
Comment #14
john_a commentedHi Bhanuprakashnani,
I have an update to #5: there was an additional drupal_message() that was using a string literal, without the translate function. I have not addressed the "Only string literals should be passed to t() where possible" warnings, because the translate config items. These are not really a problem, IMO.
Could you please review the new patch.
Comment #17
john_a commentedHi Bhanuprakashnani,
I am unable to apply patches:
In addition, your readme patches overrode the title levels to all h1. Please maintain the title hierarchy (unless I have made mistakes)
The following patches have been applied:
Many thanks
Comment #18
bhanuprakashnani commentedI did not get any commit credit for the commit messages above. Will I be getting once the issue is fixed or should I be getting it now itself. Please let me know. Thank you.
Comment #19
john_a commentedhi Bhanuprakashnani,
I credited you in both commits:
What was ommitted?
Comment #20
bhanuprakashnani commentedYeah I saw that u committed it. But my doubt was shouldnt i be getting the name of this module under my commits? I dont see it in my commit list.
Comment #21
john_a commentedHi Bhanuprakashnani,
I think that can only happen if you perform commit from your machine, as your user. Because I did the merge and commit from my machine, the commit is shown as done by me. see https://www.drupal.org/node/711070:
I am happy to add you as a co-maintainer, if you want to perform your own commits,
Comment #22
bhanuprakashnani commentedThank you so much. I would be very happy to be a co-maintainer and contribute to this module. Please give me the permissions for it. I ll do my best in developing the module through my contributions.
Comment #23
bhanuprakashnani commentedAnd I will send the other patches again correcting the errors. Thank you for the support.
Comment #24
john_a commentedNo problem, you've been added as a VCS contributor. I've updated the main branch to 8.x-1.x (it was the rc1 branch, which was incorrect). This is probably what caused you patches to fail before (I think your patches were from the rc1 branch).
.
Comment #25
bhanuprakashnani commentedThank you so much. Tell me how can I be of help to develop this module. Will always step forward to learn new things and work for it.
Comment #26
bhanuprakashnani commentedMade the patch again. Please check it.
Comment #27
bhanuprakashnani commentedIf I want to commit it. What is the process? Can u please let me know?
Comment #28
john_a commentedHi Bhanu,
I couldn't apply the patch again. I'm jot sure why this is. Doing a verbose apply showed that the issue was at line 37 - the first set of indentations. Could you make sure that you do not have tab characters enables in your editor? I doubt that's the cause, but it's the only thing I can think of at the moment.
I've made a commit to 8.1-1.x and merged those changes into your dev branch for this ticket. Please make sure you do a git pull. I've also made a patch myself, can you see if you can apply it to a checkout of your branch? If that fails, there must be something else going on. Assuming it works, please review it and make any changes you see need making. Also, please leave the titles with the '#' style not '-', this is a better standard because it allows for > 2 sub-title levels.
Comment #29
john_a commentedRe your questions about committing, Git workflow:
Please make sure that you read https://www.drupal.org/node/711070, https://www.drupal.org/node/52287.
I have made a few changes to the project, so that we follow drupal.org standards more closely.
8.1-1.x is our master branch.
8.1-1.x-dev is out dev branch.
You should create feature branches from the dev branch for each ticket.
When we're happy with the changes in the feature, you can merge your feature branch into dev and then delete your feature branch from the remote.
I will merge dev into master and make a tag & release when we are ready for the next release.
If you need any help or advice with git and git workflow, just ask, no problem.
Comment #30
john_a commentedComment #31
bhanuprakashnani commentedThank you so much. Very happy to work with you. I ll ask you whenever I have some queries.
Comment #32
john_a commented8.x-1.x-dev now has the following issues:
The remaining issue are the service classes, where the short description is lifted directly from the Salesforce documentation, to prevent confusion. IMO, an acceptable breach of warnings.
The other issue (marketing_cloud_assets/README.md: Expected 1 newline at end of file; 0 found) will be resolved in #2974148 (README.md files required for all base and sub modules).
Comment #33
john_a commentedClosing this ticket, because reported issues have been resolved, apart from dependency injection warnings (I feel this is a false negative), and lines > 80 chars (these are short descriptions, as supplied by SF, and should be kept the same to prevent any confusion).
Any further code sniffer warnings can be assigned their own tickets,
Comment #34
john_a commented