Skip to content

Commit 642f990

Browse files
authored
Merge pull request #42 from mapswipe/fix/project-progress-updates
2 parents 23eadc9 + ddabcd2 commit 642f990

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

functions/definition/project/common.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ FbProjectReadonlyType:
4747
type:
4848
type: object
4949
fields:
50-
contributorCount:
51-
type: int
52-
progress:
53-
type: int
5450
resultCount:
5551
type: int
5652

@@ -99,6 +95,13 @@ FbProjectUpdateInput:
9995
type: string
10096
status:
10197
type: FbEnumProjectStatus
98+
maxTasksPerUser:
99+
optional: true
100+
type: int
101+
contributorCount:
102+
type: int
103+
progress:
104+
type: int
102105

103106
FbProjectCreateOnlyInput:
104107
model: alias
@@ -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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ class FbEnumProjectType(enum.Enum):
127127
class FbProjectReadonlyType(TypesyncModel):
128128
"""Represents project fields that cannot be updated from backend"""
129129

130-
contributorCount: int
131-
progress: int
132130
resultCount: int
133131

134132
class Config:
@@ -159,6 +157,9 @@ class FbProjectUpdateInput(TypesyncModel):
159157
manualUrl: str | TypesyncUndefined | None = UNDEFINED
160158
teamId: str | TypesyncUndefined | None = UNDEFINED
161159
status: FbEnumProjectStatus
160+
maxTasksPerUser: int | TypesyncUndefined | None = UNDEFINED
161+
contributorCount: int
162+
progress: int
162163

163164
class Config:
164165
use_enum_values = False
@@ -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)