Part of meta-issue #2052421: [META] Rename Views properties to core standards

Properties to be changed:

- public $build_info
- public $current_page
- public $items_per_page
- public $total_rows
- public $attachment_before
- public $attachment_after
- public $exposed_data
- public $exposed_input
- public $exposed_raw_input
- public $old_view
- public $parent_views
- public $is_attachment
- public $current_display
- public $display_handler
- public $style_plugin
- public $row_index
- public $override_url
- public $override_path
- public $base_database
- public $exposed_widgets
- public $get_total_rows
- public $build_sort
- public $many_to_one_tables
- public $dom_id

Also, any other file that uses the properties of this class need to be updated, and merged into this issue.

Remaining Tasks

Answer #53

CommentFileSizeAuthor
#52 interdiff_51-52.txt5.12 KBAadhar_Gupta
#52 2083381-52.patch106.33 KBAadhar_Gupta
#50 2083381-50.patch112.71 KBakshaydalvi212
#48 2083381-48.patch36.18 KBakshaydalvi212
#46 2083381-nr-bot.txt144 bytesneeds-review-queue-bot
#40 2083381-40.patch307.36 KBHardik_Patel_12
#39 interdiff_36-39.txt2.88 KBvsujeetkumar
#39 2083381_39.patch306.43 KBvsujeetkumar
#38 2083381-38.patch309.59 KBSwapnil_Kotwal
#36 interdiff_34-36.txt844 bytesvsujeetkumar
#36 2083381_36.patch303.45 KBvsujeetkumar
#34 interdiff_32-34.txt6.32 KBvsujeetkumar
#34 2083381_34.patch302.89 KBvsujeetkumar
#32 2083381_32.patch296.67 KBvsujeetkumar
#26 interdiff-2083381-3-26.txt2.1 KBpguillard
#26 refactor-views-properties-2083381-26.patch294.7 KBpguillard
#26 interdiff-2083381-2-3.txt306.14 KBpguillard
#24 2083381-refactor-views-properties-3.patch294.74 KBchristophe.klein
#12 Screen Shot 2013-09-10 at 11.15.58.png72.19 KBmrsinguyen
#8 Rename-2083381-2.patch35.26 KBmrsinguyen
#2 Rename-2083381-1.patch36.65 KBmrsinguyen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrsinguyen’s picture

Title: In ClassName Rename Views properties to core standards » In ViewExecutable Rename Views properties to core standards
Status: Active » Needs work
mrsinguyen’s picture

Status: Needs work » Needs review
FileSize
36.65 KB

Status: Needs review » Needs work
Issue tags: -Novice, -VDC

The last submitted patch, Rename-2083381-1.patch, failed testing.

mrsinguyen’s picture

Status: Needs work » Needs review

#2: Rename-2083381-1.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Novice, +VDC

The last submitted patch, Rename-2083381-1.patch, failed testing.

mrsinguyen’s picture

See class ViewExecutable reuse many where need to find all dependency.

lokapujya’s picture

+++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php
@@ -2050,7 +2036,7 @@ public function getItem($display_id, $type, $id) {
-    $this->element =& $element;
+    $this->element = & $element;

this is wrong.

mrsinguyen’s picture

Status: Needs work » Needs review
FileSize
35.26 KB

Status: Needs review » Needs work

The last submitted patch, Rename-2083381-2.patch, failed testing.

lokapujya’s picture

Need to get the dependencies in other files too. For example there are some in core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php.

lokapujya’s picture

grep for each function name that was changed, there is probably more.

mrsinguyen’s picture

Yes, see more dependencies in other files, ex: core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, see attachment bellow

mrsinguyen’s picture

Issue summary: View changes

Updated issue summary.

lokapujya’s picture

Title: In ViewExecutable Rename Views properties to core standards » In Class ViewExecutable Rename Views properties to core standards
Issue summary: View changes

All places that use the properties from this class need to be updated. If they are covered by other issues, they should be rolled into this issue. But, this issue cannot be committed independently.

lokapujya’s picture

Issue summary: View changes
alexpott’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Needs work » Postponed
Parent issue: » #2052421: [META] Rename Views properties to core standards

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dawehner’s picture

Status: Postponed » Needs work

The parent is not longer postponed

christophe.klein’s picture

Assigned: mrsinguyen » christophe.klein
Issue tags: +DrupalDeveloperDays

Working on this at Drupal Developer Days Lisbon

christophe.klein’s picture

Issue tags: +DevDaysLisbon
christophe.klein’s picture

Assigned: christophe.klein » Unassigned
Status: Needs work » Needs review
FileSize
294.74 KB

Please review.
I could not make an interdiff file as the old patch does not apply properly.

Status: Needs review » Needs work

The last submitted patch, 24: 2083381-refactor-views-properties-3.patch, failed testing. View results

pguillard’s picture

You can do that using patchutils interdiff.

Added an interdiff and a new patch that should solve the remaining/failing test.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

vsujeetkumar’s picture

Assigned: Unassigned » vsujeetkumar
Status: Needs review » Needs work
Issue tags: +Needs reroll
vsujeetkumar’s picture

Assigned: vsujeetkumar » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
296.67 KB

Re-roll patch created for 9.1.x, Please review.

Status: Needs review » Needs work

The last submitted patch, 32: 2083381_32.patch, failed testing. View results

vsujeetkumar’s picture

Status: Needs work » Needs review
FileSize
302.89 KB
6.32 KB

Fixed Test, Please review.

Status: Needs review » Needs work

The last submitted patch, 34: 2083381_34.patch, failed testing. View results

vsujeetkumar’s picture

Status: Needs work » Needs review
FileSize
303.45 KB
844 bytes

Fixed More Tests, Please review.

Status: Needs review » Needs work

The last submitted patch, 36: 2083381_36.patch, failed testing. View results

Swapnil_Kotwal’s picture

vsujeetkumar’s picture

Status: Needs work » Needs review
FileSize
306.43 KB
2.88 KB

Fixed more tests, Please review.

Hardik_Patel_12’s picture

Last patch is failed to apply , kindly review a patch.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

akshaydalvi212’s picture

Assigned: Unassigned » akshaydalvi212

hey,
I will work on this issue.

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Status: Needs work » Needs review
FileSize
36.18 KB

Patch created for 10.1.x.
Kindly review.

akshaydalvi212’s picture

Assigned: Unassigned » akshaydalvi212
Status: Needs review » Needs work
akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
FileSize
112.71 KB

Fixed the issues.
Kindly review

adeshsharma’s picture

Status: Needs work » Needs review
FileSize
151.42 KB
91.34 KB
Aadhar_Gupta’s picture

Trying to fix all the errors coming in patch on #50

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

Thanks everyone for all the interest.

Okay the file sizes go from

307
36
112
151
106

With no explanation why. What happened to the bulk of the changes in #40? Were they already completed? Module removed? This should be documented.

Am removing credit for bad rerolls as it's expected to check your code before uploading. You can check for build errors make sure to run ./core/scripts/dev/commit-code-check.sh before uploading a patch to make sure there are no issues with code formatting. see https://www.drupal.org/docs/develop/development-tools/running-core-devel...

Starting March 2023, simple rerolls, rebases, or merges will no longer receive issue credit. Only rerolls that address a merge conflict will be credited, and the merge conflict that was resolved must be documented in the text of an issue comment.

Example
error: patch failed: core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module:77
error: core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module: patch does not apply

To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback.
See the issue credit guidelines for more information.

smustgrave’s picture

Issue summary: View changes
Issue tags: +Needs issue summary update

Tagging for issue summary for the open questions

quietone’s picture

Assigned: Unassigned » quietone
Status: Needs work » Postponed
Issue tags: +Coding standards

This is a coding standards issue, tagging as such. Coding standard

In order to fix core coding standards in a maintainable way, all our coding standards issues are done on a per-rule basis across all of core, rather than fixing standards in individual modules or files. If you are interested in working on coding standards issues, go to #3319843: [Meta] Fix coding standards in core and select an existing issue.

@akshaydalvi212, @adeshsharma and @Aadhar_Gupta, Thanks for the interest in improving Drupal coding standards! I have looked at the patches and as we can see from the test results, there are multiple errors. For the failing the pre commit checks see Run core development checks locally before submitting a change. This will avoid noise on the issue and allow us to focus on what is being fixed. I also recommend reading the Drupal Contributor Guide as recommended in #46.

Assigning to myself.

quietone’s picture

This is a coding standard fix and they are now done by sniff, not file. See #3346468: [meta] Fix Drupal.NamingConventions.ValidVariableName.LowerCamelName

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.