From 8ff8df0e112000373661c70c7b4f85591ecb866d Mon Sep 17 00:00:00 2001 From: Robert Duncan <74115869+robproject@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:24:15 -0700 Subject: [PATCH] V2 update ci (#10) * fix: v2 update ci * fix: ci release --------- Co-authored-by: Robert Duncan --- .github/workflows/release.yaml | 19 +- frappe_schema_json_diff.py | 25 +- test_files/base/mrd.txt | 6 - test_files/custom/contact.json | 368 ------------------ test_files/head/acmr.txt | 6 - .../head/test_files/custom/bankacct.json | 177 --------- .../head/test_files/custom/contact.json | 368 ------------------ test_files/head/test_files/new_doctype_1.json | 78 ---- .../head/test_files/new_doctype_added.json | 78 ---- .../head/test_files/new_doctype_modified.json | 76 ---- .../test_files/new_doctype_renamed_new.json | 77 ---- .../new_doctype_renamodified_new.json | 78 ---- 12 files changed, 20 insertions(+), 1336 deletions(-) delete mode 100644 test_files/base/mrd.txt delete mode 100644 test_files/custom/contact.json delete mode 100644 test_files/head/acmr.txt delete mode 100644 test_files/head/test_files/custom/bankacct.json delete mode 100644 test_files/head/test_files/custom/contact.json delete mode 100644 test_files/head/test_files/new_doctype_1.json delete mode 100644 test_files/head/test_files/new_doctype_added.json delete mode 100644 test_files/head/test_files/new_doctype_modified.json delete mode 100644 test_files/head/test_files/new_doctype_renamed_new.json delete mode 100644 test_files/head/test_files/new_doctype_renamodified_new.json diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f724169..6886eb9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,9 +1,8 @@ name: Release on: push: - branches: [main] - pull_request: - branches: [main] + branches: + - main jobs: Release: @@ -15,12 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 with: - cache: npm - node-version: lts/* - - run: npm clean-install - - run: corepack npm audit signatures - - run: npx semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + - uses: python-semantic-release/python-semantic-release@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + git_committer_name: Robert Duncan + git_committer_email: robirtduncan@gmail.com diff --git a/frappe_schema_json_diff.py b/frappe_schema_json_diff.py index 0b33bbf..034a42b 100755 --- a/frappe_schema_json_diff.py +++ b/frappe_schema_json_diff.py @@ -350,16 +350,15 @@ def print_custom(path: str) -> None: new_hex = sys.argv[6] table_mode = int(os.getenv("TABLE_MODE")) - try: - if old_path.split(".")[-1] == "json" or new_path.split(".")[-1] == "json": - if new_hex == ".": - console.log( - f"[bold][red]Removed: {old_path.split('/')[-1]}[/red][/bold]" - ) - else: - diff = FrappeDiff(old_path, new_path, table_mode) - diff.prep() - diff.print() - except Exception as e: - print(e) - console.log("\n") + if old_path.rsplit(".", maxsplit=1)[-1] == "json": + if new_hex == ".": + console.log( + f"[bold][red]Removed: {old_path.split('/')[-1]}[/red][/bold]" + ) + else: + if "custom" in new_path: + console.log(f"[bold][magenta]Custom File:[/magenta][/bold]") + diff = FrappeDiff(old_path, new_path, table_mode) + diff.prep() + diff.print() + console.log() diff --git a/test_files/base/mrd.txt b/test_files/base/mrd.txt deleted file mode 100644 index 595aa10..0000000 --- a/test_files/base/mrd.txt +++ /dev/null @@ -1,6 +0,0 @@ -M,test_files/new_doctype_modified.json -R,test_files/new_doctype_renamed_old.json,test_files/new_doctype_renamed_new.json -R,test_files/new_doctype_renamodified_old.json,test_files/new_doctype_renamodified_new.json -D,test_files/new_doctype_deleted.json -M,test_files/custom/bankacct.json -M,test_files/custom/contact.json diff --git a/test_files/custom/contact.json b/test_files/custom/contact.json deleted file mode 100644 index a1f7c53..0000000 --- a/test_files/custom/contact.json +++ /dev/null @@ -1,368 +0,0 @@ -{ - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:55:02.657466", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_1", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 32, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "unsubscribed", - "label": "Custom Field 1", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:55:02.657466", - "modified_by": "Administrator", - "name": "Contact-custom_field_1", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:43.718468", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_2", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 32, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_1", - "label": "Custom Field 2", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:43.718468", - "modified_by": "Administrator", - "name": "Contact-custom_field_2", - "no_copy": 0, - "non_negative": 0, - "options": "Address", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:44.205973", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_3", - "fieldtype": "Select", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 33, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_2", - "label": "Custom Field 3", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:44.205973", - "modified_by": "Administrator", - "name": "Contact-custom_field_3", - "no_copy": 0, - "non_negative": 0, - "options": "Option 1\nOption 2\nOption 3", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:44.636580", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_4", - "fieldtype": "Duration", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 34, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_3", - "label": "Custom Field 4", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:44.636580", - "modified_by": "Administrator", - "name": "Contact-custom_field_4", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:45.078269", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_5", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 35, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_4", - "label": "Custom Field 5", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:45.078269", - "modified_by": "Administrator", - "name": "Contact-custom_field_5", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:45.518125", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_6", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 36, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_5", - "label": "Custom Field 6", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:45.518125", - "modified_by": "Administrator", - "name": "Contact-custom_field_6", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Contact", - "property_setters": [], - "sync_on_migrate": 1 -} \ No newline at end of file diff --git a/test_files/head/acmr.txt b/test_files/head/acmr.txt deleted file mode 100644 index 81147d1..0000000 --- a/test_files/head/acmr.txt +++ /dev/null @@ -1,6 +0,0 @@ -A,head/test_files/new_doctype_added.json -M,head/test_files/new_doctype_modified.json -R,head/test_files/new_doctype_renamed_new.json -R,head/test_files/new_doctype_renamodified_new.json -M,head/test_files/custom/bankacct.json -M,head/test_files/custom/contact.json diff --git a/test_files/head/test_files/custom/bankacct.json b/test_files/head/test_files/custom/bankacct.json deleted file mode 100644 index 9956041..0000000 --- a/test_files/head/test_files/custom/bankacct.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-06-30 11:20:02.666689", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Bank Account", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "check_number", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 10, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "company", - "label": "Last Used Check Number", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-07-29 01:01:26.973748", - "modified_by": "Administrator", - "name": "Bank Account-check_number", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-07-29 10:48:39.975048", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Bank Account", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "added_row", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 29, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "mask", - "label": "Added Row", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-07-29 10:48:39.975048", - "modified_by": "Administrator", - "name": "Bank Account-added_row", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Bank Account", - "property_setters": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2022-07-29 10:48:39.615213", - "default_value": null, - "doc_type": "Bank Account", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "iban", - "idx": 0, - "modified": "2022-07-29 10:48:39.615213", - "modified_by": "Administrator", - "name": "Bank Account-iban-description", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "property": "description", - "property_type": "Text", - "row_name": null, - "value": "Modded Value" - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "creation": "2022-07-29 10:48:39.230892", - "default_value": null, - "doc_type": "Bank Account", - "docstatus": 0, - "doctype_or_field": "DocField", - "field_name": "party", - "idx": 0, - "modified": "2022-07-29 10:48:39.230892", - "modified_by": "Administrator", - "name": "Bank Account-party-hidden", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "property": "hidden", - "property_type": "Check", - "row_name": null, - "value": "1" - } - ], - "sync_on_migrate": 1 -} \ No newline at end of file diff --git a/test_files/head/test_files/custom/contact.json b/test_files/head/test_files/custom/contact.json deleted file mode 100644 index a1f7c53..0000000 --- a/test_files/head/test_files/custom/contact.json +++ /dev/null @@ -1,368 +0,0 @@ -{ - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:55:02.657466", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_1", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 32, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "unsubscribed", - "label": "Custom Field 1", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:55:02.657466", - "modified_by": "Administrator", - "name": "Contact-custom_field_1", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:43.718468", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_2", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 32, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_1", - "label": "Custom Field 2", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:43.718468", - "modified_by": "Administrator", - "name": "Contact-custom_field_2", - "no_copy": 0, - "non_negative": 0, - "options": "Address", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:44.205973", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_3", - "fieldtype": "Select", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 33, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_2", - "label": "Custom Field 3", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:44.205973", - "modified_by": "Administrator", - "name": "Contact-custom_field_3", - "no_copy": 0, - "non_negative": 0, - "options": "Option 1\nOption 2\nOption 3", - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:44.636580", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_4", - "fieldtype": "Duration", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 34, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_3", - "label": "Custom Field 4", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:44.636580", - "modified_by": "Administrator", - "name": "Contact-custom_field_4", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:45.078269", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_5", - "fieldtype": "Text", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 35, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_4", - "label": "Custom Field 5", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:45.078269", - "modified_by": "Administrator", - "name": "Contact-custom_field_5", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2022-08-09 16:56:45.518125", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Contact", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_field_6", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 36, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "custom_field_5", - "label": "Custom Field 6", - "length": 0, - "mandatory_depends_on": null, - "modified": "2022-08-09 16:56:45.518125", - "modified_by": "Administrator", - "name": "Contact-custom_field_6", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - } - ], - "custom_perms": [], - "doctype": "Contact", - "property_setters": [], - "sync_on_migrate": 1 -} \ No newline at end of file diff --git a/test_files/head/test_files/new_doctype_1.json b/test_files/head/test_files/new_doctype_1.json deleted file mode 100644 index 73fde0c..0000000 --- a/test_files/head/test_files/new_doctype_1.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2022-08-09 16:52:13.543874", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "new_docfield_1", - "new_docfield_2", - "new_docfield_3", - "new_docfield_4", - "new_docfield_5", - "new_docfield_6", - "new_docfield_7" - ], - "fields": [ - { - "fieldname": "new_docfield_1", - "fieldtype": "Data", - "label": "New Docfield 1" - }, - { - "fieldname": "new_docfield_2", - "fieldtype": "Int", - "label": "New Docfield 2" - }, - { - "fieldname": "new_docfield_3", - "fieldtype": "Link", - "label": "New Docfield 3", - "options": "Contact" - }, - { - "fieldname": "new_docfield_4", - "fieldtype": "Duration", - "label": "New Docfield 4" - }, - { - "fieldname": "new_docfield_5", - "fieldtype": "Data", - "label": "New Docfield 5" - }, - { - "fieldname": "new_docfield_6", - "fieldtype": "Datetime", - "label": "New Docfield 6" - }, - { - "fieldname": "new_docfield_7", - "fieldtype": "Data", - "label": "New Docfield 7" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2022-08-09 17:06:43.174784", - "modified_by": "Administrator", - "module": "New Module", - "name": "New Doctype", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC" -} \ No newline at end of file diff --git a/test_files/head/test_files/new_doctype_added.json b/test_files/head/test_files/new_doctype_added.json deleted file mode 100644 index 73fde0c..0000000 --- a/test_files/head/test_files/new_doctype_added.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2022-08-09 16:52:13.543874", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "new_docfield_1", - "new_docfield_2", - "new_docfield_3", - "new_docfield_4", - "new_docfield_5", - "new_docfield_6", - "new_docfield_7" - ], - "fields": [ - { - "fieldname": "new_docfield_1", - "fieldtype": "Data", - "label": "New Docfield 1" - }, - { - "fieldname": "new_docfield_2", - "fieldtype": "Int", - "label": "New Docfield 2" - }, - { - "fieldname": "new_docfield_3", - "fieldtype": "Link", - "label": "New Docfield 3", - "options": "Contact" - }, - { - "fieldname": "new_docfield_4", - "fieldtype": "Duration", - "label": "New Docfield 4" - }, - { - "fieldname": "new_docfield_5", - "fieldtype": "Data", - "label": "New Docfield 5" - }, - { - "fieldname": "new_docfield_6", - "fieldtype": "Datetime", - "label": "New Docfield 6" - }, - { - "fieldname": "new_docfield_7", - "fieldtype": "Data", - "label": "New Docfield 7" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2022-08-09 17:06:43.174784", - "modified_by": "Administrator", - "module": "New Module", - "name": "New Doctype", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC" -} \ No newline at end of file diff --git a/test_files/head/test_files/new_doctype_modified.json b/test_files/head/test_files/new_doctype_modified.json deleted file mode 100644 index 4114228..0000000 --- a/test_files/head/test_files/new_doctype_modified.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2022-08-09 16:52:13.543874", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "new_docfield_1", - "new_docfield_2", - "new_docfield_3", - "new_docfield_4", - "new_docfield_5", - "new_docfield_6", - "new_docfield_7" - ], - "fields": [ - { - "fieldname": "new_docfield_1", - "label": "New Docfield 1" - }, - { - "fieldname": "new_docfield_2", - "fieldtype": "Data", - "label": "New Docfield 2" - }, - { - "fieldname": "new_docfield_3", - "fieldtype": "Link", - "label": "New Docfield 3", - "options": "Contact" - }, - { - "fieldname": "new_docfield_4", - "label": "New Docfield 4" - }, - { - "fieldname": "new_docfield_5", - "fieldtype": "Data", - "label": "New Docfield 5" - }, - { - "fieldname": "new_docfield_6", - "fieldtype": "Datetime", - "label": "New Docfield 6" - }, - { - "fieldname": "new_docfield_7", - "fieldtype": "Data", - "label": "New Docfield 7" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2022-08-09 17:06:43.174784", - "modified_by": "Administrator", - "module": "New Module", - "name": "New Doctype", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC" -} \ No newline at end of file diff --git a/test_files/head/test_files/new_doctype_renamed_new.json b/test_files/head/test_files/new_doctype_renamed_new.json deleted file mode 100644 index 0c2dea0..0000000 --- a/test_files/head/test_files/new_doctype_renamed_new.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2022-08-09 16:52:13.543874", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "new_docfield_1", - "new_docfield_2", - "new_docfield_3", - "new_docfield_4", - "new_docfield_5", - "new_docfield_6", - "new_docfield_7" - ], - "fields": [ - { - "fieldname": "new_docfield_1", - "label": "New Docfield 1" - }, - { - "fieldname": "new_docfield_2", - "fieldtype": "Int", - "label": "New Docfield 2" - }, - { - "fieldname": "new_docfield_3", - "fieldtype": "Link", - "label": "New Docfield 3", - "options": "Address" - }, - { - "fieldname": "new_docfield_4", - "fieldtype": "Date", - "label": "New Label" - }, - { - "fieldname": "new_docfield_5", - "fieldtype": "Data", - "label": "New Docfield 5" - }, - { - "fieldname": "new_docfield_6", - "fieldtype": "Datetime", - "label": "New Docfield 6" - }, - { - "fieldname": "new_docfield_7", - "fieldtype": "Data", - "label": "New Docfield 7" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2022-08-11 17:16:42.174784", - "modified_by": "Administrator", - "module": "New Module", - "name": "New Doctype", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC" -} \ No newline at end of file diff --git a/test_files/head/test_files/new_doctype_renamodified_new.json b/test_files/head/test_files/new_doctype_renamodified_new.json deleted file mode 100644 index c42fbf4..0000000 --- a/test_files/head/test_files/new_doctype_renamodified_new.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2022-08-09 16:52:13.543874", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "new_docfield_1", - "new_docfield_2", - "new_docfield_3", - "new_docfield_4", - "new_docfield_5", - "new_docfield_6", - "new_docfield_7" - ], - "fields": [ - { - "fieldname": "new_docfield_1", - "fieldtype": "Data", - "label": "New Docfield 1" - }, - { - "fieldname": "new_docfield_2", - "fieldtype": "Int", - "label": "New Docfield 2" - }, - { - "fieldname": "new_docfield_3", - "fieldtype": "Link", - "label": "New Docfield 3", - "options": "Contact" - }, - { - "fieldname": "new_docfield_4", - "fieldtype": "Duration", - "label": "New Docfield 4" - }, - { - "fieldname": "new_docfield_5", - "fieldtype": "Data", - "label": "New Docfield 5" - }, - { - "fieldname": "new_docfield_6", - "fieldtype": "Datetime", - "label": "New Docfield 6" - }, - { - "fieldname": "new_docfield_7", - "fieldtype": "Data", - "label": "New Docfield 7" - } - ], - "index_web_pages_for_search": 1, - "links": [], - "modified": "2022-08-09 17:06:43.174784", - "modified_by": "Administrator", - "module": "New Module", - "name": "New Doctype", - "owner": "Administrator", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "sort_field": "modified", - "sort_order": "DESC" -} \ No newline at end of file