Download & Extend

[Change notice] Change 'human_name' to 'label' and replace View::getHumanName() with View::label()

Project:Views
Version:8.x-3.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Needs change notification, VDC

Issue Summary

Similar to #1757564: Change 'name' to 'id' on View entity, we should bring Views inline with the standard entity keys naming.

Comments

#1

Assigned to:Anonymous» dawehner
Status:active» postponed

Working on that once the other issue is in, as this would clash in a lot of places.

#2

Status:postponed» needs review

Let's see.

AttachmentSizeStatusTest resultOperations
drupal-1888390-2.patch57.96 KBIdleFAILED: [[SimpleTest]]: [MySQL] 50,683 pass(es), 62 fail(s), and 388 exception(s).View details | Re-test

#3

Status:needs review» needs work

The last submitted patch, drupal-1888390-2.patch, failed testing.

#4

Assigned to:dawehner» Anonymous
Status:needs work» needs review

Ups, forgot some places.

AttachmentSizeStatusTest resultOperations
drupal-1888390-4.patch63.29 KBIdleFAILED: [[SimpleTest]]: [MySQL] 50,732 pass(es), 12 fail(s), and 0 exception(s).View details | Re-test
interdiff.txt5.33 KBIgnored: Check issue status.NoneNone

#5

Status:needs review» needs work

The last submitted patch, drupal-1888390-4.patch, failed testing.

#6

Status:needs work» needs review
AttachmentSizeStatusTest resultOperations
drupal-1888390-6.patch84.77 KBIdleFAILED: [[SimpleTest]]: [MySQL] 50,895 pass(es), 12 fail(s), and 0 exception(s).View details | Re-test
interdiff.txt25.67 KBIgnored: Check issue status.NoneNone

#7

Status:needs review» needs work

The last submitted patch, drupal-1888390-6.patch, failed testing.

#8

Status:needs work» needs review

There we go, this should fix the remaining parts.

AttachmentSizeStatusTest resultOperations
drupal-1888390-8.patch85.43 KBIdleFAILED: [[SimpleTest]]: [MySQL] 50,890 pass(es), 1 fail(s), and 0 exception(s).View details | Re-test
interdiff.txt676 bytesIgnored: Check issue status.NoneNone

#9

Status:needs review» needs work

The last submitted patch, drupal-1888390-8.patch, failed testing.

#10

Status:needs work» needs review

There we go, this time it's green.

AttachmentSizeStatusTest resultOperations
drupal-1888390-10.patch85.45 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-1888390-10.patch. Unable to apply patch. See the log in the details link for more information.View details | Re-test
interdiff.txt552 bytesIgnored: Check issue status.NoneNone

#11

#10: drupal-1888390-10.patch queued for re-testing.

#12

Let's re-test, otherwise this is godo to go.

#13

Status:needs review» needs work

The last submitted patch, drupal-1888390-10.patch, failed testing.

#14

Status:needs work» needs review

Rerolled against some of the recent changes to the views ui controller et al.

AttachmentSizeStatusTest resultOperations
1888390-14.patch84.83 KBIdleFAILED: [[SimpleTest]]: [MySQL] 52,061 pass(es), 274 fail(s), and 290 exception(s).View details | Re-test

#15

Status:needs review» needs work

The last submitted patch, 1888390-14.patch, failed testing.

#16

Status:needs work» needs review

heh, oops.

AttachmentSizeStatusTest resultOperations
1888390-16.patch84.76 KBIdleFAILED: [[SimpleTest]]: [MySQL] 52,260 pass(es), 3 fail(s), and 2 exception(s).View details | Re-test

#17

Status:needs review» needs work

The last submitted patch, 1888390-16.patch, failed testing.

#18

Status:needs work» needs review

One small bit was left over.

AttachmentSizeStatusTest resultOperations
drupal-1888390-18.patch85.58 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-1888390-18.patch. Unable to apply patch. See the log in the details link for more information.View details | Re-test
interdiff.txt834 bytesIgnored: Check issue status.NoneNone

#19

#18: drupal-1888390-18.patch queued for re-testing.

#20

Status:needs review» reviewed & tested by the community

This one is good.

#21

#18: drupal-1888390-18.patch queued for re-testing.

#22

Status:reviewed & tested by the community» needs work

The last submitted patch, drupal-1888390-18.patch, failed testing.

#23

Status:needs work» needs review

Needs a bit of a reroll.

AttachmentSizeStatusTest resultOperations
1888390-23.patch87.42 KBIdleFAILED: [[SimpleTest]]: [MySQL] 53,100 pass(es), 42 fail(s), and 11 exception(s).View details | Re-test

#24

Status:needs review» needs work

The last submitted patch, 1888390-23.patch, failed testing.

#25

Status:needs work» needs review

Missed a couple.

AttachmentSizeStatusTest resultOperations
1888390-25.patch88.61 KBIdleFAILED: [[SimpleTest]]: [MySQL] 53,052 pass(es), 42 fail(s), and 10 exception(s).View details | Re-test
interdiff.txt1.19 KBIgnored: Check issue status.NoneNone

#26

Status:needs review» needs work

The last submitted patch, 1888390-25.patch, failed testing.

#27

Status:needs work» needs review

#25: 1888390-25.patch queued for re-testing.

#28

Status:needs review» needs work

The last submitted patch, 1888390-25.patch, failed testing.

#29

Rerolled, and missed after the AjaxDetail.php changes, also missed a couple in the initial reroll.

AttachmentSizeStatusTest resultOperations
1888390-29.patch91.4 KBIdleFAILED: [[SimpleTest]]: [MySQL] 53,038 pass(es), 41 fail(s), and 9 exception(s).View details | Re-test
interdiff.txt3.12 KBIgnored: Check issue status.NoneNone

#30

Status:needs work» needs review

#31

Status:needs review» needs work

The last submitted patch, 1888390-29.patch, failed testing.

#32

Status:needs work» needs review

Sorry, not sure why there was still a couple of missing switches there. I blame my editor....

AttachmentSizeStatusTest resultOperations
1888390-32.patch92.13 KBIdleFAILED: [[SimpleTest]]: [MySQL] 53,125 pass(es), 33 fail(s), and 9 exception(s).View details | Re-test

#33

Status:needs review» needs work

The last submitted patch, 1888390-32.patch, failed testing.

#34

Status:needs work» needs review

For some odd reasons the patch file contained the old frontpage yml file, let's remove it.

AttachmentSizeStatusTest resultOperations
drupal-1888390-34.patch88.63 KBIdlePASSED: [[SimpleTest]]: [MySQL] 53,123 pass(es).View details | Re-test

#35

For some odd reasons the patch file contained the old frontpage yml file, let's remove it.

#36

Wasn't me .... ;)

#37

Status:needs review» reviewed & tested by the community

This was RTBC, just a painful reroll.

#38

Looks good to me. Maybe we need one cleanup issue for things like function views_page($name, $display_id) and function views_get_view($name).

#39

Well, views_page will be replaced by the route integration anyway, views_get_view would though be helpful.

#40

Applying patch core/modules/node/config/views.view.frontpage.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.archive.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.backlinks.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.comments_recent.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.glossary.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.taxonomy_term.yml with 1 rejects...
Applying patch core/modules/views/config/views.view.tracker.yml with 1 rejects...
Applying patch core/modules/views/tests/views_test_config/test_views/views.view.test_executable_displays.yml with 1 rejects...
Applying patch core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php with 1 rejects...

The yml ones were just s/human_name/label, the DeleteForm was due to the ConfirmFormBase conversion, that was s/getHumanName()/label()

AttachmentSizeStatusTest resultOperations
vdc-1888390-40.patch88.96 KBIdleFAILED: [[SimpleTest]]: [MySQL] Invalid PHP syntax in core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php.View details | Re-test

#41

Status:reviewed & tested by the community» needs work

The last submitted patch, vdc-1888390-40.patch, failed testing.

#42

Status:needs work» needs review

Heh. Here's the interdiff.

diff --git a/core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php b/core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php
index da2ee02..e36d7ce 100644
--- a/core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php
+++ b/core/modules/views/views_ui/lib/Drupal/views_ui/Form/DeleteForm.php
@@ -26,7 +26,7 @@ class DeleteForm extends ConfirmFormBase {
    * Implements \Drupal\Core\Form\ConfirmFormBase::getQuestion().
    */
   protected function getQuestion() {
-    return t('Are you sure you want to delete the %name view?', array('%name' => $this->view->label()()));
+    return t('Are you sure you want to delete the %name view?', array('%name' => $this->view->label()));
   }

   /**
AttachmentSizeStatusTest resultOperations
vdc-1888390-42.patch88.96 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch vdc-1888390-42.patch. Unable to apply patch. See the log in the details link for more information.View details | Re-test

#43

Status:needs review» reviewed & tested by the community

array('%name' => $this->view->label()()))

Looks like lisp/scheme :)

Let's get it in, to not end in endless rerolling

#44

#42: vdc-1888390-42.patch queued for re-testing.

#45

#42: vdc-1888390-42.patch queued for re-testing.

#46

Status:reviewed & tested by the community» needs work

The last submitted patch, vdc-1888390-42.patch, failed testing.

#47

Status:needs work» needs review

Rerolled.

AttachmentSizeStatusTest resultOperations
1888390-47.patch89.03 KBIdlePASSED: [[SimpleTest]]: [MySQL] 53,993 pass(es).View details | Re-test

#48

Status:needs review» reviewed & tested by the community

Let's put this out of its misery

#49

PLEASE :)

#50

And get back.

#51

Title:Change 'human_name' to 'label' and replace View::getHumanName() with View::label()» [Change notice] Change 'human_name' to 'label' and replace View::getHumanName() with View::label()
Project:Drupal core» Views
Version:8.x-dev» 8.x-3.x-dev
Component:views.module» Code
Status:reviewed & tested by the community» active
Issue tags:+Needs change notification

Committed and pushed to 8.x. Thanks!

This will need a change notice in Views I'm guessing...

nobody click here