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

[Discover] Data Grid Pagination Options #5610

Merged

Conversation

kishor82
Copy link
Contributor

@kishor82 kishor82 commented Dec 13, 2023

Description

Implemented pagination options based on the Discover UI setting configuration value. #5601 , #5569

Screenshot

  1. Number of rows is set to 1000
Screenshot 2023-12-14 at 4 45 44 AM
  1. Pagination options are updated based on settings
Screenshot 2023-12-14 at 4 46 57 AM

closes #5601
closes #5569

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a4ae399) 66.98% compared to head (25e54fe) 67.03%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5610      +/-   ##
==========================================
+ Coverage   66.98%   67.03%   +0.04%     
==========================================
  Files        3294     3295       +1     
  Lines       63318    63329      +11     
  Branches    10083    10084       +1     
==========================================
+ Hits        42416    42451      +35     
+ Misses      18448    18429      -19     
+ Partials     2454     2449       -5     
Flag Coverage Δ
Linux_1 35.23% <ø> (ø)
Linux_2 55.18% <ø> (ø)
Linux_3 43.90% <100.00%> (+0.03%) ⬆️
Linux_4 35.33% <ø> (ø)
Windows_1 35.26% <ø> (ø)
Windows_2 55.15% <ø> (?)
Windows_3 43.91% <100.00%> (?)
Windows_4 35.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kishor82 kishor82 changed the title Discover: Data Grid Pagination Options [Discover]: Data Grid Pagination Options Dec 13, 2023
@kishor82 kishor82 changed the title [Discover]: Data Grid Pagination Options [Discover] Data Grid Pagination Options Dec 13, 2023
CHANGELOG.md Outdated
@@ -945,4 +946,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### 🔩 Tests

- Update caniuse to fix failed integration tests ([#2322](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322))
- Update caniuse to fix failed integration tests ([#2322](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2322))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know what changed here!

…lue.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
ananzh
ananzh previously approved these changes Dec 15, 2023
Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

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

nice! thank you

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
@kishor82 kishor82 requested a review from ruanyl December 19, 2023 08:15
@kishor82
Copy link
Contributor Author

kishor82 commented Dec 19, 2023

Working on functional testing; those are failing due to UI setting value for sampleSize.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
@ananzh
Copy link
Member

ananzh commented Dec 21, 2023

@kishor82 thank you. Feel free to reach out if you need any help for functional tst.

@kishor82
Copy link
Contributor Author

@kishor82 thank you. Feel free to reach out if you need any help for functional tst.

@ananzh I resolved the functional test issue, and initially, all tests were passing. However, it is currently failing again after the merge. will reach out if needed.

@ashwin-pc ashwin-pc added discover for discover reinvent v2.12.0 labels Jan 17, 2024
@ashwin-pc ashwin-pc merged commit e83b7ee into opensearch-project:main Jan 17, 2024
78 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 17, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
(cherry picked from commit e83b7ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
(cherry picked from commit e83b7ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
(cherry picked from commit e83b7ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
(cherry picked from commit e83b7ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
ashwin-pc pushed a commit that referenced this pull request Feb 5, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
(cherry picked from commit e83b7ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
yujin-emma pushed a commit to yujin-emma/OpenSearch-Dashboards that referenced this pull request Feb 5, 2024
* Added  helper function to generate page options based on UI setting value.

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Added dynamic pagination based on config value for data grid table

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Update changelog

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>

* Removed service object from the props.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* Added suggested changes and updated tests.

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

* fix functional test issue due to ui setting

Signed-off-by: kishor82 <kishorrathva8298@gmail.com>

---------

Signed-off-by: Kishor Rathva <kishorrathva8298@gmail.com>
Signed-off-by: kishor82 <kishorrathva8298@gmail.com>
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discover Page : Pagination vs scroll ( older way) [Features] Configurable rows per page in the discover view
5 participants