Skip to content

Commit

Permalink
Merge pull request #3107 from hashicorp/b-migrate-context-all
Browse files Browse the repository at this point in the history
All context should use string context "all"
  • Loading branch information
dadgar authored Aug 28, 2017
2 parents 4ed8726 + 7ed974c commit 472a1f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/contexts/contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ const (
Evals Context = "evals"
Jobs Context = "jobs"
Nodes Context = "nodes"
All Context = ""
All Context = "all"
)
2 changes: 1 addition & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const (
Evals Context = "evals"
Jobs Context = "jobs"
Nodes Context = "nodes"
All Context = ""
All Context = "all"
)

// RPCInfo is used to describe common information about query
Expand Down
3 changes: 1 addition & 2 deletions website/source/api/search.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ The table below shows this endpoint's support for
matches might be "abcd", or "aabb".
- `Context` `(string: <required>)` - Defines the scope in which a search for a
prefix operates. Contexts can be: "jobs", "evals", "allocs", "nodes",
"deployment" or an empty string, in which every context will be searched for
the identifier.
"deployment" or "all", where "all" means every context will be searched.

### Sample Payload (for a specific context)

Expand Down

0 comments on commit 472a1f7

Please sign in to comment.