Skip to content

Commit ddabcd2

Browse files
committed
fix(project): make maxTasksPerUser editable
1 parent a1dbcf4 commit ddabcd2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

functions/definition/project/common.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ FbProjectUpdateInput:
9595
type: string
9696
status:
9797
type: FbEnumProjectStatus
98+
maxTasksPerUser:
99+
optional: true
100+
type: int
98101
contributorCount:
99102
type: int
100103
progress:
@@ -114,9 +117,6 @@ FbProjectCreateOnlyInput:
114117
type: int
115118
groupSize:
116119
type: int
117-
maxTasksPerUser:
118-
optional: true
119-
type: int
120120
projectId:
121121
type: string
122122
projectType:

functions/generated/pyfirebase/pyfirebase_mapswipe/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class FbProjectUpdateInput(TypesyncModel):
157157
manualUrl: str | TypesyncUndefined | None = UNDEFINED
158158
teamId: str | TypesyncUndefined | None = UNDEFINED
159159
status: FbEnumProjectStatus
160+
maxTasksPerUser: int | TypesyncUndefined | None = UNDEFINED
160161
contributorCount: int
161162
progress: int
162163

@@ -176,6 +177,8 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
176177
raise ValueError("'manualUrl' field cannot be set to None")
177178
if name == "teamId" and value is None:
178179
raise ValueError("'teamId' field cannot be set to None")
180+
if name == "maxTasksPerUser" and value is None:
181+
raise ValueError("'maxTasksPerUser' field cannot be set to None")
179182
super().__setattr__(name, value)
180183

181184

@@ -186,7 +189,6 @@ class FbProjectCreateOnlyInput(TypesyncModel):
186189
createdBy: str
187190
groupMaxSize: int
188191
groupSize: int
189-
maxTasksPerUser: int | TypesyncUndefined | None = UNDEFINED
190192
projectId: str
191193
projectType: FbEnumProjectType
192194
requiredResults: int
@@ -198,8 +200,6 @@ class Config:
198200

199201
@typing.override
200202
def __setattr__(self, name: str, value: typing.Any) -> None:
201-
if name == "maxTasksPerUser" and value is None:
202-
raise ValueError("'maxTasksPerUser' field cannot be set to None")
203203
super().__setattr__(name, value)
204204

205205

0 commit comments

Comments
 (0)