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.
Part of meta-issue #1856630: [Change notice] [META] Rename Views methods to core standards
Comment | File | Size | Author |
---|---|---|---|
#34 | views-Rename_Views_method_add_groupby_to_addGroupBy-2001320-27.patch | 2.81 KB | pwieck |
#26 | views-addGroupBy-2001320-26.patch | 4.6 KB | chrisguindon |
#23 | views-addGroupBy-2001320-23.patch | 4.59 KB | chrisguindon |
#16 | views-addGroupBy-2001320-16.patch | 4.59 KB | zschmid |
#11 | views-groupby-rename.patch | 4.04 KB | zschmid |
Comments
Comment #1
dawehnerThank you for helping out here.
There is also add_groupby on the search module integration (you missed that).
While we are here we should mark the method as "public"
Comment #2
zschmid CreditAttribution: zschmid commentedWorking on a patch for renaming on search module integration
Comment #3
adamdicarlo CreditAttribution: adamdicarlo commented@zschmid Please assign this to yourself and update http://core.drupalofficehours.org/node/2711/edit to indicate that you're working on this (add new attempt, set to "Work in progress").
Comment #4
awakash CreditAttribution: awakash commentedPatch works, methods names changed.
Is there a standard for variable names?
Comment #5
zschmid CreditAttribution: zschmid commented- Submitting patch for search module integration and making groupBy function public. I included the previous changes in the patch as well.
Comment #6
zschmid CreditAttribution: zschmid commentedComment #7
sassafrass CreditAttribution: sassafrass commentedApplied patch successfully and did some cursory unit testing of addGroupby() function.
Comment #8
adamdicarlo CreditAttribution: adamdicarlo commentedI'm not sure why the method was originally called add_groupby() instead of add_group_by(), but it should become addGroupBy() now, not addGroupby(). "Groupby" isn't a word (nor is it an SQL keyword).
Comment #9
adamdicarlo CreditAttribution: adamdicarlo commented[accidental duplicate post]
Comment #10
adamdicarlo CreditAttribution: adamdicarlo commentedWhoops.
Comment #11
zschmid CreditAttribution: zschmid commentedFixed!
Comment #12
zschmid CreditAttribution: zschmid commentedSorry for the duplicate patch upload - they're both identical.
Comment #13
aspilicious CreditAttribution: aspilicious commented#11: views-groupby-rename.patch queued for re-testing.
Comment #14
dawehnerComment #15
alexpottThis function is referenced in the following comment in
/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php
The entire comment should be removed as it is pre-views in core.
Comment #16
zschmid CreditAttribution: zschmid commentedupdated patch removing comment block
Comment #17
danylevskyiComment #18
somepal CreditAttribution: somepal commentedconsidering all the suggestions in comments, #16 views-addGroupBy-2001320-16.patch looks good.
Comment #19
webchickSorry, no longer applies!
Comment #20
ajwn CreditAttribution: ajwn commentedComment #21
joelpittetNice work @zschmid, thank you for the patches:) So this should only need a re-roll.
Instructions here: http://drupal.org/patch/reroll
@digitalpulse I'm un-assigning you for now but if you happen to get around to the re-roll, please assign yourself again.
Comment #22
chrisguindon CreditAttribution: chrisguindon commentedComment #23
chrisguindon CreditAttribution: chrisguindon commentedAttaching a reroll of Comment #16, views-addGroupBy-2001320-16.patch.
Comment #24
chrisguindon CreditAttribution: chrisguindon commentedComment #26
chrisguindon CreditAttribution: chrisguindon commentedFix to my previous reroll.
Comment #28
chrisguindon CreditAttribution: chrisguindon commented#26: views-addGroupBy-2001320-26.patch queued for re-testing.
Comment #30
chrisguindon CreditAttribution: chrisguindon commentedI am not sure why this is failing.
I had 1 fail after the first test attempt so I added the patch to the queue for re-testing and now I am getting 65 fail(s).
Comment #31
joelpittet#26: views-addGroupBy-2001320-26.patch queued for re-testing.
Comment #33
aspilicious CreditAttribution: aspilicious commented#26: views-addGroupBy-2001320-26.patch queued for re-testing.
Comment #34
pwieck CreditAttribution: pwieck commentedRe-roll
Comment #35
chrisguindon CreditAttribution: chrisguindon commentedPatch from #26 is now passing all the test.
Patch from #34 is missing the request from #15 to remove:
Comment #36
aspilicious CreditAttribution: aspilicious commented26!! is rtbc
Comment #37
joelpittetThat's what I thought:) nice work @chrisguindon!
#26 is good to go.
Comment #38
alexpottCommitted 9ce3e06 and pushed to 8.x. Thanks!