I create module Views Table Rowspan. This module defines new views display format name "Table Rowspan" that group rows in table and merge row has same value to one row use property rowspan.
Help me to review it!
Project infomation
- Link to PAReview result.
- Link to sanbox project page.
- Link to screenshot
- Git clone command: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/howto/2300969.git views_table_rowspan
There are some errors and warning from PAReview result, but i can't fix because that errors related to views coding standards.
Eg: "views_plugin_display_table_rowspan::option_definition" is not in lowerCamel format, it must not contain underscores
Reviews of other projects
- https://www.drupal.org/node/2287461#comment-8972327
- https://www.drupal.org/node/2295491#comment-8972205
- https://www.drupal.org/node/2301411#comment-8972125
- https://www.drupal.org/node/2307995#comment-8992209
- https://www.drupal.org/node/2304891#comment-8988071
- https://www.drupal.org/node/2313617#comment-9023587
Usage
- Create a new view (eg: a list of node).
- Set format Table Rowspan for this view.
- Add some field to this view.
- Group field that has same value.
- Check option "Merge rows in group".
Demo
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | Nodes_views_table_rowspan.png | 50.3 KB | howto |
| #24 | Code review (submitted options).png | 111.85 KB | howto |
| #22 | Table rowspan.png | 31.92 KB | joris_lucius |
| Nodes-Views-Table-Rowspan.png | 47.23 KB | howto |

Comments
Comment #1
howto commentedComment #2
howto commentedComment #3
prafullmathur commentedAutomated report from pareview.sh
FILE: ...view/pareview_temp/views/plugins/views_plugin_display_table_rowspan.inc
--------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
8 | ERROR | Class name must begin with a capital letter
8 | ERROR | Class name must use UpperCamel naming without underscores
15 | ERROR | Method name
| | "views_plugin_display_table_rowspan::option_definition" is not in
| | lowerCamel format, it must not contain underscores
15 | ERROR | Visibility must be declared on method "option_definition"
25 | ERROR | Method name "views_plugin_display_table_rowspan::options_form" is
| | not in lowerCamel format, it must not contain underscores
25 | ERROR | Visibility must be declared on method "options_form"
41 | ERROR | Method name
| | "views_plugin_display_table_rowspan::render_grouping_sets" is not
| | in lowerCamel format, it must not contain underscores
41 | ERROR | Visibility must be declared on method "render_grouping_sets"
67 | ERROR | Type hint "array" missing for $sets
67 | ERROR | Method name
| | "views_plugin_display_table_rowspan::get_colspan_rows" is not in
| | lowerCamel format, it must not contain underscores
67 | ERROR | Visibility must be declared on method "get_colspan_rows"
98 | ERROR | Type hint "array" missing for $set
98 | ERROR | Method name
| | "views_plugin_display_table_rowspan::_get_deepest_row" is not in
| | lowerCamel format, it must not contain underscores
98 | ERROR | Visibility must be declared on method "_get_deepest_row"
--------------------------------------------------------------------------------
Please fix this issue and then check your module on pareview.sh .
Whenever above issue is done i will check again.
Thanks for Contribution.
Comment #4
howto commentedHi prafullmathur.
Thank for your reply.
I know these issues clearly but there are some reasons why these issues can not be fixed.
Line 8
8 | ERROR | Class name must begin with a capital letter
8 | ERROR | Class name must use UpperCamel naming without underscores
==> Class views_plugin_display_table_rowspan extends views_plugin_style_table (define in module Views) so i should use lowercase.
Line 15
15 | ERROR | Method name
| | "views_plugin_display_table_rowspan::option_definition" is not in
| | lowerCamel format, it must not contain underscores
15 | ERROR | Visibility must be declared on method "option_definition"
==> class views_plugin_display_table_rowspan overwrite method option_definition() from parent class views_plugin_style_table, so it must has same name with method in parent class.
Line 25
25 | ERROR | Method name "views_plugin_display_table_rowspan::options_form" is
| | not in lowerCamel format, it must not contain underscores
25 | ERROR | Visibility must be declared on method "options_form"
==> class views_plugin_display_table_rowspan overwrite method options_form() from parent class views_plugin_style_table, so it must has same name with method in parent class.
Line 41
41 | ERROR | Method name
| | "views_plugin_display_table_rowspan::render_grouping_sets" is not
| | in lowerCamel format, it must not contain underscores
==> class views_plugin_display_table_rowspan overwrite method render_grouping_sets() from parent class views_plugin_style_table, so it must has same name with method in parent class.
Line 67
67 | ERROR | Protected method name
| | "views_plugin_display_table_rowspan::get_colspan_rows" is not
| | in lowerCamel format, it must not contain underscores
==> I think this method name should be in lowercase like other methods in this class.
Line 98
Type hint "array" missing for $set
==> What is wrong with this line? I don't how to fix it. Please give me a solution.
Please see code in module views: http://cgit.drupalcode.org/views/tree/plugins/views_plugin_style_table.i...
Comment #5
howto commentedComment #6
gwprod commentedPlease make sure that your commits are on the 7.x-1.x branch, that that is the default branch (In Sandbox Project > Version Control) and that Master is deleted.
Comment #7
howto commentedComment #8
howto commentedhi gwprod,
My commits are on the 7.x-1.x branch and branch Master is deleted.
Please see this: https://www.drupal.org/node/2300969/git-instructions/7.x-1.x
Comment #9
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 #10
joachim commentedThis looks very similar to a project I created, https://www.drupal.org/project/views_grouped_table.
If they are indeed providing the same or similar features, I'd be very happy to make you a co-maintainer.
Comment #11
gwprod commentedYour git clone command
Is a personal git clone command, and should be updated to the general purpose command.
Comment #12
howto commentedhi gwprod,
Thank you very much.
I updated my git clone command.
Comment #13
howto commentedhi joachim,
Thank for your recommendation. I walk through your module and find that my module (Views Table Rowspan) and your module (Views Grouped Table) have some key differences:
With these keys differences, i think it should be a new project.
and I'm very happy to be your co-maintainer in module Views Grouped Table. I see it 's maintenance status is "Seeking co-maintainer(s)".
Comment #14
mrsinguyen commentedLook good, I'd like this module available in full project.
Comment #15
howto commentedComment #16
howto commentedAdd PAReview: review bonus tag.
Comment #17
howto commentedComment #18
ratanphp commented@howto
Your module looks good to me as well. As I reviewed your code and also installed on my local machine.
Suggestion
Please add
hook_helpfunction to .module file.Comment #19
howto commented@atanphp
Thank for your suggestion. I added hook_help() to my module.
Comment #20
pingwin4eg@howto
You should really join @joachim in his existing project https://www.drupal.org/project/views_grouped_table.
Create an issue in that project issue queue with the title "Applying for commit access" and describe your motivation. Read Joining forces with others and co-maintaining projects and related docs for more information.
If this is an option, then this issue should be closed or at least postponed, so project application reviewers won't spend time to review this sandbox.
Comment #21
howto commentedhi pingwin4eg,
As i explain in comment #13, this module (Views Table Rowspan) has two key differences to module Views Grouped Table. So, i think it should be new separate project.
Please give me some persuasive reasons if you think it should be merged to module Views Grouped Table
Comment #22
joris_luciusReview of the 7.x-1.x branch
[D7] Views Table Rowspan
Functional testing:
PAReview:
Coder review (using the minor (most) option to see everything.
Comment #23
pingwin4eg@joris_lucius
About views/plugins/views_plugin_display_table_rowspan.inc: this class inherits Views native plugin declaration, so it is OK to be an exception from the coding standard rule.
As for results of testing, you should had set issue status to Needs work.
Comment #24
howto commented@ joris_lucius, pingwin4eg
Thank for your review.
The result from PAReview shoud be an exception from the coding standard rule because of views core as i explained in comment #4
I just update my code to fix this issue from coder review
I use coder review from my local machine (using the minor (most)) but there are no other error (see my screenshot). So, could you please tell me your colder review version and it's plugins?
Line 11: Docblock should be immediately above views_table_rowspan_help
This function already has a block comment immediately above it.
http://cgit.drupalcode.org/sandbox-howto-2300969/tree/views_table_rowspa...
Line 30: Docblock should be immediately above views_table_rowspan_views_api
This function already has a block comment immediately above it.
http://cgit.drupalcode.org/sandbox-howto-2300969/tree/views_table_rowspa...
Line 40: Docblock should be immediately above
This function already has a block comment immediately above it.
http://cgit.drupalcode.org/sandbox-howto-2300969/tree/views_table_rowspa...
Line 49: Docblock should be immediately above views_table_rowspan_proprocess
This function already has a block comment immediately above it.
http://cgit.drupalcode.org/sandbox-howto-2300969/tree/views_table_rowspa...
I retested my module. I has problem as you mention.
I update my code to resolve this issue. Please update your code and retest it. Please tell me if there are any problems.
Thank you.
I added demo link in my project page.
Comment #25
howto commentedComment #26
howto commentedComment #27
klausiGit default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit 967e76c):
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:
But that are not critical application blockers, 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 patrickd as he might have time to take a final look at this.
Comment #28
howto commented@klausi
Thank for your review.
I updated my project and project page to fix some errors that you report.
yes, it is a typo error.
I'm reviewing other projects to get review bonus tag.
Comment #29
howto commentedComment #30
howto commentedI add review bonus tag again.
Comment #31
patrickd commentedHidiho, let's see if I can still do this :)
Default branch wasn't set, I set it to 7.x-1.x (https://www.drupal.org/node/2300969/edit/default-branch)
#1
#2
I'd recommend not to put link URLs into the t() function, this can cause complications with translations. Use @url placeholder instead.
#3
version = 7.x-1.0-devdont't set the version in your .info file, when you create a release later the drupal.org packaging system will set it automaticallyI did no functional testing, but this looks good enough to me regarding best practices.
Thanks for your contribution!
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 #32
howto commented@patrickd
Thank for your final review.
I fixed some errors that you reported and promote it to a full project.
Now, it is a full project.
https://www.drupal.org/project/views_table_rowspan
Thank all reviewers and friends.