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

Adding query parameter to match classic functionality. starting routes for classic API. ARXIVNG-1893 ARXIVNG-1898 #232

Merged
merged 15 commits into from
Mar 29, 2019

Conversation

JaimieMurdock
Copy link
Contributor

Adding the query parameter to match the old functionality of ARXIVNG-1893.

@JaimieMurdock JaimieMurdock self-assigned this Mar 6, 2019
@JaimieMurdock JaimieMurdock changed the title Adding query parameter to match old functionality. ARXIVNG-1893 Adding query parameter to match classic functionality. starting routes for classic API. ARXIVNG-1893 ARXIVNG-1898 Mar 7, 2019
Copy link
Contributor

@erickpeirson erickpeirson left a comment

Choose a reason for hiding this comment

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

Looks like a good start

@@ -77,6 +77,40 @@ def search(params: MultiDict) -> Tuple[Dict[str, Any], int, Dict[str, Any]]:
logger.debug('Got document set with %i results', len(document_set.results))
return {'results': document_set, 'query': q}, status.HTTP_200_OK, {}

def classic_query(params: MultiDict) -> Tuple[Dict[str, Any], int, Dict[str, Any]]:
"""
Handle a search request from the Clasic API. Maps old rquest
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: summary should fit on one line. Next block can be multiline. Not a blocker.

@JaimieMurdock JaimieMurdock merged commit 71bcf7b into develop Mar 29, 2019
@bmaltzan bmaltzan deleted the task/ARXIVNG-1893 branch April 1, 2021 17:31
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