NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

Bug: missing table alias in view query #1588

Open bkline opened 5 years ago

bkline commented 5 years ago

The SQL queries generated by the views module for the moderated_media view when the user requests sorting or filtering by media type (bundle) have .bundle instead of media.bundle. We are working around this bug with an implementation of hook_views_query_alter() in the cgov_media module. If the Drupal core bug is fixed, this hook implementation can be removed. We haven't actually been able to find an existing issue for this bug, nor have we been able to track down enough information in the debugger to file the issue ourselves.

amydugan commented 5 years ago

Marking this as out of scope for June launch since we have a workaround.

bkline commented 5 years ago

Bryan did find https://www.drupal.org/project/drupal/issues/2993415, which may eventually solve the problem in a somewhat less ugly way. No action on it, though, since eight months ago, when Nick Daelemans posted a patch, marked the ticket Needs tests, and walked away, removing himself from the Assigned role. ☹️