-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2144 from keboola/ph-PSGO-882
feat: Add data app template filter
- Loading branch information
Showing
21 changed files
with
358 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
internal/pkg/service/templates/api/gen/http/templates/server/encode_decode.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
internal/pkg/service/templates/api/gen/http/templates/server/types.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...lates/api/repositories/template-list-filter/002-list-ok-data-apps-only/expected-http-code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
200 |
65 changes: 65 additions & 0 deletions
65
...s/api/repositories/template-list-filter/002-list-ok-data-apps-only/expected-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"repository": { | ||
"name": "keboola", | ||
"url": "%s/test/templates/api/repositories/template-list-filter/repository", | ||
"ref": "", | ||
"author": { | ||
"name": "Example Author", | ||
"url": "https://example.com" | ||
} | ||
}, | ||
"templates": [ | ||
{ | ||
"id": "my-template-id-5", | ||
"name": "My Template-snowflake-5", | ||
"deprecated": false, | ||
"author": { | ||
"name": "Example Author", | ||
"url": "https://example.com" | ||
}, | ||
"description": "Full workflow to ...", | ||
"defaultVersion": "1.2.3", | ||
"categories": [ | ||
"Other" | ||
], | ||
"components": [ | ||
"keboola.wr-%s", | ||
"foo.bar", | ||
"keboola.data-apps" | ||
], | ||
"versions": [ | ||
{ | ||
"version": "1.2.3", | ||
"stable": false, | ||
"description": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "my-template-id-7", | ||
"name": "My Template-snowflake-7", | ||
"deprecated": false, | ||
"author": { | ||
"name": "Example Author", | ||
"url": "https://example.com" | ||
}, | ||
"description": "Full workflow to ...", | ||
"defaultVersion": "1.2.3", | ||
"categories": [ | ||
"Other" | ||
], | ||
"components": [ | ||
"keboola.wr-%s", | ||
"foo.bar", | ||
"keboola.data-apps" | ||
], | ||
"versions": [ | ||
{ | ||
"version": "1.2.3", | ||
"stable": false, | ||
"description": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
test/templates/api/repositories/template-list-filter/002-list-ok-data-apps-only/request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"path": "/v1/repositories/keboola/templates?filter=keboola.data-apps", | ||
"method": "GET", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": {} | ||
} |
1 change: 1 addition & 0 deletions
1
...ates/api/repositories/template-list-filter/003-list-ok-components-only/expected-http-code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
200 |
Oops, something went wrong.