Certain parts of the views integration (node.views.inc is one of them) already checks whether language module exists before integrate the column.

Let's keep that in sync for all of them.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
34.34 KB

.

dawehner’s picture

FileSize
3.17 KB

Wrong patch, sorry.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Thank you :)

Status: Reviewed & tested by the community » Needs work
Issue tags: -VDC

The last submitted patch, drupal-1891618-1.patch, failed testing.

dawehner’s picture

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

#2: drupal-1891618-1.patch queued for re-testing.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

done

catch’s picture

Status: Reviewed & tested by the community » Needs review

Not sure about this. If the column always exists, then why not expose it?

dawehner’s picture

The problem is that the actual handler for language lives in the language module, so you would sort of end up with broken values.
Just an idea: put the string handlers in there by default, unless you have the language module available, then you have the full features?

Mh i'm not sure whether it's good, as those handlers could conflict with each other.

dawehner’s picture

Issue tags: -VDC

#2: drupal-1891618-1.patch queued for re-testing.

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

The last submitted patch, drupal-1891618-1.patch, failed testing.

dawehner’s picture

Issue tags: +Needs reroll

Adds tag.

oriol_e9g’s picture

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

Rerolled and changed the module_exists deprecated calls

oriol_e9g’s picture

Same patch but with all module_exist calls converted. Feel free to commit/review #13 or #12 and convert rest of the calls in follouwups.

dawehner’s picture

This looks basically perfect.

+++ b/core/modules/user/user.views.incundefined
@@ -127,23 +127,25 @@ function user_views_data() {
+  ¶

Ups, right at the end there is some leftover whitespace.

dawehner’s picture

Status: Needs review » Needs work
oriol_e9g’s picture

Status: Needs work » Needs review
FileSize
4.68 KB
3.06 KB
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect. I am wondering whether you could complain about the missing test coverage for that, ... I don't know.

catch’s picture

Status: Reviewed & tested by the community » Needs work

 
-  if (module_exists('langcode')) {

Pre-existing bug but there's no 'langcode' module. Given this is a test module, I'd expect something to fail.

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.

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

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

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

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

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

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

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

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

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

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.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: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

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

Lendude’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Cleaning up old issues.

This seems to have been fixed by #2143729: Entity definitions miss a language entity key and other things in #2313159: [meta] Make multilingual views work, if you feel this is addressing a different issue, feel free to reopen this.