Problem/Motivation

When I wrote #2787255: Provide a views filter for administrative areas, I didn't know of a simple, safe, clean way to limit the available choices in the 'Country contextual filter' selector if you pick 'The value of a contextual filter' for the 'Country source'. Currently, it just shows you all the contextual filters on the view.

Proposed resolution

Limit the choices for 'Country contextual filter' to only let you pick something pointing to a country.

Remaining tasks

  1. Figure out a clean way to do this.
  2. Implement it.
  3. Test. (@see #3087833: Add FunctionalJavascript tests for Views UI parts of views plugins)
  4. Review/RTBC.
  5. Commit.

User interface changes

Choices for the 'Country contextual filter' setting will only let you pick something pointing to a country.

API changes

Hopefully none.

Data model changes

None.

Release notes snippet

Nah.

Comments

dww created an issue. See original summary.

  • dww committed e19a831 on 8.x-1.x
    Issue #3088084 by dww: Add @see comment pointing to the follow-up issue.
    
dww’s picture

I updated the @todo comment about this to add a @see pointing here. Progress! ;)

dww’s picture

Priority: Major » Normal

No idea why I called this 'Major'. Sorry about that.

Chris Matthews’s picture

dww’s picture

Sure, we can call this something to target for 8.x-1.8, but let's not lose the association with the original parent issue #2787255: Provide a views filter for administrative areas. Restoring that (now calling it related, not the parent).

Meanwhile, I'm still soliciting feedback on the cleanest way to actually do this. Any ideas are most welcome. ;)

Thanks,
-Derek