Skip to content

Update gfi & legend#11121

Merged
tdipisa merged 3 commits intogeosolutions-it:c027-2024.01.xxfrom
MV88:update_gfi_legend
May 21, 2025
Merged

Update gfi & legend#11121
tdipisa merged 3 commits intogeosolutions-it:c027-2024.01.xxfrom
MV88:update_gfi_legend

Conversation

@MV88
Copy link
Copy Markdown
Contributor

@MV88 MV88 commented May 20, 2025

Description

We noticed that GFI and get legend graphics were missing the basic auth

Please check if the PR fulfills these requirements

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

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the new behavior?

Breaking change

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

  • Yes, and I documented them in migration notes
  • No

Other useful information

@MV88 MV88 requested a review from allyoucanmap May 20, 2025 16:21
@MV88 MV88 self-assigned this May 20, 2025
@MV88 MV88 changed the title Update gfi legend Update gfi & legend May 20, 2025
Comment on lines +34 to +35
const headers = getAuthorizationBasic(props?.layer?.security?.sourceId);
if (props.layer) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the layer will be always true so probably the other else if have no effect with this implementation.
Shouldn't we access this first if only if props?.layer?.security is not undefined and sourceId is available?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@tdipisa tdipisa merged commit b41e345 into geosolutions-it:c027-2024.01.xx May 21, 2025
4 of 5 checks passed
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