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: remove DataGrid pagination code (ET-259) #9520

Merged
merged 5 commits into from
Jun 17, 2024
Merged

refactor: remove DataGrid pagination code (ET-259) #9520

merged 5 commits into from
Jun 17, 2024

Conversation

johnkim-det
Copy link
Contributor

@johnkim-det johnkim-det commented Jun 13, 2024

Ticket

ET-259

Description

Remove references to tableViewMode and isPagedView for instances of DataGrid, since infinite scroll has been de-scoped.

Test Plan

No feature testing required for release. Should be covered by regression testing of new Experiment List and Searches view/Runs view (behind Flat runs feature flag).

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@johnkim-det johnkim-det requested a review from a team as a code owner June 13, 2024 20:03
@johnkim-det johnkim-det requested a review from ashtonG June 13, 2024 20:03
@cla-bot cla-bot bot added the cla-signed label Jun 13, 2024
Copy link

netlify bot commented Jun 13, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit f0a3eba
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66705983a1809a00086074f4
😎 Deploy Preview https://deploy-preview-9520--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 44.46%. Comparing base (9adc092) to head (f0a3eba).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9520      +/-   ##
==========================================
- Coverage   49.28%   44.46%   -4.83%     
==========================================
  Files        1242      914     -328     
  Lines      161442   120705   -40737     
  Branches     2867     2868       +1     
==========================================
- Hits        79574    53673   -25901     
+ Misses      81696    66860   -14836     
  Partials      172      172              
Flag Coverage Δ
harness ?
web 44.92% <0.00%> (+0.05%) ⬆️

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

Files Coverage Δ
webui/react/src/components/OptionsMenu.settings.ts 100.00% <ø> (ø)
webui/react/src/components/Searches/Searches.tsx 0.00% <0.00%> (ø)
...bui/react/src/pages/F_ExpList/F_ExperimentList.tsx 0.00% <0.00%> (ø)
webui/react/src/pages/FlatRuns/FlatRuns.tsx 0.00% <0.00%> (ø)

... and 342 files with indirect coverage changes

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

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

\o/

@@ -1029,7 +1013,7 @@ const FlatRuns: React.FC<Props> = ({ projectId, searchId }) => {
getHeaderMenuItems={getHeaderMenuItems}
getRowAccentColor={getRowAccentColor}
imperativeRef={dataGridRef}
isPaginated={isPagedView}
isPaginated
Copy link
Contributor

@keita-determined keita-determined Jun 13, 2024

Choose a reason for hiding this comment

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

i know its from hew, but do we wanna remove isPaginated prop or leave it for the potential use case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, I think instead of removing the functionality entirely from DataGrid, i'll replace isPaginated with an optional infiniteScroll prop that is false by default. maybe should've implemented it that way in the first place. will make a hew PR and then update this one when that's merged.

@johnkim-det johnkim-det merged commit 88b01c6 into main Jun 17, 2024
84 of 97 checks passed
@johnkim-det johnkim-det deleted the ET-259 branch June 17, 2024 21:38
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.

2 participants