[Backport 2025.01.xx] Fix #11459 unload resources at logout (#11480)#11491
Merged
allyoucanmap merged 1 commit intogeosolutions-it:2025.01.xxfrom Sep 17, 2025
Merged
Conversation
--------- Co-authored-by: allyoucanmap <stefano.bovio@geosolutionsgroup.com>
1 task
offtherailz
approved these changes
Sep 17, 2025
37183a4
into
geosolutions-it:2025.01.xx
9 of 10 checks passed
Contributor
Author
|
@ElenaGallo please test this fix on QA, thanks |
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix issue #11459
Define new actions, reducers, epic in the plugin
ResourcesCatalog.around the action LOGOUT, introduce new action UNLOAD_RESOURCES triggered to clear the state section that refers to the selected resource for unlogged users, clear this state sections:
resources.initialSelectedResourceresources.selectedResourceThis new feature fixes some issues related to inconsistency state for non-logged in users.
Includes also a patch that hides the edit/save button in the info panel for non-logged users (this is based on the user's logged condition because the
canEditfield is not enough to hide the button, the resourcecanCopyfield for public resources override the canEdit condition (see details in the linked issues)(previous exposed here: #11459 (comment))
unloadResourcesin ResourcesCatalogDescription
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#11459
What is the new behavior?
Hides the correct items after on logout.
pixes.mp4
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information