## Overview

Second in a series of PRs that will be submitted in support of the new 
user-defined partitioned databases feature 
(https://github.com/apache/couchdb/pull/1605).

Summary:
 - Add new PartitionKeySelector component that allows setting a partition key 
for filtering query results.
 - The selected partition key is represented in the application URL. E.g.: 
`/#/database/mydb/_partition/part1/_design/ddoc1/_view/new-view`
 - Although the URL is being updated by the Selector, the query results are not 
affected yet. This will come in a future PR

## Testing recommendations

 - Create a new partitioned database
 - Navigate to 'All Documents'. The Selector should be inactive (gray) and say 
'No partition selected'
 - Click the Selector and type the value `part1` then press Enter
 - The URL should change to `/#/database/<DB>/_partition/part1/_all_docs`
 - Click the Selector's (filter) icon to switch back to 'global' mode. The URL 
should change to back to `/#/database/<DB>/_all_docs`
 - Navigate to a view and repeat the same steps as for 'All Documents'

## Related Pull Requests

https://github.com/apache/couchdb/pull/1605

## Checklist

- [x] Code is written and works correctly;
- [x] Changes are covered by tests;
- [ ] Documentation reflects the changes;
- [ ] Update 
[rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script)
 with the correct tag once a new Fauxton release is made


[ Full content available at: 
https://github.com/apache/couchdb-fauxton/pull/1128 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to