From 9f9c344789781a1e08dd150991a5813679155647 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Tue, 10 Sep 2024 22:20:38 +0000 Subject: [PATCH] fix!: remove `isInitialProject` from project settings [Gregor rightly pointed out that this value is synced][0]. Given that this value is currently unused on the frontend, we should remove it. [0]: https://github.com/digidem/comapeo-core/issues/751#issuecomment-2337594457 --- proto/projectSettings/v1.proto | 1 - schema/projectSettings/v1.json | 6 +----- test/fixtures/good-docs-completed.js | 1 - test/fixtures/good-docs-minimal.js | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/proto/projectSettings/v1.proto b/proto/projectSettings/v1.proto index af590a1..a6a4c41 100644 --- a/proto/projectSettings/v1.proto +++ b/proto/projectSettings/v1.proto @@ -30,5 +30,4 @@ message ProjectSettings_1 { optional DefaultPresets defaultPresets = 2; optional ConfigMetadata configMetadata = 3; optional string name = 4; - bool isInitialProject = 5; } diff --git a/schema/projectSettings/v1.json b/schema/projectSettings/v1.json index 07d6e26..9e715f1 100644 --- a/schema/projectSettings/v1.json +++ b/schema/projectSettings/v1.json @@ -49,12 +49,8 @@ }, "additionalProperties": false, "required": ["name", "buildDate", "importDate", "fileVersion"] - }, - "isInitialProject": { - "type": "boolean", - "description": "this allows for checking if the user has already joined a project or if its on the initial 'default' project" } }, - "required": ["schemaName", "isInitialProject"], + "required": ["schemaName"], "additionalProperties": false } diff --git a/test/fixtures/good-docs-completed.js b/test/fixtures/good-docs-completed.js index 76d0ec1..0aa08ce 100644 --- a/test/fixtures/good-docs-completed.js +++ b/test/fixtures/good-docs-completed.js @@ -97,7 +97,6 @@ export const goodDocsCompleted = [ buildDate: cachedValues.configMetadata.buildDate, importDate: cachedValues.configMetadata.importDate, }, - isInitialProject: true, deleted: false, }, expected: {}, diff --git a/test/fixtures/good-docs-minimal.js b/test/fixtures/good-docs-minimal.js index c216e55..7175d84 100644 --- a/test/fixtures/good-docs-minimal.js +++ b/test/fixtures/good-docs-minimal.js @@ -46,7 +46,6 @@ export const goodDocsMinimal = [ }, links: [], deleted: false, - isInitialProject: false, }, expected: {}, },