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

Add pagination to feature Grid #1367

Merged

Conversation

offtherailz
Copy link
Member

First version of the pagination for the FeatureGrid plugin (#1320)

First version of the pagination for the FeatureGrid plugin (geosolutions-it#1320)
@@ -11,6 +11,9 @@ const {updateHighlighted} = require('../actions/highlight');
module.exports = {
FeatureGridPlugin: connect((state) => ({
features: state.query && state.query.result && state.query.result.features,
filterObj: state.query && state.query.filterObj,
searchUrl: state.query && state.query.searchUrl,
pagination: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not overridable

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 80.21% when pulling c769bce on offtherailz:wfs_search_pagination into 03eb0c5 on geosolutions-it:master.

@offtherailz
Copy link
Member Author

found an issue right now, going to review by myself :)

}
if (!nextProps.loadingGrid && this.featureLoaded && nextProps.features !== this.props.features && Object.keys(nextProps.features).length > 0) {
let rowsThisPage = nextProps.features[this.getRequestId(this.featureLoaded)] || [];
this.featureLoaded.successCallback(rowsThisPage, nextProps.totalFeatures);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was needed to call, next page, going the functionality.

 - Renamed state variables in consistend way
 - Fixed pagination (no virtual pagination for now)
@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 80.21% when pulling 83accf1 on offtherailz:wfs_search_pagination into 03eb0c5 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 80.226% when pulling 4f52cd3 on offtherailz:wfs_search_pagination into 726be96 on geosolutions-it:master.

@Gnafu Gnafu requested a review from tdipisa January 9, 2017 10:23
@offtherailz offtherailz removed the request for review from tdipisa January 9, 2017 10:35
@offtherailz offtherailz merged commit c95bab9 into geosolutions-it:master Jan 9, 2017
@offtherailz offtherailz deleted the wfs_search_pagination branch January 26, 2018 10:01
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