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.
This module is a set of PHP, JavaScript, and CSS files that extends site features and adds functionality to plot chart. You can turn the features and functionality on by installing the module, Pankm chart module enables to draw a chart based on the uploaded CSV file.
Also, there are some options to Copy Link, Print the page and get the Embedded code of the chart.
Project link
https://www.drupal.org/sandbox/rahuljohnson/3065146.
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/sandbox/RahulJohnson-3065146.git pankm_chart
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-sandbox-rahuljohnson-3...
Comment | File | Size | Author |
---|---|---|---|
#37 | Screenshot_17.png | 82.8 KB | phthlaap |
#37 | Screenshot_16.png | 46.05 KB | phthlaap |
#31 | Screenshot at Aug 24 09-02-38.png | 160.63 KB | phthlaap |
#31 | Screenshot at Aug 24 08-47-32.png | 103.75 KB | phthlaap |
PanKM_Chart.png | 82.92 KB | Rahulmon Johnson |
Comments
Comment #2
klausiThanks for your contribution!
Otherwise looks good to me!
Comment #3
Rahulmon JohnsonComment #4
apadernoThank you for applying! I added the Git instructions for non-maintainer users and the PAReview checklist link. Reviewers will check the project and post comments to list what should be changed.
If you haven't done it, yet, please check the PAReview report and fix what needs to be fixed. There could be some false positives; verify that what reported is correct, before making any change.
In particular, the following points need to be fixed.
Comment #5
Rahulmon JohnsonBranch git
Comment #6
apaderno8.x-1.1 is a tag name, not a branch name; a branch name would eventually be 8.x-1.x.
Comment #7
Rahulmon JohnsonThank you.
The branch name changed.
git clone --branch 8.x-1.x git@git.drupal.org:sandbox/RahulJohnson-3065146.git
Comment #8
VernitThanks for the contribution.
I am seeing few warnings in the PAReview checklist. You may want to resolve those.
https://pareview.sh/pareview/https-git.drupal.org-sandbox-rahuljohnson-3...
Comment #9
Rahulmon JohnsonThanks for your feedbacks.
The PAReview errors fixed. Please review.
The test cases are not mandatory. Is it right?
Comment #10
Rahulmon JohnsonComment #11
vuilThank you for the contribution!
About Tests: Yes, you are right.
I have not found any security related issues into the code.
Comment #12
apadernoComment #13
klausiI think wrong git branch names were not application blockers, so this can go back to RTBC straight away.
Comment #14
apadernoWhat we review in these application didn't change.
The purpose of these applications is checking what the users understand about using the Drupal API, how to correctly use them, how to write secure code, and what they understand of what reported in the reviews. It's wrong to directly set an application as reviewed when there are changes to be done in the code. It's also wrong to mark it as reviewed when the OP doesn't seem to understand what reported in a review.
Comment #15
klausiThe branch name has been fixed and all other issues as well, all looking good to me!
Comment #16
apadernoSee comment #4.
Comment #17
klausiCould you repeat again what points from #4 are still left to do? It seems to me they have all been addressed.
Comment #18
Rahulmon JohnsonComment #19
apadernoThere have not been commits, in the last 30 days.
Comment #20
Rahulmon JohnsonHi,
Thank you.
The PARview (https://pareview.sh/pareview/https-git.drupal.org-sandbox-rahuljohnson-3...) not showing any errors.
The test cases are an optional one. (Comment #11).
Please advise if I should do something differently.
Comment #21
Rahulmon JohnsonComment #22
apadernoSee comment #4.
Comment #23
klausi@kiamlaluno: Could you repeat again what points from #4 are still left to do? It seems to me they have all been addressed.
Comment #24
klausiComment #25
vuilComment #26
vuilPlease replace the deprecated functions, classes, etc.:
Comment #27
apadernoThe indentation is also wrong on the lines initializing a variable. The coding standards don't say they must be all aligned.
Comment #28
Rahulmon Johnson#26, Got it, Please let me look into it.
Comment #29
Rahulmon JohnsonHello,
Thanks for the feedback.
Reported issues in #26, fixed.
[OK] No errors
git clone --branch 8.x-1.x git@git.drupal.org:sandbox/RahulJohnson-3065146.git
Comment #30
Rahulmon JohnsonComment #31
phthlaap CreditAttribution: phthlaap as a volunteer and commented1. Please remove the loop with empty body:
2. Please check again the attached drupalSettings in pankm_chart_page_attachments hook. Can we move it into pankm_chart_preprocess_page
Comment #32
apadernoThe indentation is also wrong on the lines initializing a variable. The coding standards don't say they must be all aligned.
Comment #33
Rahulmon Johnson@phthlaap,
Thank you. The reported changes are applied. Please review.
@kiamlaluno,
Hi,
I checked the code with the PHP Codesniffer. But no indentation issues are found. Could you please help me?
Comment #34
Rahulmon JohnsonComment #35
apadernoSee the code used from Drupal core. The equal characters on lines initializing variables aren't aligned, when there are multiple lines initializing a variable.
Comment #36
Rahulmon Johnson@kiamlaluno,
Thank you very much. Now I got the issue.
And the indentation issues are fixed. Please review.
Comment #37
phthlaap CreditAttribution: phthlaap as a volunteer and commentedThank you for fixing the issues.
Could you please take a look some points below:
1. Is the pankm_chart/iframe-styling need to include for all page?
2. All JavaScript code MUST be declared inside a closure wrapping the whole file, see this link.
I'm not sure this is a JavaScript coding standard issue or Not. Hi @kiamlaluno, Could you please help to take a look to this point.
Comment #38
Rahulmon Johnson@phthlaap,
1. Is the pankm_chart/iframe-styling need to include for all page?
-> Yes.
iframe-styling
is using for the embedded part of the chart. So, the embedded code can add anywhere on the site according to the user.Comment #39
Rahulmon JohnsonComment #40
klausiComment #41
klausiOtherwise looks good to me.
Comment #42
phthlaap CreditAttribution: phthlaap as a volunteer and commentedComment #43
klausi@phthlaap anything that still needs to be done here? Please don't change the status without comment.
Comment #44
Rahulmon JohnsonThank you very much. Please let me know the next step of this application.
Comment #45
phthlaap CreditAttribution: phthlaap as a volunteer and commentedHow about your comments in #41
No need any action for the 2 points above?
Comment #46
phthlaap CreditAttribution: phthlaap as a volunteer and commentedComment #47
klausiAh yes, sorry. Those are "nice to have" improvements, but not application blockers as they are not security issues.
Comment #48
apadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.
I thank all the dedicated reviewers as well.