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

Refactor helper pagenator #3335

Merged
merged 11 commits into from Jul 22, 2019
Merged

Conversation

segayuu
Copy link
Contributor

@segayuu segayuu commented Nov 6, 2018

The complexity of pagenatorHelper is 46, it is too large as a single function, so we will distribute the complexity.

  • Add test cases for the changes.
  • Passed the CI test.

@segayuu segayuu requested review from yoshinorin and a team and removed request for yoshinorin November 6, 2018 03:04
@coveralls
Copy link

coveralls commented Nov 6, 2018

Coverage Status

Coverage increased (+0.005%) to 97.151% when pulling 25f44fa on segayuu:Refactor-helper-pagenator into e8fc2ba on hexojs:master.

base: this.page.base || '',
current: this.page.current || 0,
format: `${this.config.pagination_dir}/%d/`,
total: this.page.total || 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this.page.total be zero?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the initial initial value was 1, it is being handed over.

@stale
Copy link

stale bot commented Feb 7, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 7, 2019
@yoshinorin yoshinorin removed the stale label Feb 7, 2019
@stale
Copy link

stale bot commented May 14, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 14, 2019
@stale stale bot closed this May 21, 2019
@yoshinorin yoshinorin reopened this May 22, 2019
@stale stale bot removed the stale label May 22, 2019
@segayuu segayuu merged commit 539bccc into hexojs:master Jul 22, 2019
@segayuu segayuu deleted the Refactor-helper-pagenator branch July 22, 2019 01:21
@yoshinorin yoshinorin added this to the v4.0.0 milestone Jul 22, 2019
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.

None yet

5 participants