Skip to content

Fix GPX local file import#762

Merged
ltshb merged 2 commits intodevelopfrom
bug-gpx-local
Apr 4, 2024
Merged

Fix GPX local file import#762
ltshb merged 2 commits intodevelopfrom
bug-gpx-local

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Apr 4, 2024

Some GPX file might not have metadata and it is ok to have it null. Due to this GPX file without metadata could not be loaded correctly. When no metadata was present, even if the file was a local file, the load gpx data plugin was triggered. On a deployment we could see an error on HTTP where the plugin tried to load GPX file on https://sys-map.dev.bgdi.ch/FILE_NAME while on localhost it tried to do on localhost which gave a differant answer.

So this triggered some weird bug. Now we allow GPX without metadata and only trigger the GPX load plugin when no data is present regardless of the metadata

Also make sure to set the layer error in case of GPX load failure

Also Avoid unnecessary store dispatch in layers plugins

Test link

ltshb added 2 commits April 4, 2024 08:59
Some GPX file might not have metadata and it is ok to have it null. Due to
this GPX file without metadata could not be loaded correctly. When no
metadata was present, even if the file was a local file, the load gpx data
plugin was triggered. On a deployment we could see an error on HTTP where
the plugin tried to load GPX file on https://sys-map.dev.bgdi.ch/FILE_NAME
while on localhost it tried to do on localhost which gave a differant answer.

So this triggered some weird bug. Now we allow GPX without metadata and
only trigger the GPX load plugin when no data is present regardless of the metadata

Also make sure to set the layer error in case of GPX load failure
@github-actions github-actions bot added the bug label Apr 4, 2024
@cypress
Copy link

cypress bot commented Apr 4, 2024

Passing run #1474 ↗︎

0 170 22 0 Flakiness 0

Details:

Avoid unnecessary store dispatch in layers plugins
Project: web-mapviewer Commit: d5674cc726
Status: Passed Duration: 04:59 💡
Started: Apr 4, 2024 7:08 AM Ended: Apr 4, 2024 7:13 AM

Review all test suite changes for PR #762 ↗︎

@ltshb ltshb requested review from ismailsunni and pakb April 4, 2024 07:31
Copy link
Contributor

@ismailsunni ismailsunni left a comment

Choose a reason for hiding this comment

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

LGTM, tested locally 👍

@ltshb ltshb merged commit 3caf67f into develop Apr 4, 2024
@ltshb ltshb deleted the bug-gpx-local branch April 4, 2024 09:24
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