Because we can, and I had some time to kill on the train this morning with not much else to do...

Comments

Status: Needs review » Needs work

The last submitted patch, vdc.replace-deprecated-functions.patch, failed testing.

dawehner’s picture

Impressive work. +1 subscribe

longwave’s picture

Status: Needs work » Needs review
StatusFileSize
new156.63 KB
new5.77 KB

Fixed the test fail and cleaned up some more uses of deprecated functions.

I also noticed there are some other apparently unused functions such as views_process_check_options(), views_get_view_result() and views_ui_load() but I guess removing these should be outside the scope of this issue?

longwave’s picture

Posted #2208893: Remove unused functions from Views as a followup to the above

damiankloip’s picture

Yes this was intended to just remove what is already marker as deprecated. So that follow up issue is good.

damiankloip’s picture

Thanks longwave. Nice tidy, tests pass. I think this is ok. Let's let dawehner RTBC.

longwave’s picture

Could we actually remove the deprecated functions here as well? All we would need is a few more lines in the patch, and a change notice?

damiankloip’s picture

I spoke to alexpott about these things and he has a preference to not do both in the same patch. This is why they were intentionally not in the initial patch.

Just in case any other patches we don't know about sneak in etc.. As one last safe guard to not breaking HEAD I guess :)

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

On the longrunt it would be great to rewrite the Views helper to be properly injectable, but this is for sure out of scope of this issue

+++ b/core/modules/views/tests/Drupal/views/Tests/Plugin/display/PathPluginBaseTest.php
@@ -281,13 +281,3 @@ protected function setupViewExecutableAccessPlugin() {
-}
-
-namespace {
-  if (!function_exists('views_get_enabled_display_extenders')) {
-    function views_get_enabled_display_extenders() {
-      return array();
-    }
-  }
-}

<3

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

2208165-views-replace-deprecated-3.patch no longer applies.

error: patch failed: core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php:186
error: core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php: patch does not apply

longwave’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new156.95 KB

Rerolled, parts of DisplayTest moved to DisplayTestCRUD.

damiankloip’s picture

Status: Needs review » Reviewed & tested by the community

Annnnd back.

catch’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 11: 2208165-views-replace-deprecated-11.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new156.96 KB

pure git reroll.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.