Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Sync issue #8997

Closed
1 task done
tdipisa opened this issue Mar 2, 2023 · 1 comment · Fixed by #9805 or #9827
Closed
1 task done

Map Sync issue #8997

tdipisa opened this issue Mar 2, 2023 · 1 comment · Fixed by #9805 or #9827

Comments

@tdipisa
Copy link
Member

tdipisa commented Mar 2, 2023

Description

The map sync issue seems to not work as expected.

How to reproduce

adv_search_sync_,map

adv_search_sync_,map_2

Expected Result

If activated it should remain active after using the Advanced Search in theory. If active by default, there should not be the need to click twice to put in sync the map.

Current Result

  • If enabled by default, you need to click twice on it to put in sync the map.

  • If not enabled by default when you toggle it then it is toggled off as soon ad a filter is defined with the Advanced Search. It looks like not expected, is this a behavior introduced for some reason?

  • Not browser related

Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

@allyoucanmap
Copy link
Contributor

It looks like not expected, is this a behavior introduced for some reason?

There are some changes applied in the past to the feature grid that are causing this unexpected behaviors, in particular following PRs:

We should review the workflow of the map sync tool focusing on following steps:

  • do not deactivate the map filter every time the feature grid has been closed but instead improve the isSyncWmsActive selector to be true only if the feature grid is open:
  • review how we store the enableMapFilterSync cfg in the state. We should not update this property every time but only when we open the feature grid from the TOC toolbar (it should be the LAYERS:BROWSE_DATA)
  • finally we need to ensure that the map sync functionality is working and consistent with the state button in the toolbar so we need to initialize it every time we open the feature grid if the map sync is enabled in the state, something like this:
export const activateSyncWmsFilterOnFeatureGridOpen = (action$, store) =>
    action$.ofType(OPEN_FEATURE_GRID)
        .filter(() => isSyncWmsActive(store.getState()))
        .switchMap(() => {
            return Rx.Observable.of(startSyncWMS());
        });

All the above codes is part of an investigation so it needs to be verified and validated during the development

@tdipisa tdipisa assigned tdipisa and unassigned allyoucanmap Mar 16, 2023
@tdipisa tdipisa modified the milestones: 2023.01.01, 2023.01.02 Apr 13, 2023
@tdipisa tdipisa modified the milestones: 2023.01.02, 2023.02.00 May 29, 2023
@tdipisa tdipisa removed this from the 2023.02.00 milestone Aug 25, 2023
@tdipisa tdipisa assigned mahmoudadel54 and unassigned tdipisa Nov 27, 2023
@tdipisa tdipisa added this to the 2023.02.02 milestone Nov 30, 2023
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this issue Dec 7, 2023
@mahmoudadel54 mahmoudadel54 linked a pull request Dec 7, 2023 that will close this issue
12 tasks
@MV88 MV88 added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Dec 12, 2023
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this issue Dec 13, 2023
Description:
- fix logic issue if enableMapFilterSync = true in config
- refactor code by avoid inline if
MV88 pushed a commit that referenced this issue Dec 15, 2023
* #8997: fix map sync issue in feature grid

* #8997: resolve review comments on PR
Description:
- fix logic issue if enableMapFilterSync = true in config
- refactor code by avoid inline if
@ElenaGallo ElenaGallo self-assigned this Dec 15, 2023
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this issue Dec 18, 2023
…s-it#9805)

* geosolutions-it#8997: fix map sync issue in feature grid

* geosolutions-it#8997: resolve review comments on PR
Description:
- fix logic issue if enableMapFilterSync = true in config
- refactor code by avoid inline if
MV88 pushed a commit that referenced this issue Dec 20, 2023
* #8997: fix map sync issue in feature grid

* #8997: resolve review comments on PR
Description:
- fix logic issue if enableMapFilterSync = true in config
- refactor code by avoid inline if
@ElenaGallo ElenaGallo added Accepted and removed BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment