Skip to content

Commit

Permalink
Specify table fields when UI queries API for experiments list
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Oct 17, 2022
1 parent a9093d5 commit 8677027
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/table/BasicTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const BasicTable = ({
pagination={{
pageIndex: page.index,
pageSize: page.size,
showPerPageOptions: false,
showPerPageOptions: true,
totalItemCount,
}}
onChange={({ page = {} }) => onPaginationChange(page)}
Expand Down
1 change: 1 addition & 0 deletions ui/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const appConfig = {
pagination: {
defaultPageSize: 10,
},
experimentsTableColumns: ["id", "type", "name", "status", "tier", "start_time", "end_time", "updated_at"],
tables: {
defaultTextSize: "s",
defaultIconSize: "s",
Expand Down
2 changes: 2 additions & 0 deletions ui/src/experiments/list/ListExperimentsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const ListExperimentsComponent = ({ projectId, props }) => {
appConfig: {
pagination: { defaultPageSize },
pageTemplate: { restrictWidth, paddingSize },
experimentsTableColumns: experimentsTableFields,
},
} = useConfig();

Expand All @@ -48,6 +49,7 @@ const ListExperimentsComponent = ({ projectId, props }) => {
query: {
page: page.index + 1,
page_size: page.size,
fields: experimentsTableFields,
...getProcessedFilters(),
},
},
Expand Down

0 comments on commit 8677027

Please sign in to comment.