-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement all image processing with gcp files & updated task table to…
… maintain task areas and so on. (#416) * feat: update the gcp files for all project images * feat: update the new fields in tasks tables * feat: update task areas from db to instead of postgis * feat: update task flight time, flight distance & task areas * fix: import errors in project routes * fix: waypoints & waylines counts * fix: only get unique task id based on task events when all image processing.. * fix: issues resolved in user task out lists in dashboard * fixup! fix: issues resolved in user task out lists in dashboard * feat: update assests_url in task tables instead of searching in s3 * fix: run pre-commit for format migartions file * fix: process assests from odm, download issues * feat: update the gcp files for all project images * feat: update the new fields in tasks tables * feat: update task areas from db to instead of postgis * feat: update task flight time, flight distance & task areas * fix: import errors in project routes * fix: waypoints & waylines counts * fix: only get unique task id based on task events when all image processing.. * fix: issues resolved in user task out lists in dashboard * fixup! fix: issues resolved in user task out lists in dashboard * feat: update assests_url in task tables instead of searching in s3 * fix: run pre-commit for format migartions file * fix: process assests from odm, download issues * feat: add dem file on task split api payload * fix: dem data upload section is on view althoiugh the terrian follow option is false * fix: projection creation fail if no fly is [] remove no flyzone key if np fly zone data is not available * feat: remove unused api service `getAllAssetsUrl` * feat: add remove project assets api fetch and display data from project description api * feat: add action and slice for storing assets information of task * feat(task-description-map-section): remove extra call for task information and use data from redux state * feat: remove task-assets-information api and display data from task description api store asests info on redux state on api call success and remove on component unmount update keys as per data information * refactor: comment task assets information services * refactor: remove comment * feat: implement dummy api for upload the task table * fix: remove flight data from waypoints routes --------- Co-authored-by: Sujit <[email protected]>
- Loading branch information
Showing
29 changed files
with
875 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
""" | ||
Revision ID: b18103ac4ab7 | ||
Revises: e23c05f21542 | ||
Create Date: 2024-12-30 11:36:29.762485 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "b18103ac4ab7" | ||
down_revision: Union[str, None] = "e23c05f21542" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column( | ||
"task_events", | ||
"state", | ||
existing_type=postgresql.ENUM( | ||
"REQUEST_FOR_MAPPING", | ||
"UNLOCKED_TO_MAP", | ||
"LOCKED_FOR_MAPPING", | ||
"UNLOCKED_TO_VALIDATE", | ||
"LOCKED_FOR_VALIDATION", | ||
"UNLOCKED_DONE", | ||
"UNFLYABLE_TASK", | ||
"IMAGE_UPLOADED", | ||
"IMAGE_PROCESSING_FAILED", | ||
"IMAGE_PROCESSING_STARTED", | ||
"IMAGE_PROCESSING_FINISHED", | ||
name="state", | ||
), | ||
nullable=False, | ||
) | ||
op.add_column("tasks", sa.Column("total_area_sqkm", sa.Float(), nullable=True)) | ||
op.add_column("tasks", sa.Column("flight_time_minutes", sa.Float(), nullable=True)) | ||
op.add_column("tasks", sa.Column("flight_distance_km", sa.Float(), nullable=True)) | ||
op.add_column( | ||
"tasks", sa.Column("total_image_uploaded", sa.SmallInteger(), nullable=True) | ||
) | ||
op.add_column("tasks", sa.Column("assets_url", sa.String(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("tasks", "assets_url") | ||
op.drop_column("tasks", "total_image_uploaded") | ||
op.drop_column("tasks", "flight_distance_km") | ||
op.drop_column("tasks", "flight_time_minutes") | ||
op.drop_column("tasks", "total_area_sqkm") | ||
op.alter_column( | ||
"task_events", | ||
"state", | ||
existing_type=postgresql.ENUM( | ||
"REQUEST_FOR_MAPPING", | ||
"UNLOCKED_TO_MAP", | ||
"LOCKED_FOR_MAPPING", | ||
"UNLOCKED_TO_VALIDATE", | ||
"LOCKED_FOR_VALIDATION", | ||
"UNLOCKED_DONE", | ||
"UNFLYABLE_TASK", | ||
"IMAGE_UPLOADED", | ||
"IMAGE_PROCESSING_FAILED", | ||
"IMAGE_PROCESSING_STARTED", | ||
"IMAGE_PROCESSING_FINISHED", | ||
name="state", | ||
), | ||
nullable=True, | ||
) | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.