-
Notifications
You must be signed in to change notification settings - Fork 4
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 #2143 from keboola/ph-PSGO-902_push_ignore
feat: Ignore configuration for push command
- Loading branch information
Showing
34 changed files
with
281 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
push --storage-api-token %%TEST_KBC_STORAGE_API_TOKEN%% |
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 @@ | ||
0 |
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,58 @@ | ||
{ | ||
"branches": [ | ||
{ | ||
"branch": { | ||
"name": "Main", | ||
"description": "", | ||
"isDefault": true | ||
}, | ||
"configs": [ | ||
{ | ||
"componentId": "keboola.ex-db-mysql", | ||
"name": "with-rows", | ||
"description": "test fixture", | ||
"configuration": { | ||
"parameters": { | ||
"db": { | ||
"host": "mysql.example.com" | ||
} | ||
} | ||
}, | ||
"rows": [ | ||
{ | ||
"name": "disabled", | ||
"description": "test fixture", | ||
"isDisabled": true, | ||
"configuration": { | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "test_view", | ||
"description": "test fixture", | ||
"isDisabled": false, | ||
"configuration": { | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "users", | ||
"description": "test fixture", | ||
"isDisabled": false, | ||
"configuration": { | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} | ||
} | ||
], | ||
"isDisabled": false | ||
} | ||
] | ||
} | ||
] | ||
} |
Empty file.
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,5 @@ | ||
Plan for "push" operation: | ||
× R main/extractor/keboola.ex-db-mysql/with-rows/rows/test-view - IGNORED | ||
× R main/extractor/keboola.ex-db-mysql/with-rows/rows/users - SKIPPED | ||
Skipped remote objects deletion, use "--force" to delete them. | ||
Push done. |
Empty file.
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 @@ | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_TEST_VIEW_ID%% |
54 changes: 54 additions & 0 deletions
54
test/cli/push/ignore-configurations/in/.keboola/manifest.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,54 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": %%TEST_KBC_PROJECT_ID%%, | ||
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%" | ||
}, | ||
"allowTargetEnv": false, | ||
"sortBy": "path", | ||
"naming": { | ||
"branch": "{branch_name}", | ||
"config": "{component_type}/{component_id}/{config_name}", | ||
"configRow": "rows/{config_row_name}", | ||
"schedulerConfig": "schedules/{config_name}", | ||
"sharedCodeConfig": "_shared/{target_component_id}", | ||
"sharedCodeConfigRow": "codes/{config_row_name}", | ||
"variablesConfig": "variables", | ||
"variablesValuesRow": "values/{config_row_name}", | ||
"dataAppConfig": "app/{component_id}/{config_name}" | ||
}, | ||
"allowedBranches": [ | ||
"__all__" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"name": "keboola", | ||
"url": "https://github.com/keboola/keboola-as-code-templates.git", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": %%TEST_BRANCH_MAIN_ID%%, | ||
"path": "main" | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"branchId": %%TEST_BRANCH_MAIN_ID%%, | ||
"componentId": "keboola.ex-db-mysql", | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%", | ||
"path": "extractor/keboola.ex-db-mysql/with-rows", | ||
"rows": [ | ||
{ | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_DISABLED_ID%%", | ||
"path": "rows/disabled" | ||
} | ||
] | ||
} | ||
] | ||
} |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...li/push/ignore-configurations/in/main/extractor/keboola.ex-db-mysql/with-rows/config.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,7 @@ | ||
{ | ||
"parameters": { | ||
"db": { | ||
"host": "mysql.example.com" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...e-configurations/in/main/extractor/keboola.ex-db-mysql/with-rows/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
.../cli/push/ignore-configurations/in/main/extractor/keboola.ex-db-mysql/with-rows/meta.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,4 @@ | ||
{ | ||
"name": "with-rows", | ||
"isDisabled": false | ||
} |
5 changes: 5 additions & 0 deletions
5
...-configurations/in/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/config.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,5 @@ | ||
{ | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ns/in/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
...re-configurations/in/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/meta.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,4 @@ | ||
{ | ||
"name": "disabled", | ||
"isDisabled": true | ||
} |
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,4 @@ | ||
{ | ||
"name": "Main", | ||
"isDefault": true | ||
} |
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,14 @@ | ||
{ | ||
"allBranchesConfigs": [], | ||
"branches": [ | ||
{ | ||
"branch": { | ||
"name": "Main", | ||
"isDefault": true | ||
}, | ||
"configs": [ | ||
"with-rows" | ||
] | ||
} | ||
] | ||
} |
Empty file.
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 @@ | ||
keboola.ex-db-mysql/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%/%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_TEST_VIEW_ID%% |
54 changes: 54 additions & 0 deletions
54
test/cli/push/ignore-configurations/out/.keboola/manifest.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,54 @@ | ||
{ | ||
"version": 2, | ||
"project": { | ||
"id": %%TEST_KBC_PROJECT_ID%%, | ||
"apiHost": "%%TEST_KBC_STORAGE_API_HOST%%" | ||
}, | ||
"allowTargetEnv": false, | ||
"sortBy": "path", | ||
"naming": { | ||
"branch": "{branch_name}", | ||
"config": "{component_type}/{component_id}/{config_name}", | ||
"configRow": "rows/{config_row_name}", | ||
"schedulerConfig": "schedules/{config_name}", | ||
"sharedCodeConfig": "_shared/{target_component_id}", | ||
"sharedCodeConfigRow": "codes/{config_row_name}", | ||
"variablesConfig": "variables", | ||
"variablesValuesRow": "values/{config_row_name}", | ||
"dataAppConfig": "app/{component_id}/{config_name}" | ||
}, | ||
"allowedBranches": [ | ||
"__all__" | ||
], | ||
"ignoredComponents": [], | ||
"templates": { | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"name": "keboola", | ||
"url": "https://github.com/keboola/keboola-as-code-templates.git", | ||
"ref": "main" | ||
} | ||
] | ||
}, | ||
"branches": [ | ||
{ | ||
"id": %%TEST_BRANCH_MAIN_ID%%, | ||
"path": "main" | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"branchId": %%TEST_BRANCH_MAIN_ID%%, | ||
"componentId": "keboola.ex-db-mysql", | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ID%%", | ||
"path": "extractor/keboola.ex-db-mysql/with-rows", | ||
"rows": [ | ||
{ | ||
"id": "%%TEST_BRANCH_MAIN_CONFIG_WITH_ROWS_ROW_DISABLED_ID%%", | ||
"path": "rows/disabled" | ||
} | ||
] | ||
} | ||
] | ||
} |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...i/push/ignore-configurations/out/main/extractor/keboola.ex-db-mysql/with-rows/config.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,7 @@ | ||
{ | ||
"parameters": { | ||
"db": { | ||
"host": "mysql.example.com" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...-configurations/out/main/extractor/keboola.ex-db-mysql/with-rows/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
...cli/push/ignore-configurations/out/main/extractor/keboola.ex-db-mysql/with-rows/meta.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,4 @@ | ||
{ | ||
"name": "with-rows", | ||
"isDisabled": false | ||
} |
5 changes: 5 additions & 0 deletions
5
...configurations/out/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/config.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,5 @@ | ||
{ | ||
"parameters": { | ||
"incremental": false | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...s/out/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/description.md
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 @@ | ||
test fixture |
4 changes: 4 additions & 0 deletions
4
...e-configurations/out/main/extractor/keboola.ex-db-mysql/with-rows/rows/disabled/meta.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,4 @@ | ||
{ | ||
"name": "disabled", | ||
"isDisabled": true | ||
} |
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,4 @@ | ||
{ | ||
"name": "Main", | ||
"isDefault": true | ||
} |