Skip to content

Add pagination to feature Grid#1367

Merged
offtherailz merged 4 commits into
geosolutions-it:masterfrom
offtherailz:wfs_search_pagination
Jan 9, 2017
Merged

Add pagination to feature Grid#1367
offtherailz merged 4 commits into
geosolutions-it:masterfrom
offtherailz:wfs_search_pagination

Conversation

@offtherailz

Copy link
Copy Markdown
Member

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

First version of the pagination for the FeatureGrid plugin (geosolutions-it#1320)
Comment thread web/client/plugins/FeatureGrid.jsx Outdated
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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