Skip to content

BBD-261: Prevent final page having > 10000 items#46

Merged
Vic-Dev merged 1 commit into
developfrom
BBD-261
Sep 30, 2016
Merged

BBD-261: Prevent final page having > 10000 items#46
Vic-Dev merged 1 commit into
developfrom
BBD-261

Conversation

@Vic-Dev
Copy link
Copy Markdown
Contributor

@Vic-Dev Vic-Dev commented Sep 30, 2016

No description provided.

@Vic-Dev Vic-Dev force-pushed the BBD-261 branch 2 times, most recently from ba24ada to c113381 Compare September 30, 2016 14:30
Copy link
Copy Markdown
Contributor

@effervescentia effervescentia left a comment

Choose a reason for hiding this comment

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

otherwise, excellent

Comment thread src/capacitor/pager.ts Outdated
}

restrictTotalRecords(total: number, pageSize: number): number {
const remainder = total % pageSize;
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.

probably don't need to calculate the remainder until line 91 as it's only used there. fine to keep it as a separate variable, but I feel like it should only be at the top if other things are going to use it

f

f

f

f

Bring back resetOffset

Remove unneeded tests and fix tests

f
@Vic-Dev Vic-Dev merged commit 5d46660 into develop Sep 30, 2016
@Vic-Dev Vic-Dev deleted the BBD-261 branch September 30, 2016 14:49
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.

2 participants