Skip to content

Conversation

@allyoucanmap
Copy link
Contributor

Description

This PR includes following fixes:

  • add a validation check for map configuration in Map plugin
  • remove canRender internal state from the Map plugins because it's not used anymore, it was introduced for font loading

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Minor changes to existing features

Issue

What is the current behavior?

#10448

What is the new behavior?

Map plugin components mount only when a valid configuration is provided

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

Other useful information

@allyoucanmap allyoucanmap self-assigned this Jul 2, 2024
@allyoucanmap allyoucanmap linked an issue Jul 2, 2024 that may be closed by this pull request
1 task
@tdipisa tdipisa added this to the 2024.02.00 milestone Jul 4, 2024
@tdipisa tdipisa requested a review from offtherailz July 4, 2024 08:50
@tdipisa tdipisa modified the milestones: 2024.02.00, 2024.02.01 Sep 18, 2024
@tdipisa tdipisa added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Oct 8, 2024
Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

This fixes the issue. So it's good to go.

A more rational approach may have a loading flag that prevents to render with invalid props, and check invalid maps only to display errors.
But this may require a refactor, not object of this fix.

@offtherailz offtherailz merged commit daf9bcb into geosolutions-it:master Oct 21, 2024
@offtherailz
Copy link
Member

@ElenaGallo, could you please test this on DEV ? Thank you

@ElenaGallo
Copy link
Contributor

Test passed, @allyoucanmap please backport to 2024.02.xx. Thanks

allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this pull request Nov 5, 2024
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Nov 5, 2024
rmelarab-ngs pushed a commit to ngsllc/MapStore2 that referenced this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map plugin should not initizialize invalid maps

4 participants