Problem/Motivation

Over at #3210462: 1/19 views failing to import some real progress has been made (thank you SO much!!) and I'm now able to import 18/19 views on my site.

However. For some reason, those imported views are not showing up on the main Views listing at admin/structure/views, even after a drush cr. Any idea?

Steps to reproduce

  1. Import views with drush mim d7_views_migration
  2. Go to admin/structure/views

Expected: Imported views appear in the list, like they do in Drupal 7:

D7 views listing includes custom views

Actual: Only default core views are listed there in Drupal 9:

D9 views listing does not include custom views

Comments

webchick created an issue. See original summary.

webchick’s picture

sundhar’s picture

Hi webchick,
Would you check the configuration (views.view.{view_id}) is exist.
drush config-get views.view.{view_id}

webchick’s picture

Category: Bug report » Support request

Thanks for the help! Hm. That does indeed return stuff. Example:

$ drush config-get views.view.certified_user_directory
uuid: 0d17cef8-1625-43d2-aa10-ee0ffcda0893
langcode: en
status: true
dependencies:
  config:
    - user.role.certification_candidate
  module:
    - user
id: certified_user_directory
label: 'Certified Users Registry'
module: views
description: ''
tag: default
base_table: users_field_data
base_field: uid
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    position: 1
    display_options:
      query:
        type: views_query
        options: {  }
      title: 'Acquia Certification Registry'
      use_more_always: false
      access:
        type: role
      cache:
        type: none
      exposed_form:
        type: basic
      pager:
        type: full
        options:
          items_per_page: 40
          offset: 0
          id: 0
          quantity: 9
      style_plugin: default
      style_options:
        columns:
          field_first_name: field_first_name
          field_last_name: field_last_name
          city: city
          country: country
          field_exam: field_exam
        default: field_first_name
        info:
          field_first_name:
            sortable: 1
            default_sort_order: asc
            align: ''
            separator: ''
            empty_column: 0
          field_last_name:
            sortable: 1
            default_sort_order: asc
            align: ''
            separator: ''
            empty_column: 0
          city:
            sortable: 1
            default_sort_order: asc
            align: ''
            separator: ''
            empty_column: 0
          country:
            sortable: 1
            default_sort_order: asc
            align: ''
            separator: ''
            empty_column: 0
          field_exam:
            sortable: 1
            default_sort_order: asc
            align: ''
            separator: ''
            empty_column: 0
        sticky: true
        bootstrap_styles:
          hover: hover
          striped: 0
          bordered: 0
          condensed: 0
      relationships:
        reverse_field_candidate_node:
          id: reverse_field_candidate_node
          table: users_field_data
          field: reverse__user__field_candidate_node
          entity_type: user
          admin_label: results
          plugin_id: entity_reverse
      fields:
        field_first_name:
          id: field_first_name
          table: user__field_first_name
          field: field_first_name
          label: ''
          exclude: true
          element_label_colon: false
          settings:
            field_formatter_class: ''
        field_last_name:
          id: field_last_name
          table: user__field_last_name
          field: field_last_name
          label: Name
          alter:
            alter_text: true
            text: '[field_first_name] [field_last_name] '
          element_label_colon: false
          settings:
            field_formatter_class: ''
        city:
          id: city
          table: location
          field: city
          exclude: true
        country:
          id: country
          table: location
          field: country
          label: Location
          alter:
            alter_text: true
            text: '[city], [country]'
          element_label_colon: false
        field_exam:
          id: field_exam
          table: user__field_exam
          field: field_exam
          relationship: reverse_field_candidate_node
          label: Certification
          element_label_colon: false
          type: taxonomy_term_reference_plain
          settings:
            field_formatter_class: ''
      sorts:
        field_first_name_value:
          id: field_first_name_value
          table: user__field_first_name
          field: field_first_name_value
      filters:
        field_first_name_value:
          id: field_first_name_value
          table: user__field_first_name
          field: field_first_name_value
          operator: contains
          group: 1
          exposed: true
          expose:
            operator_id: field_first_name_value_op
            label: 'First Name'
            operator: field_first_name_value_op
            identifier: field_first_name_value
            remember_roles:
              authenticated: authenticated
              anonymous: anonymous
              administrator: administrator
              partner: partner
              acquia_employee: acquia_employee
            operator_limit_selection: false
            operator_list: {  }
          plugin_id: bundle
        field_last_name_value:
          id: field_last_name_value
          table: user__field_last_name
          field: field_last_name_value
          operator: contains
          group: 1
          exposed: true
          expose:
            operator_id: field_last_name_value_op
            label: 'Last Name'
            operator: field_last_name_value_op
            identifier: field_last_name_value
            remember_roles:
              authenticated: authenticated
              anonymous: anonymous
              administrator: administrator
              partner: partner
              acquia_employee: acquia_employee
            operator_limit_selection: false
            operator_list: {  }
          plugin_id: bundle
        city:
          id: city
          table: location
          field: city
          operator: contains
          group: 1
          exposed: true
          expose:
            operator_id: city_op
            label: City
            operator: city_op
            identifier: city
            remember_roles:
              authenticated: authenticated
              anonymous: anonymous
              administrator: administrator
              partner: partner
              acquia_employee: acquia_employee
            operator_limit_selection: false
            operator_list: {  }
          plugin_id: bundle
        country:
          id: country
          table: location
          field: country
          group: 1
          exposed: true
          expose:
            operator_id: country_op
            label: Country
            operator: country_op
            identifier: country
            remember_roles:
              authenticated: authenticated
              anonymous: anonymous
              administrator: administrator
              partner: partner
              acquia_employee: acquia_employee
            operator_limit_selection: false
            operator_list: {  }
          plugin_id: bundle
        field_result_value:
          id: field_result_value
          table: user__field_result
          field: field_result_value
          relationship: reverse_field_candidate_node
          value:
            Pass: Pass
          plugin_id: bundle
          expose:
            operator_limit_selection: false
            operator_list: {  }
        rid:
          id: rid
          table: user__roles
          field: roles_target_id
          value:
            certification_candidate: certification_candidate
          plugin_id: user_roles
          entity_type: null
          entity_field: roles_target_id
          expose:
            operator_limit_selection: false
            operator_list: {  }
        field_exam_tid:
          id: field_exam_tid
          table: user__field_exam
          field: field_exam_target_id
          relationship: reverse_field_candidate_node
          value: ''
          exposed: true
          expose:
            operator_id: field_exam_tid_op
            label: Certification
            operator: field_exam_tid_op
            identifier: field_exam_tid
            remember_roles:
              authenticated: authenticated
              anonymous: anonymous
              certification_candidate: certification_candidate
              administrator: administrator
              partner: partner
              acquia_employee: acquia_employee
              certification_admin: certification_admin
            operator_limit_selection: false
            operator_list: {  }
          type: select
          plugin_id: taxonomy_index_tid
          vid: acquia_certifications
      header:
        area:
          id: area
          table: views
          field: area
          relationship: none
          group_type: group
          ui_name: ''
          label: ''
          empty: false
          content: 'The candidates who have passed 3 exams within 1 year of successfully passing their first exam have also earned the <a href="/registry/grand-masters">Acquia Certified Grand Master</a> credential.  Find out more about our <a href="http://acquia.com/certification">Acquia Developer Certification</a> program.'
          format: filtered_html
          tokenize: 0
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_interface'
        - url.query_args
        - user.roles
      tags: {  }
  page:
    display_plugin: page
    id: page
    display_title: Page
    position: 2
    display_options:
      query:
        type: views_query
        options: {  }
      path: registry
      enabled: false
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_interface'
        - url.query_args
        - user.roles
      tags: {  }

However, I now have another problem which is the Views imported—hooray!—but caused "The website encountered an unexpected error. Please try again later." errors so I can't actually get to admin/structure/views anymore. :P I'll do some digging...

webchick’s picture

Status: Active » Closed (cannot reproduce)

I can now no longer reproduce this; sorry for the noise!