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
Comment | File | Size | Author |
---|---|---|---|
#52 | interdiff_51-52.txt | 5.12 KB | Aadhar_Gupta |
#52 | 2083381-52.patch | 106.33 KB | Aadhar_Gupta |
#50 | 2083381-50.patch | 112.71 KB | akshaydalvi212 |
#48 | 2083381-48.patch | 36.18 KB | akshaydalvi212 |
#46 | 2083381-nr-bot.txt | 144 bytes | needs-review-queue-bot |
Comments
Comment #1
mrsinguyen CreditAttribution: mrsinguyen commentedComment #2
mrsinguyen CreditAttribution: mrsinguyen commentedComment #4
mrsinguyen CreditAttribution: mrsinguyen commented#2: Rename-2083381-1.patch queued for re-testing.
Comment #6
mrsinguyen CreditAttribution: mrsinguyen commentedSee class ViewExecutable reuse many where need to find all dependency.
Comment #7
lokapujyathis is wrong.
Comment #8
mrsinguyen CreditAttribution: mrsinguyen commentedComment #10
lokapujyaNeed 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.
Comment #11
lokapujyagrep for each function name that was changed, there is probably more.
Comment #12
mrsinguyen CreditAttribution: mrsinguyen commentedYes, see more dependencies in other files, ex: core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, see attachment bellow
Comment #12.0
mrsinguyen CreditAttribution: mrsinguyen commentedUpdated issue summary.
Comment #13
lokapujyaAll 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.
Comment #14
lokapujyaComment #15
alexpott#2052421: [META] Rename Views properties to core standards has been postponed
Comment #21
dawehnerThe parent is not longer postponed
Comment #22
christophe.klein CreditAttribution: christophe.klein at Actency commentedWorking on this at Drupal Developer Days Lisbon
Comment #23
christophe.klein CreditAttribution: christophe.klein at Actency commentedComment #24
christophe.klein CreditAttribution: christophe.klein at Actency commentedPlease review.
I could not make an interdiff file as the old patch does not apply properly.
Comment #26
pguillard CreditAttribution: pguillard commentedYou can do that using patchutils interdiff.
Added an interdiff and a new patch that should solve the remaining/failing test.
Comment #31
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commentedComment #32
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commentedRe-roll patch created for 9.1.x, Please review.
Comment #34
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commentedFixed Test, Please review.
Comment #36
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commentedFixed More Tests, Please review.
Comment #38
Swapnil_Kotwal CreditAttribution: Swapnil_Kotwal at Asentech LLC commentedComment #39
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commentedFixed more tests, Please review.
Comment #40
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedLast patch is failed to apply , kindly review a patch.
Comment #46
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe 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.
Comment #47
akshaydalvi212 CreditAttribution: akshaydalvi212 at QED42 for Drupal India Association commentedhey,
I will work on this issue.
Comment #48
akshaydalvi212 CreditAttribution: akshaydalvi212 at QED42 for Drupal India Association commentedPatch created for 10.1.x.
Kindly review.
Comment #49
akshaydalvi212 CreditAttribution: akshaydalvi212 at QED42 for Drupal India Association commentedComment #50
akshaydalvi212 CreditAttribution: akshaydalvi212 at QED42 for Drupal India Association commentedFixed the issues.
Kindly review
Comment #51
adeshsharma CreditAttribution: adeshsharma at OpenSense Labs for DrupalFit commentedComment #52
Aadhar_Gupta CreditAttribution: Aadhar_Gupta at OpenSense Labs for DrupalFit commentedTrying to fix all the errors coming in patch on #50
Comment #53
smustgrave CreditAttribution: smustgrave at Mobomo commentedThanks 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.
Comment #54
smustgrave CreditAttribution: smustgrave at Mobomo commentedTagging for issue summary for the open questions
Comment #55
quietone CreditAttribution: quietone at PreviousNext commentedThis 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.
Comment #56
quietone CreditAttribution: quietone at PreviousNext commentedThis is a coding standard fix and they are now done by sniff, not file. See #3346468: [meta] Fix Drupal.NamingConventions.ValidVariableName.LowerCamelName