Skip to content

fix #10966 some inconsistencies on the security popup modal#11082

Merged
MV88 merged 6 commits intogeosolutions-it:masterfrom
MV88:10966_creds_part3
May 8, 2025
Merged

fix #10966 some inconsistencies on the security popup modal#11082
MV88 merged 6 commits intogeosolutions-it:masterfrom
MV88:10966_creds_part3

Conversation

@MV88
Copy link
Copy Markdown
Contributor

@MV88 MV88 commented May 8, 2025

Description

fix #10966 some inconsistencies on the security popup modal

The form sometimes were not correctly populated when opening

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:

Issue

What is the current behavior?

#10966

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 added this to the 2025.02.00 milestone May 8, 2025
@MV88 MV88 requested a review from allyoucanmap May 8, 2025 07:40
@MV88 MV88 self-assigned this May 8, 2025
Comment on lines +71 to +80
const credentials = getCredentials(id);
setCreds(credentials);
}, [id, currentFormIndex]);
useEffect(() => {
const credentials = getCredentials(id);
setCreds(credentials);
return () => {
setCreds({});
};
}, []);
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 tested locally and I found this issue, where the form is empty after saving:

security-empty.mp4

Here I opened a PR with a proposal to change the management of credential directly inside the popup to take advantage of mount unmount event triggered by the key prop MV88#7

Please double check if the changes included in the PR works as expected

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.

I tested locally and I found this issue, where the form is empty after saving:

security-empty.mp4
Here I opened a PR with a proposal to change the management of credential directly inside the popup to take advantage of mount unmount event triggered by the key prop MV88#7

Please double check if the changes included in the PR works as expected

i fixed also tests. you can review again

@MV88 MV88 requested a review from allyoucanmap May 8, 2025 10:02
@MV88 MV88 merged commit ae6a682 into geosolutions-it:master May 8, 2025
6 checks passed
MV88 added a commit to MV88/MapStore2 that referenced this pull request May 8, 2025
…modal (geosolutions-it#11082)

* fix geosolutions-it#10966 some inconsistencies on the security popup modal

* review changes (#7)

* fix an error in widgets state

* update tests

* fix test and animation

* fix test

---------

Co-authored-by: stefano bovio <stefano.bovio@geosolutionsgroup.com>
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.

Insert credentials at runtime when connecting to secured services

2 participants