From 28a422e83ae90ee3725903e9d6e093f5ab24b7e5 Mon Sep 17 00:00:00 2001 From: Corentin Forler Date: Tue, 17 Sep 2024 14:36:36 +0200 Subject: [PATCH] refactor(s3): Remove unused settings fields - offsite_backups_provider - data_40 --- .../doctype/press_settings/press_settings.json | 15 +-------------- .../doctype/press_settings/press_settings.py | 2 -- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/press/press/doctype/press_settings/press_settings.json b/press/press/doctype/press_settings/press_settings.json index 72b8bb81a8..952cdb0655 100644 --- a/press/press/doctype/press_settings/press_settings.json +++ b/press/press/doctype/press_settings/press_settings.json @@ -56,8 +56,6 @@ "backup_region", "aws_s3_bucket", "offsite_backups_endpoint", - "offsite_backups_provider", - "data_40", "backup_rotation_scheme", "column_break_35", "offsite_backups_access_key_id", @@ -405,22 +403,11 @@ "fieldtype": "Data", "label": "Backup Region" }, - { - "default": "AWS S3", - "fieldname": "offsite_backups_provider", - "fieldtype": "Select", - "label": "Backup Provider", - "options": "AWS S3" - }, { "fieldname": "aws_s3_bucket", "fieldtype": "Data", "label": "Bucket Name" }, - { - "fieldname": "data_40", - "fieldtype": "Data" - }, { "fieldname": "backup_rotation_scheme", "fieldtype": "Select", @@ -1249,7 +1236,7 @@ ], "issingle": 1, "links": [], - "modified": "2024-09-17 14:34:29.496884", + "modified": "2024-09-17 14:35:35.286062", "modified_by": "Administrator", "module": "Press", "name": "Press Settings", diff --git a/press/press/doctype/press_settings/press_settings.py b/press/press/doctype/press_settings/press_settings.py index 6725675e4c..3a3aa6f52f 100644 --- a/press/press/doctype/press_settings/press_settings.py +++ b/press/press/doctype/press_settings/press_settings.py @@ -50,7 +50,6 @@ class PressSettings(Document): code_server_password: DF.Data | None commission: DF.Float compress_app_cache: DF.Check - data_40: DF.Data | None default_outgoing_id: DF.Data | None default_outgoing_pass: DF.Data | None disable_agent_job_deduplication: DF.Check @@ -98,7 +97,6 @@ class PressSettings(Document): offsite_backups_access_key_id: DF.Data | None offsite_backups_count: DF.Int offsite_backups_endpoint: DF.Data | None - offsite_backups_provider: DF.Literal["AWS S3"] offsite_backups_secret_access_key: DF.Password | None plausible_api_key: DF.Password | None plausible_site_id: DF.Data | None