Problem/Motivation

Config import fails for views.view.localgov_election_ward_winners.yml during `drush deploy`

Steps to reproduce

- Enable the localgov_elections module.
- Export config.
- Commit config.
- Deploy code on a different dev/stage/live site.
- `drush deploy` fails with the following error:

The import failed due to the following reasons:                                                                             
  Unexpected error during import with operation update for views.view.localgov_election_ward_winners: The configuration property display.default.display_options.filters.localgov_election_target_id.value.min doesn't exist.

Proposed resolution

Unless we really need the Ward winner listing, this view should be removed.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

progga created an issue. See original summary.

finn lewis’s picture

Thanks Progga! We will try to replicate.

tonypaulbarker’s picture

I think the view is needed but there might be a bug in the yaml.

plugin_id is now using entity_target_id https://git.drupalcode.org/project/localgov_elections/-/commit/1de9496a0...

so I don't think that min max for the values are any longer valid and fails validation.

danchamp’s picture

It's an admin view that's not exposed anywhere. It was created to check the multi-seat winner assignment during development, see /admin/content/wards on any installation with winner data.

I think it can be safely removed.

tonypaulbarker’s picture

Status: Active » Needs review

finn lewis’s picture

Version: 3.0.0-alpha1 » 3.0.0-beta1
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.