Merge pull request #3359 from hashicorp/d-ui-query-params

Document the query params across all UI pages
This commit is contained in:
Michael Lange 2017-10-11 16:20:41 -07:00 committed by GitHub
commit a238a66687
3 changed files with 89 additions and 2 deletions

View file

@ -8,7 +8,6 @@ export default Controller.extend(Sortable, {
queryParams: {
currentPage: 'page',
searchTerm: 'search',
sortProperty: 'sort',
sortDescending: 'desc',
},

View file

@ -9,7 +9,6 @@ export default Controller.extend(Sortable, {
queryParams: {
currentPage: 'page',
searchTerm: 'search',
sortProperty: 'sort',
sortDescending: 'desc',
},

View file

@ -20,6 +20,23 @@ This page lists all known jobs in a paginated, searchable, and sortable table.
| ---------- | ----------- |
| `/ui/jobs` | `text/html` |
### Parameters
- `namespace` `(string: "")` - Specifies the namespace all jobs should be a member
of. This is specified as a querystring parameter. Namespaces are an enterprise feature.
- `sort` `(string: "")` - Specifies the property the list of jobs should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `search` `(string: "")` - Specifies a regular expression uses to filter the list of
visible jobs. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the jobs list that should be visible. This
is specified as a querystring parameter.
## Job Detail
@ -31,6 +48,17 @@ deployment for the job, it will be shown on the overview.
| ------------------ | ----------- |
| `/ui/jobs/:job_id` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of task groups should be
sorted by. This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the task groups list that should be visible. This
is specified as a querystring parameter.
### Job Definition
@ -79,6 +107,20 @@ allocations.
| ----------------------------------- | ----------- |
| `/ui/jobs/:job_id/:task_group_name` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of allocations should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `search` `(string: "")` - Specifies a regular expression uses to filter the list of
visible allocations. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This
is specified as a querystring parameter.
## Allocation Detail
@ -92,6 +134,14 @@ description of the event.
| --------------------------- | ----------- |
| `/ui/allocations/:alloc_id` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of tasks should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
## Nodes List
@ -102,6 +152,20 @@ table.
| ----------- | ----------- |
| `/ui/nodes` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of client nodes should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `search` `(string: "")` - Specifies a regular expression uses to filter the list of
visible client nodes. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the client nodes list that should be visible. This
is specified as a querystring parameter.
## Node Detail
@ -112,6 +176,20 @@ address, port, datacenter, allocations, and attributes.
| -------------------- | ----------- |
| `/ui/nodes/:node_id` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of allocations should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `search` `(string: "")` - Specifies a regular expression uses to filter the list of
visible allocations. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This
is specified as a querystring parameter.
## Servers List
@ -123,6 +201,17 @@ the leader.
| ------------- | ----------- |
| `/ui/servers` | `text/html` |
### Parameters
- `sort` `(string: "")` - Specifies the property the list of server agents should be sorted by.
This is specified as a querystring parameter.
- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending
or ascending. This is specified as a querystring parameter.
- `page` `(int: 0)` - Specifies the page in the server agents list that should be visible. This
is specified as a querystring parameter.
## Server Detail