Skip to content

fix(pagination): when item is added it should trigger pagination changed #302

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

Merged
merged 3 commits into from
Oct 7, 2019

Conversation

ghiscoding
Copy link
Owner

No description provided.

@codecov-io
Copy link

codecov-io commented Oct 5, 2019

Codecov Report

Merging #302 into master will increase coverage by 0.05%.
The diff coverage is 81.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #302      +/-   ##
==========================================
+ Coverage   97.29%   97.33%   +0.05%     
==========================================
  Files         135      135              
  Lines        7612     7634      +22     
  Branches     2474     2483       +9     
==========================================
+ Hits         7405     7430      +25     
+ Misses        207      204       -3
Impacted Files Coverage Δ
...modules/angular-slickgrid/services/sort.service.ts 100% <100%> (ø) ⬆️
...s/angular-slickgrid/services/pagination.service.ts 99.35% <100%> (+0.03%) ⬆️
...es/angular-slickgrid/services/backend-utilities.ts 100% <100%> (ø) ⬆️
...dules/angular-slickgrid/services/filter.service.ts 100% <100%> (ø) ⬆️
...modules/angular-slickgrid/services/grid.service.ts 100% <100%> (ø) ⬆️
...slickgrid/components/slick-pagination.component.ts 36.49% <33.34%> (+2.71%) ⬆️
...lickgrid/components/angular-slickgrid.component.ts 61.88% <40%> (+0.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a150807...f61285d. Read the comment docs.

- manually adding items (via the grid service addItem()) shouldn't reset pagination to page 1
- completely change how we pass the options to the child pagination component
- no longer relying on the entire grid option to be passed to the pagination (which was error pron)
- now passes only the essential options required by the pagination
@ghiscoding ghiscoding merged commit d0795bb into master Oct 7, 2019
@ghiscoding ghiscoding deleted the bugfix/graphql-pagination-reload branch October 16, 2019 23: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