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

Fixed #2210 #2327 fixed synch tool and cql_filter creation #2426

Merged
merged 19 commits into from
Nov 29, 2017

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Nov 23, 2017

Description

Cql Filter was wrongly created if a spatial filter was present. the crs was not the native one of the layer
Also for 0 value in numeric editors creates problem and the use of ID and other attributes.

Issues

Please check if the PR fulfills these requirements

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

  • Bugfix

What is the current behavior? (You can also link to an open issue here)

  • if sync was active and it was drawn a spatial filter then the layer were hidden. (cql messed up)
  • Also if in a numeric editor tha value 0 was used an empty cql filter was created ()
  • if ID and another attribute was used to filter the feature grid, the cql_filter was not correctly parsed and the layer was hidden as consequence.

What is the new behavior?
Actually the layer is correctly filtered in the three cases and for all their combinations.

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

  • No

Other information:
For testing this try to draw a spatial filter and then activate the sync. the features should be filtered based on the drawn spatial filter.
NOTE: ID and all reserved keyword must be wrapped by "" in order to parse correctly the cql_filter parameter

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.143% when pulling 84b2865 on MV88:2210-2327_synch_tool_updates into 98d7440 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.143% when pulling 84b2865 on MV88:2210-2327_synch_tool_updates into 98d7440 on geosolutions-it:master.

@MV88 MV88 self-assigned this Nov 27, 2017
return Rx.Observable.of(addFilterToWMSLayer(layerId, reprojectFilterInNativeCrs(filter, objLayer.nativeCrs)));
}
return Rx.Observable.of(addFilterToWMSLayer(layerId, filter));
});
Copy link
Member

Choose a reason for hiding this comment

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

I think here a takeUntil is needed to stop monitoring.
What if you stop and sync and change filter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it does not reach this point because in the merge function it checks if the sync is active or is being activated in that moment.

@ghost ghost added In Test labels Nov 27, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.143% when pulling 2a785dd on MV88:2210-2327_synch_tool_updates into 98d7440 on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment Nov 27, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 81.143% when pulling 00e7d5d on MV88:2210-2327_synch_tool_updates into 98d7440 on geosolutions-it:master.

@tdipisa tdipisa removed the In Test label Nov 28, 2017
@geosolutions-it geosolutions-it deleted a comment Nov 28, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 81.224% when pulling 3f059f5 on MV88:2210-2327_synch_tool_updates into 98d7440 on geosolutions-it:master.

@offtherailz offtherailz merged commit e1c4946 into geosolutions-it:master Nov 29, 2017
@ghost ghost removed the pending review label Nov 29, 2017
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.

MapSync + Spatial filter doesn't work with OL Sync map with Filter sometimes disables the layer
4 participants