Problem/Motivation

When creating exposed sorts for collections, the Views UI does not provide insight into the parameter structure for the querystring. As a result, developers unfamiliar with the URL syntax will need to create a "regular" view, save it, navigate to the page, and experiment with the exposed form to see what it does. The Views UI should surface more of the key identifiers.

Proposed resolution

Much like exposed fields will show you the identifier for the field's querystring parameter in the field plugin's modal popup, the exposed search popup should provide insight into the sort_by, sort_order properties and their accepted values. This might be mitigated by a module such as Self-Documenting REST API providing this information.

Remaining tasks

Determine approach

User interface changes

Additions to the views admin UI.

API changes

None expected.

Data model changes

None expected.

Comments

Grayside created an issue. See original summary.

dawehner’s picture

Issue tags: +UX improvement

Oh yeah that part is indeed not absolute obvious. Some helping text with maybe a link would be great!

wim leers’s picture

Title: Views REST: Improved UX of exposed sorts in collections » REST views: Improved UX of exposed sorts in collections
Issue tags: +VDC, +DX (Developer Experience)

+1!

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

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now 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.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now 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.