Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

feat(ui): add pagination on test cases page #68

Merged
merged 6 commits into from
Aug 9, 2022
Merged

Conversation

iamskp99
Copy link
Contributor

@iamskp99 iamskp99 commented Aug 4, 2022

Pull Request Template

Description

Added fix for the issue: keploy/keploy#367
Changed offset to 0 and limit to pageSize*(pageIndex+1)+1. The extra 1 ensures that the next arrow pointer is enabled.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change requires a documentation update.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Additional Context (Please include any Screenshots/gifs if relevant)

...

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added corresponding tests.
  • Any dependent changes have been merged and published in downstream modules.

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

Deploy PR Preview failed.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you and congratulations 🎉 for opening your very first pull request in UI

Signed-off-by: iamskp99 <iamskp99@gmail.com>
@iamskp99 iamskp99 changed the title Adding pagination on Test Cases Page feat(ui): add pagination on test cases page Aug 5, 2022
@iamskp99 iamskp99 requested a review from nehagup August 5, 2022 05:33
Signed-off-by: iamskp99 <iamskp99@gmail.com>
@iamskp99
Copy link
Contributor Author

iamskp99 commented Aug 6, 2022

The UI was showing the wrong total cases count if we query data in chunks. It is so because we are using the DataGrid module and it takes the total count as the count of the total test cases queried. So after talking with Shubham, we decided to query all the data in one go.

Signed-off-by: iamskp99 <iamskp99@gmail.com>
Signed-off-by: iamskp99 <iamskp99@gmail.com>
Signed-off-by: iamskp99 <iamskp99@gmail.com>
Signed-off-by: iamskp99 <iamskp99@gmail.com>
@nehagup
Copy link
Member

nehagup commented Aug 9, 2022

LGTM! Found a couple of new good-first issues while reviewing this.

Keep it up! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants