-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): handles fields and collections naming conflicts in snapshot…
… files (#119) (#120) * feat(e2e): add test * feat(e2e): add test for colletions conflicts * fix(e2e): test for colletions * fix(cli): deal fields and collection naming conflicts * chore: update package-lock.json
- Loading branch information
1 parent
5d4c454
commit 955233a
Showing
29 changed files
with
487 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/dashboards.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/flows.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/folders.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/operations.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/panels.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/permissions.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 @@ | ||
[] |
34 changes: 34 additions & 0 deletions
34
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/policies.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,34 @@ | ||
[ | ||
{ | ||
"name": "Administrator", | ||
"icon": "verified", | ||
"description": "$t:admin_description", | ||
"ip_access": null, | ||
"enforce_tfa": false, | ||
"admin_access": true, | ||
"app_access": true, | ||
"roles": [ | ||
{ | ||
"role": "_sync_default_admin_role", | ||
"sort": null | ||
} | ||
], | ||
"_syncId": "_sync_default_admin_policy" | ||
}, | ||
{ | ||
"name": "$t:public_label", | ||
"icon": "public", | ||
"description": "$t:public_description", | ||
"ip_access": null, | ||
"enforce_tfa": false, | ||
"admin_access": false, | ||
"app_access": false, | ||
"roles": [ | ||
{ | ||
"role": null, | ||
"sort": 1 | ||
} | ||
], | ||
"_syncId": "_sync_default_public_policy" | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/presets.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 changes: 9 additions & 0 deletions
9
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/roles.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 @@ | ||
[ | ||
{ | ||
"name": "Administrator", | ||
"icon": "verified", | ||
"description": "$t:admin_description", | ||
"parent": null, | ||
"_syncId": "_sync_default_admin_role" | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/settings.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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
packages/e2e/dumps/sources/group-and-field-names-conflict/collections/translations.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 @@ | ||
[] |
25 changes: 25 additions & 0 deletions
25
...ages/e2e/dumps/sources/group-and-field-names-conflict/snapshot/collections/Profile_2.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,25 @@ | ||
{ | ||
"collection": "Profile", | ||
"meta": { | ||
"accountability": "all", | ||
"archive_app_filter": true, | ||
"archive_field": null, | ||
"archive_value": null, | ||
"collapse": "open", | ||
"collection": "Profile", | ||
"color": null, | ||
"display_template": null, | ||
"group": null, | ||
"hidden": false, | ||
"icon": "folder", | ||
"item_duplication_fields": null, | ||
"note": null, | ||
"preview_url": null, | ||
"singleton": false, | ||
"sort": 1, | ||
"sort_field": null, | ||
"translations": null, | ||
"unarchive_value": null, | ||
"versioning": false | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...mps/sources/group-and-field-names-conflict/snapshot/collections/directus_sync_id_map.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 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"meta": null, | ||
"schema": { | ||
"name": "directus_sync_id_map" | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
packages/e2e/dumps/sources/group-and-field-names-conflict/snapshot/collections/profile.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,28 @@ | ||
{ | ||
"collection": "profile", | ||
"meta": { | ||
"accountability": "all", | ||
"archive_app_filter": true, | ||
"archive_field": null, | ||
"archive_value": null, | ||
"collapse": "open", | ||
"collection": "profile", | ||
"color": null, | ||
"display_template": null, | ||
"group": null, | ||
"hidden": false, | ||
"icon": null, | ||
"item_duplication_fields": null, | ||
"note": null, | ||
"preview_url": null, | ||
"singleton": false, | ||
"sort": null, | ||
"sort_field": null, | ||
"translations": null, | ||
"unarchive_value": null, | ||
"versioning": false | ||
}, | ||
"schema": { | ||
"name": "profile" | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...urces/group-and-field-names-conflict/snapshot/fields/directus_sync_id_map/created_at.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,24 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"field": "created_at", | ||
"type": "dateTime", | ||
"meta": null, | ||
"schema": { | ||
"name": "created_at", | ||
"table": "directus_sync_id_map", | ||
"data_type": "datetime", | ||
"default_value": "CURRENT_TIMESTAMP", | ||
"max_length": null, | ||
"numeric_precision": null, | ||
"numeric_scale": null, | ||
"is_nullable": true, | ||
"is_unique": false, | ||
"is_indexed": true, | ||
"is_primary_key": false, | ||
"is_generated": false, | ||
"generation_expression": null, | ||
"has_auto_increment": false, | ||
"foreign_key_table": null, | ||
"foreign_key_column": null | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...dumps/sources/group-and-field-names-conflict/snapshot/fields/directus_sync_id_map/id.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,24 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"field": "id", | ||
"type": "integer", | ||
"meta": null, | ||
"schema": { | ||
"name": "id", | ||
"table": "directus_sync_id_map", | ||
"data_type": "integer", | ||
"default_value": null, | ||
"max_length": null, | ||
"numeric_precision": null, | ||
"numeric_scale": null, | ||
"is_nullable": false, | ||
"is_unique": false, | ||
"is_indexed": false, | ||
"is_primary_key": true, | ||
"is_generated": false, | ||
"generation_expression": null, | ||
"has_auto_increment": true, | ||
"foreign_key_table": null, | ||
"foreign_key_column": null | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...sources/group-and-field-names-conflict/snapshot/fields/directus_sync_id_map/local_id.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,24 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"field": "local_id", | ||
"type": "string", | ||
"meta": null, | ||
"schema": { | ||
"name": "local_id", | ||
"table": "directus_sync_id_map", | ||
"data_type": "varchar", | ||
"default_value": null, | ||
"max_length": 255, | ||
"numeric_precision": null, | ||
"numeric_scale": null, | ||
"is_nullable": false, | ||
"is_unique": false, | ||
"is_indexed": false, | ||
"is_primary_key": false, | ||
"is_generated": false, | ||
"generation_expression": null, | ||
"has_auto_increment": false, | ||
"foreign_key_table": null, | ||
"foreign_key_column": null | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../sources/group-and-field-names-conflict/snapshot/fields/directus_sync_id_map/sync_id.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,24 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"field": "sync_id", | ||
"type": "string", | ||
"meta": null, | ||
"schema": { | ||
"name": "sync_id", | ||
"table": "directus_sync_id_map", | ||
"data_type": "varchar", | ||
"default_value": null, | ||
"max_length": 255, | ||
"numeric_precision": null, | ||
"numeric_scale": null, | ||
"is_nullable": false, | ||
"is_unique": false, | ||
"is_indexed": false, | ||
"is_primary_key": false, | ||
"is_generated": false, | ||
"generation_expression": null, | ||
"has_auto_increment": false, | ||
"foreign_key_table": null, | ||
"foreign_key_column": null | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ps/sources/group-and-field-names-conflict/snapshot/fields/directus_sync_id_map/table.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,24 @@ | ||
{ | ||
"collection": "directus_sync_id_map", | ||
"field": "table", | ||
"type": "string", | ||
"meta": null, | ||
"schema": { | ||
"name": "table", | ||
"table": "directus_sync_id_map", | ||
"data_type": "varchar", | ||
"default_value": null, | ||
"max_length": 255, | ||
"numeric_precision": null, | ||
"numeric_scale": null, | ||
"is_nullable": false, | ||
"is_unique": false, | ||
"is_indexed": false, | ||
"is_primary_key": false, | ||
"is_generated": false, | ||
"generation_expression": null, | ||
"has_auto_increment": false, | ||
"foreign_key_table": null, | ||
"foreign_key_column": null | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/e2e/dumps/sources/group-and-field-names-conflict/snapshot/fields/profile/Content_2.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,25 @@ | ||
{ | ||
"collection": "profile", | ||
"field": "Content", | ||
"type": "alias", | ||
"meta": { | ||
"collection": "profile", | ||
"conditions": null, | ||
"display": null, | ||
"display_options": null, | ||
"field": "Content", | ||
"group": null, | ||
"hidden": false, | ||
"interface": "group-raw", | ||
"note": null, | ||
"options": null, | ||
"readonly": false, | ||
"required": false, | ||
"sort": 3, | ||
"special": ["alias", "no-data", "group"], | ||
"translations": null, | ||
"validation": null, | ||
"validation_message": null, | ||
"width": "full" | ||
} | ||
} |
Oops, something went wrong.