Skip to content

PB-404 bugfix: removing error on drawing selection#781

Merged
ltkum merged 2 commits intodevelopfrom
PB-404-log-error-on-selecting-drawing-feature
Apr 15, 2024
Merged

PB-404 bugfix: removing error on drawing selection#781
ltkum merged 2 commits intodevelopfrom
PB-404-log-error-on-selecting-drawing-feature

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Apr 11, 2024

Issue : When selecting a drawing feature outside of the drawing mode, an error log would appear in the console explaining there were no coordinates.

Second Issue : when creating a drawing feature, an error log would appear in the console log explaining the same issue

Fix : We use 'getCoordinates()' instead of 'coordinates' in the map interactions composable.
Second Fix : when creating a Feature with no coordinates (undefined), we set them to null in the constructor.
Test link

@ltkum ltkum requested review from LukasJoss and ltshb April 11, 2024 15:57
@cypress
Copy link

cypress bot commented Apr 11, 2024

Passing run #1737 ↗︎

0 160 19 0 Flakiness 0

Details:

PB-404: Removing Error log on drawing creation
Project: web-mapviewer Commit: 8deb5fb675
Status: Passed Duration: 05:19 💡
Started: Apr 15, 2024 1:06 PM Ended: Apr 15, 2024 1:11 PM

Review all test suite changes for PR #781 ↗︎

Copy link
Contributor

@LukasJoss LukasJoss left a comment

Choose a reason for hiding this comment

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

There is another instance where this bug occurs, when you go to drawing mode and place a marker:
When dragging the marker on the map in useDrawingModeInteraction.composable.js in the function onAddFeature there was
args.coordinates = null in a earlier version of the code, now it is undefined and thus fails.

Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Same comment as Lukas

@ltkum ltkum force-pushed the PB-404-log-error-on-selecting-drawing-feature branch 3 times, most recently from 15cc7d1 to 786b65b Compare April 15, 2024 11:31
@ltkum ltkum requested a review from ltshb April 15, 2024 12:41
ltkum added 2 commits April 15, 2024 15:02
Issue : When selecting a drawing feature outside of the drawing mode, an error log would appear in the console explaining there were no coordinates.

Fix : We use 'getCoordinates()' instead of 'coordinates' in the map interactions composable.
When creating a feature, if the coordinates are undefined, we set them to null.
@ltkum ltkum force-pushed the PB-404-log-error-on-selecting-drawing-feature branch from 786b65b to 8deb5fb Compare April 15, 2024 13:02
@ltkum ltkum merged commit 698d476 into develop Apr 15, 2024
@ltkum ltkum deleted the PB-404-log-error-on-selecting-drawing-feature branch April 15, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants