Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

🐛 PRTL-854 Quick Search UI fixes #1391

Merged
merged 5 commits into from
Mar 17, 2017
Merged

🐛 PRTL-854 Quick Search UI fixes #1391

merged 5 commits into from
Mar 17, 2017

Conversation

cheapsteak
Copy link
Contributor

@@ -63,10 +80,11 @@ compose(
withRouter,
withHandlers({
handleQueryChange: ({ api = API, setState }) => _.debounce(async (query) => {
api = 'https://gdc-api.nci.nih.gov/';
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you are going to remove this before merging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch 👍

@@ -66,7 +83,7 @@ compose(
setState(s => ({ ...s, query, isLoading: true }));
const timeOfCurrentRequest = new Date().getTime();
timeOfMostRecentRequest = timeOfCurrentRequest;
const url = `${api}all?fields=${SEARCH_FIELDS.join(',')}&query=${window.encodeURIComponent(query)}&size=10`;
const url = `${api}all?fields=${SEARCH_FIELDS.join(',')}&query=${window.encodeURIComponent(query)}&size=5`;
Copy link
Contributor

Choose a reason for hiding this comment

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

since your updating this line, you could switch it to use this function https://github.com/NCI-GDC/portal-ui/blob/relay/modules/node_modules/%40ncigdc/utils/ajax/index.js#L28

@cheapsteak cheapsteak merged commit 770b09a into relay Mar 17, 2017
@cheapsteak cheapsteak deleted the fix/854-quicksearch branch March 17, 2017 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants