I changed my data using (for:All displays (except overridden)) and a see * only in title of my display.
Other data were also changed, but the on tabs they have not * . :(

CommentFileSizeAuthor
#74 1791352-74.patch7.38 KBShubham Chandra
#72 1791352-72.patch6.54 KBMunavijayalakshmi
#71 1791352-71.patch6.58 KBMunavijayalakshmi
#69 1791352-69.patch6.58 KBajaypratapsingh
#57 1791352-56.patch6.38 KBMunavijayalakshmi
#52 interdiff-1791352-50-52.txt778 bytesaerozeppelin
#52 1791352-52.patch6.38 KBaerozeppelin
#50 interdiff-1791352-46-50.txt775 bytesaerozeppelin
#50 1791352-50.patch6.38 KBaerozeppelin
#46 1791352-46.patch6.38 KBaerozeppelin
#46 test-only-fail-1791352-46.patch716 bytesaerozeppelin
#36 vdc-1791352-36.patch13.78 KBtim.plunkett
#36 interdiff.txt1.75 KBtim.plunkett
#32 drupal-1791352-32.patch13.79 KBdawehner
#31 interdiff.txt1005 bytesdawehner
#31 drupal-1791352-31.patch13.5 KBdawehner
#29 drupal-1791352-29.patch13.65 KBdamiankloip
#25 drupal-1791352-25.patch13.14 KBdawehner
#24 vdc-1791352-24.patch13 KBtim.plunkett
#20 interdiff.txt11.22 KBtim.plunkett
#20 vdc-1791352-20.patch12.83 KBtim.plunkett
#16 drupal-1791352-16.patch2.91 KBdawehner
#15 1791352-15.patch2.91 KBdamiankloip
#13 1791352-13.patch2.81 KBdamiankloip
#13 interdiff.txt1.69 KBdamiankloip
#11 drupal-1791352-11.patch2.71 KBdawehner
#8 views-1791352-8.patch2.57 KBdawehner
#6 views-1791352-6.patch1.11 KBdawehner
#2 apply-all.png182.18 KBpvasili
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Could you describe what settings you changed?

pvasili’s picture

FileSize
182.18 KB

error

andypost’s picture

Status: Postponed (maintainer needs more info) » Needs work
Issue tags: +Needs usability review, +Usability, +D8UX usability, +VDC

Actually confirm - other display tabs does not indicates their "changed" state when changes applies to all displays.
This mostly about usability - when you change a some option and point to apply to all Displays so there's no visual indication on other displays that they got changes

andypost’s picture

posted twice

tim.plunkett’s picture

Title: Error status changes * » When changes are made for all displays, mark all displays as changed
Version: 7.x-3.x-dev » 8.x-3.x-dev
Priority: Major » Normal
Issue tags: -Needs usability review, -Usability, -D8UX usability +Needs backport to D7

No need for usability review, you're just 100% right :)

dawehner’s picture

Status: Needs work » Needs review
Issue tags: +Needs tests
FileSize
1.11 KB

Here is juat an idea how to fix that. This especially needs a test.

tim.plunkett’s picture

Status: Needs review » Needs work
+++ b/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -8,6 +8,7 @@
+use Drupal\views\ViewUI;

This has moved.

And, it needs tests, so no reason to reroll until those are written.

dawehner’s picture

Status: Needs work » Needs review
FileSize
2.57 KB

Wrote a small test for this, and rerolled against the latest version.

Status: Needs review » Needs work

The last submitted patch, views-1791352-8.patch, failed testing.

xjm’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.x-dev
Component: Miscellaneous » views.module
Issue tags: +Usability

Yes please!

dawehner’s picture

Status: Needs work » Needs review
FileSize
2.71 KB

So

Status: Needs review » Needs work

The last submitted patch, drupal-1791352-11.patch, failed testing.

damiankloip’s picture

Status: Needs work » Needs review
FileSize
1.69 KB
2.81 KB

So, the tests didn't make too much sense passing here :) I have fixed them up a bit and fixed the assertLinks.

dawehner’s picture

Status: Needs review » Needs work
+++ b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.phpundefined
@@ -195,14 +195,16 @@ public function testChanged() {
+    $this->assertLink(t('Master'), 0, 'The master display is still marked as changed.');

Well Master will always exist (as there is a link available ont he site), but i guess it should not mark be as changed if we override it?

damiankloip’s picture

Status: Needs work » Needs review
FileSize
2.91 KB

Rerolled and changed the assertion message in #14.

dawehner’s picture

FileSize
2.91 KB
+++ b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.phpundefined
@@ -182,4 +182,29 @@ public function testDisplayPluginsAlter() {
+    $this->assertLink(t('Master'), 0, 'The master display is not marked as changed.');

Let's better also add a $this->assertNoLink(t('Master*')) to be sure it is really not overridden

damiankloip’s picture

Looks good to me.

Status: Needs review » Needs work
Issue tags: -Usability, -Needs tests, -Needs backport to D7, -VDC

The last submitted patch, drupal-1791352-16.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
Issue tags: +Usability, +Needs tests, +Needs backport to D7, +VDC

#16: drupal-1791352-16.patch queued for re-testing.

tim.plunkett’s picture

FileSize
12.83 KB
11.22 KB

DisplayPluginBase::setOption() doesn't have access to the View UI object, we should pass it along when necessary.

damiankloip’s picture

Makes sense to me, IMO the code looks slightly cleaner like this, losing the instanceof stuff.

dawehner’s picture

+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -2154,7 +2175,7 @@ public function submitOptionsForm(&$form, &$form_state) {
+            $this->setOption('access', $access, $form_state['view']);

What about using an actual setOptionUI which wraps setOption with that logic, to keep the api function as simple as possible.

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett
Status: Needs review » Needs work

Agreed.

tim.plunkett’s picture

Assigned: tim.plunkett » Unassigned
Status: Needs work » Needs review
FileSize
13 KB

Okay, done. No interdiff really, since it's a 100% different patch.

dawehner’s picture

FileSize
13.14 KB
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -935,6 +945,31 @@ public function setOption($option, $value) {
+  public function setOptionUI($option, $value, $view_ui) {

Just a small thing: use ViewUI in the signature

+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.phpundefined
@@ -935,6 +945,31 @@ public function setOption($option, $value) {
+    if ($this->isDefaulted($option)) {

I guess it makes sense to describe what this function exactly does, because it is not easy to figure out.

+++ b/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.phpundefined
@@ -210,4 +210,29 @@ public function testDisplayAreas() {
+  public function testChanged() {

It's good to have a total different implementation but still have a way to keep the test.

Status: Needs review » Needs work
Issue tags: -Usability, -Needs tests, -Needs backport to D7, -VDC

The last submitted patch, drupal-1791352-25.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#25: drupal-1791352-25.patch queued for re-testing.

dawehner’s picture

#25: drupal-1791352-25.patch queued for re-testing.

damiankloip’s picture

FileSize
13.65 KB

Rerolled, patch was pretty out of date.

Status: Needs review » Needs work

The last submitted patch, drupal-1791352-29.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
FileSize
13.5 KB
1005 bytes

A small problem with big consequences.

dawehner’s picture

FileSize
13.79 KB

Another rerole, with changing config() to use the container.

Status: Needs review » Needs work
Issue tags: -Usability, -Needs backport to D7, -VDC

The last submitted patch, drupal-1791352-32.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

#32: drupal-1791352-32.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Usability, +Needs backport to D7, +VDC

The last submitted patch, drupal-1791352-32.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review
FileSize
1.75 KB
13.78 KB

s/name/id

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect, thanks for fixing that.

catch’s picture

Status: Reviewed & tested by the community » Needs review

Are there other places in the code base that explicitly reference views_ui? This seems a bit backwards.

dawehner’s picture

Let's postpone that on #1919142: Convert Views UI AJAX forms to use FormInterface
The other way to fix this would be to directly call some function on the ViewUI directly in the submit functions.

nod_’s picture

Status: Needs review » Postponed

per #39

andypost’s picture

Issue summary: View changes
Status: Postponed » Needs review

Seems patch outdated

dawehner queued 36: vdc-1791352-36.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 36: vdc-1791352-36.patch, failed testing.

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

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should 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.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should 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.

aerozeppelin’s picture

Status: Needs work » Needs review
FileSize
716 bytes
6.38 KB

Rerolled patch #36.

dawehner’s picture

Thank you @aerozeppelin for rerolling the patch! The patch for itself looks really solid. Here is just one question I have ...

+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -2641,6 +2648,33 @@ public function getExtenders() {
+  public function setOptionUI($option, $value, ViewUI $view_ui) {

Does this method has to be public?

The last submitted patch, 46: test-only-fail-1791352-46.patch, failed testing.

dawehner’s picture

Status: Needs review » Needs work
aerozeppelin’s picture

Status: Needs work » Needs review
FileSize
6.38 KB
775 bytes

@dawehner thank you for reviewing the patch.

Does this method has to be public?

I agree making it public has no significance.

dawehner’s picture

@aerozeppelin
Note: Drupal uses protected most of the time, let's just keep it that way.

aerozeppelin’s picture

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you @aerozeppelin!

alexpott’s picture

Version: 8.2.x-dev » 8.3.x-dev
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -2641,6 +2648,33 @@ public function getExtenders() {
+  protected function setOptionUI($option, $value, ViewUI $view_ui) {

Given that we're adding a method this needs to be for 8.3.x only. Also it'd be nice to get at least one green run on #52

alexpott’s picture

Status: Reviewed & tested by the community » Needs review

Looking at this change closer - is there anyway of doing this change in a way that does not bring views ui code into views code?

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.

Munavijayalakshmi’s picture

Rerolled the patch.

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.

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.

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.

quietone’s picture

Status: Needs review » Needs work
Issue tags: +Bug Smash Initiative, +Needs issue summary update, +Needs reroll

I tested on Drupal 9.4.x and was able to reproduce the problem.

This needs an issue summary update, see Write an issue summary for an existing issue for guidance.

An updated patch is needed and the #55 needs to be addressed.

ajaypratapsingh’s picture

Status: Needs work » Needs review
FileSize
6.58 KB

Rerolled patch #57 against drupal 9.5.x

Munavijayalakshmi’s picture

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

Rectified custom commands failed errors.

2731 | ERROR | [x] Expected 1 blank line after function; 0 found
2758 | ERROR | [x] Whitespace found at end of line

Munavijayalakshmi’s picture

Munavijayalakshmi’s picture

Assigned: Munavijayalakshmi » Unassigned
Shubham Chandra’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
7.38 KB

Rerolled patch #56 with Drupal 9.5.x

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.

sonam.chaturvedi’s picture

Status: Needs review » Needs work

Verified patch #74 on 10.1.x-dev. Patch applied cleanly with several hunks.

However, after applying patch site breaks and gives "HTTP 500 error - This page isn't working" error. No page is accessible.
We need working patch for 10.1.

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.