Skip to content

Commit

Permalink
feat: Add autocomplete for repo Revisions (argoproj#4645) (argoproj#4713
Browse files Browse the repository at this point in the history
)

* feat: Add autocomplete for repo Revisions

- Introduces api/v1/repositories/{repo}/refs which returns branches and tags
- Add new RevisionFormField component to Create and Edit Application pages

Signed-off-by: Tim Etchells <tetchell@redhat.com>
  • Loading branch information
tetchel authored Nov 2, 2020
1 parent 97003ca commit 8603150
Show file tree
Hide file tree
Showing 20 changed files with 1,112 additions and 191 deletions.
50 changes: 50 additions & 0 deletions assets/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,38 @@
}
}
},
"/api/v1/repositories/{repo}/refs": {
"get": {
"tags": [
"RepositoryService"
],
"operationId": "ListRefs",
"parameters": [
{
"type": "string",
"description": "Repo URL for query",
"name": "repo",
"in": "path",
"required": true
},
{
"type": "boolean",
"format": "boolean",
"description": "Whether to force a cache refresh on repo's connection state.",
"name": "forceRefresh",
"in": "query"
}
],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/repositoryRefs"
}
}
}
}
},
"/api/v1/repositories/{repo}/validate": {
"post": {
"tags": [
Expand Down Expand Up @@ -3087,6 +3119,24 @@
}
}
},
"repositoryRefs": {
"type": "object",
"title": "A subset of the repository's named refs",
"properties": {
"branches": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"repositoryRepoAppDetailsQuery": {
"type": "object",
"title": "RepoAppDetailsQuery contains query information for app details request",
Expand Down
165 changes: 101 additions & 64 deletions pkg/apiclient/repository/repository.pb.go

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions pkg/apiclient/repository/repository.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion reposerver/apiclient/mocks/RepoServerServiceClient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8603150

Please sign in to comment.