Skip to content

BGDIINF_SB-2729: Fixed save KML drawing error handling - from post review of #326#331

Merged
ltshb merged 4 commits intodevelopfrom
bug-BGDIINF_SB-2729-save-drawing
Dec 22, 2022
Merged

BGDIINF_SB-2729: Fixed save KML drawing error handling - from post review of #326#331
ltshb merged 4 commits intodevelopfrom
bug-BGDIINF_SB-2729-save-drawing

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Dec 22, 2022

Now if the loading of the KML failed in the drawing mode, we remove the
kml layer as it is not selectable and we print an error message. The loading
of the kml to translate it to a drawing will be automatically retried. In case
of error we also display an error message at the same place as for saving error.

Those errors message are also now displayed in red.

Also renamed the savingStatus to drawingState which refer more to a drawing state
to make the code clearer as it is also used to check if any modification on
the drawing has been done.

Improved the error handling and user experience in case of network failure.

Test link

@github-actions github-actions bot added the bug label Dec 22, 2022
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2729-save-drawing branch from 000034b to ff04bb3 Compare December 22, 2022 08:20
@ltshb ltshb requested a review from jedef December 22, 2022 08:20
@ltshb ltshb marked this pull request as ready for review December 22, 2022 08:20
Copy link
Contributor

@jedef jedef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from a small typo, its all good for me. Nice work.

@ltshb ltshb force-pushed the bug-BGDIINF_SB-2729-save-drawing branch 3 times, most recently from 3d65041 to 861ca4a Compare December 22, 2022 14:19
Now if the loading of the KML failed in the drawing mode, we remove the
kml layer as it is not selectable and we print an error message. The loading
of the kml to translate it to a drawing will be automatically retried. In case
of error we also display an error message at the same place as for saving error.

Those errors message are also now displayed in red.

Also renamed the savingStatus to drawingState which refer more to a drawing state
to make the code clearer as it is also used to check if any modification on
the drawing has been done.

Improved the error handling and user experience in case of network failure.
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2729-save-drawing branch from 861ca4a to 7b5d8df Compare December 22, 2022 14:39
Avoid saving new empty drawing.
@ltshb ltshb merged commit 7462da0 into develop Dec 22, 2022
@ltshb ltshb deleted the bug-BGDIINF_SB-2729-save-drawing branch December 22, 2022 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants