Skip to content

Commit

Permalink
add isInitialProject to ProjectSettings (#215)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomás Ciccola <[email protected]>
  • Loading branch information
tomasciccola and Tomás Ciccola authored Aug 20, 2024
1 parent eeac6a2 commit 67b3113
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions proto/projectSettings/v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ message ProjectSettings_1 {
optional DefaultPresets defaultPresets = 2;
optional ConfigMetadata configMetadata = 3;
optional string name = 4;
bool isInitialProject = 5;
}
6 changes: 5 additions & 1 deletion schema/projectSettings/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@
},
"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"],
"required": ["schemaName", "isInitialProject"],
"additionalProperties": false
}
1 change: 1 addition & 0 deletions test/fixtures/good-docs-completed.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const goodDocsCompleted = [
buildDate: cachedValues.configMetadata.buildDate,
importDate: cachedValues.configMetadata.importDate,
},
isInitialProject: true,
deleted: false,
},
expected: {},
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/good-docs-minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const goodDocsMinimal = [
},
links: [],
deleted: false,
isInitialProject: false,
},
expected: {},
},
Expand Down

0 comments on commit 67b3113

Please sign in to comment.