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

Use tanstack table in tslib #882

Merged
merged 4 commits into from
Jun 12, 2024

Conversation

keisuke-umezawa
Copy link
Member

@keisuke-umezawa keisuke-umezawa commented May 26, 2024

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

NA

What does this implement/fix? Explain your changes.

Tanstack table was introduced in optuna-dashboard by #846.
This PR will also introduce it in tslib.

Copy link

codecov bot commented May 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.51%. Comparing base (ac20f25) to head (0beb2af).
Report is 189 commits behind head on main.

Current head 0beb2af differs from pull request most recent head f747a55

Please upload reports for the commit f747a55 to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #882   +/-   ##
=======================================
  Coverage   69.51%   69.51%           
=======================================
  Files          35       35           
  Lines        2375     2375           
=======================================
  Hits         1651     1651           
  Misses        724      724           

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

Copy link
Collaborator

@porink0424 porink0424 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 for your PR! Looks almost good.
I left a few requests.

)
const [pagination, setPagination] = React.useState<PaginationState>({
pageIndex: 0,
pageSize: 50,
Copy link
Collaborator

Choose a reason for hiding this comment

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

You set pageSize here 50 as constant, but how about receiving initialRowsPerPage as a prop and using that value here, as current DataGrid does?


export const TrialTable: FC<{
study: Optuna.Study
initialRowsPerPage?: number
}> = ({ study, initialRowsPerPage }) => {
}> = ({ study }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Following the comment above, maybe you need to restore initialRowsPerPage prop here as well.
It would be also good in terms of not having to make destructive changes to the existing interface.

@keisuke-umezawa
Copy link
Member Author

@porink0424
Thank you for reviewing. I restored initialRowsPerPage.

@keisuke-umezawa keisuke-umezawa force-pushed the feature/tanstack-table-tslib branch from 68513f5 to f747a55 Compare June 11, 2024 12:32
Copy link
Collaborator

@porink0424 porink0424 left a comment

Choose a reason for hiding this comment

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

LGTM👍

@porink0424 porink0424 merged commit 8098158 into optuna:main Jun 12, 2024
10 checks passed
@keisuke-umezawa keisuke-umezawa deleted the feature/tanstack-table-tslib branch June 13, 2024 09:32
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.

2 participants