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

Update pagination validation and add test cases #240

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

jatindersingh93
Copy link
Contributor

@jatindersingh93 jatindersingh93 commented Jan 10, 2024

  • Add conditional validators for page/limit parameters, either have both or none.
  • Update and include new spec for the validations
  • updated API docs with Request and response

SC3485

Description

Types of changes

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

github-actions bot commented Jan 10, 2024

Coverage Report

Totals Coverage
Statements: 59.6% ( 2801 / 4700 )
Methods: 50% ( 319 / 638 )
Lines: 66.33% ( 1684 / 2539 )
Branches: 52.4% ( 798 / 1523 )

Copy link

codeclimate bot commented Jan 10, 2024

Code Climate has analyzed commit 61a7f01 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 66.3% (0.0% change).

View more on Code Climate.

app/src/validators/common.js Show resolved Hide resolved
app/src/validators/common.js Show resolved Hide resolved
app/src/validators/common.js Outdated Show resolved Hide resolved
app/src/validators/common.js Show resolved Hide resolved
@jujaga jujaga changed the title update validations and add test cases Update pagination validation and add test cases Jan 12, 2024
@kyle1morel kyle1morel merged commit 668398e into master Jan 12, 2024
15 of 16 checks passed
@kyle1morel kyle1morel deleted the SC3485 branch January 12, 2024 23:51
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.

4 participants