Skip to content

Commit

Permalink
Simple fix to speed up dataset gallery (#3480)
Browse files Browse the repository at this point in the history
* simple fix to speed up spotlight for single orga instances

* refresh snapshots
  • Loading branch information
daniel-wer authored and philippotto committed Nov 21, 2018
1 parent a7585db commit fcb0792
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/dashboard/gallery_dataset_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class GalleryDatasetView extends React.PureComponent<Props, State> {
{groupedDatasets.map(([organization, datasets]) => (
<DatasetPanel
showOrganizationHeader={hasMultipleOrganizations}
croppedDatasetCount={hasMultipleOrganizations ? croppedDatasetCount : null}
croppedDatasetCount={croppedDatasetCount}
className="dataset-panel"
key={organization}
organizationName={this.state.organizationNameMap[organization] || organization}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Generated by [AVA](https://ava.li).
<AnimateChild animation={{...}} transitionName="fade" transitionEnter={true} transitionAppear={false} transitionLeave={true}>␊
<div className="ant-spin-container">␊
<GalleryDatasetView datasets={{...}} searchQuery="">␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={{...}} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={6} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<div className="dataset-panel">␊
<Row gutter={16}>␊
<div className="ant-row" style={{...}}>␊
Expand Down Expand Up @@ -337,7 +337,7 @@ Generated by [AVA](https://ava.li).
<AnimateChild animation={{...}} transitionName="fade" transitionEnter={true} transitionAppear={false} transitionLeave={true}>␊
<div className="ant-spin-container">␊
<GalleryDatasetView datasets={{...}} searchQuery="">␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={{...}} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={6} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<div className="dataset-panel">␊
<Row gutter={16}>␊
<div className="ant-row" style={{...}}>␊
Expand Down Expand Up @@ -1583,7 +1583,7 @@ Generated by [AVA](https://ava.li).
<AnimateChild animation={{...}} transitionName="fade" transitionEnter={true} transitionAppear={false} transitionLeave={true}>␊
<div className="ant-spin-container">␊
<GalleryDatasetView datasets={{...}} searchQuery="">␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={{...}} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={6} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<div className="dataset-panel">␊
<Row gutter={16}>␊
<div className="ant-row" style={{...}}>␊
Expand Down Expand Up @@ -3816,7 +3816,7 @@ Generated by [AVA](https://ava.li).
<AnimateChild animation={{...}} transitionName="fade" transitionEnter={true} transitionAppear={false} transitionLeave={true}>␊
<div className="ant-spin-container">␊
<GalleryDatasetView datasets={{...}} searchQuery="">␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={{...}} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<DatasetPanel showOrganizationHeader={false} croppedDatasetCount={6} className="dataset-panel" organizationName="Organization_X" datasets={{...}}>␊
<div className="dataset-panel">␊
<Row gutter={16}>␊
<div className="ant-row" style={{...}}>␊
Expand Down
Binary file not shown.

0 comments on commit fcb0792

Please sign in to comment.