Skip to content

Commit

Permalink
feat: add submission ids as a dataset property for the entities (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujanadh authored Dec 20, 2024
1 parent 2b9ca09 commit a79edb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/app/central/central_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class EntityMappingStatus(EntityOsmID, EntityTaskID):

updatedAt: Optional[str] = Field(exclude=True) # noqa: N815
status: Optional[EntityState] = None
submission_ids: Optional[str] = None

@computed_field
@property
Expand Down
1 change: 1 addition & 0 deletions src/backend/app/db/postgis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def add_required_geojson_properties(
properties["changeset"] = 1
if not properties.get("timestamp"):
properties["timestamp"] = timestamp().strftime("%Y-%m-%dT%H:%M:%S")
properties["submission_ids"] = None

return geojson

Expand Down
1 change: 1 addition & 0 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ async def generate_project_files(
entity_properties = list(
feature_collection.get("features")[0].get("properties").keys()
)
entity_properties.append("submission_ids")

# Split extract by task area
log.debug("Splitting data extract per task area")
Expand Down

0 comments on commit a79edb1

Please sign in to comment.