-
Notifications
You must be signed in to change notification settings - Fork 16
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
Pre-release merge for search v0.5.6, search-api v0.2 #272
Merged
Changes from all commits
Commits
Show all changes
191 commits
Select commit
Hold shift + click to select a range
29412db
Adding notes and boolean support to the _parse_search_query function
JaimieMurdock 8568891
initial boolean support by chaninging _get_fielded_params
JaimieMurdock c496331
utilizing the multidict better
JaimieMurdock 2d58f5a
upgrading mypy, adding some type: ignores
JaimieMurdock 9a1389d
Correcting mypy errors for tests
JaimieMurdock d50adc1
Merge branch 'develop' into task/ARXIVNG-1971
JaimieMurdock 6ee11de
Atom serializer
JaimieMurdock afef5bb
Adding stubs for where arxiv:affiliation needs to be handled
JaimieMurdock a30916b
Adding author affiliation handling to entries. Still no support in se…
JaimieMurdock 79efeab
Adding note about not supporting serialize_document
JaimieMurdock 24ab5f9
Apply suggestions from code review
erickpeirson b1848d4
Merge pull request #239 from arXiv/task/ARXIVNG-1516
JaimieMurdock f74a4db
Merge pull request #234 from arXiv/task/ARXIVNG-1971
JaimieMurdock 9098718
adding a TODO
JaimieMurdock fac1c40
ARXIVNG-2224 added base app_tests to test suite
erickpeirson 204825e
ARXIVNG-2224 run base tests separately
erickpeirson c285e33
ARXIVNG-2225 renamed elasticsearch config params
erickpeirson ddb1dfa
Merge pull request #248 from arXiv/task/ARXIVNG-2224
erickpeirson f757177
working on classic API query parsing
erickpeirson 0262736
ARXIVNG-1972 most of the way to parsing query strings
erickpeirson 09a9da0
ARXIVNG-1972 fixed last querystring parsing test
erickpeirson ca4a3c6
ARXIVNG-1972 cleanup
erickpeirson bc933e1
adding test for first arg disjunct
JaimieMurdock 858e437
adding a test with dual phrases
JaimieMurdock b85c9a7
adding a new tokenizer that avoids some of the issues with parens via…
JaimieMurdock 080027b
recursive tokenizer
JaimieMurdock 21620dc
code reorganization
JaimieMurdock d8315d7
skeleton for classic search api in service.index
JaimieMurdock ddb4e61
phrase->DSL QueryString conversion
JaimieMurdock 3bba91f
classic queries!
JaimieMurdock 797d1af
Pipfile updates
JaimieMurdock c963785
Merge branch 'develop' into task/ARXIVNG-1898
JaimieMurdock 588b9f9
fixing arxiv.integration.meta import
JaimieMurdock 9b3e7aa
Fixing a variety of serialization issues
JaimieMurdock b1c2b64
changing Field.Author mapping
JaimieMurdock 8bb1af5
fixing bug in create_index
JaimieMurdock 76f5a68
Implementation of classic search using DSL
JaimieMurdock d0352f5
adding new Classic API test
JaimieMurdock ed87a60
Suggested whitespace corrections
JaimieMurdock 7ac2e78
removing defunct tests
JaimieMurdock b05c0c8
Merge branch 'task/ARXIVNG-1898' of github.com:arXiv/arxiv-search int…
JaimieMurdock 113296e
adding support for quoted terms
JaimieMurdock 0162a00
refactor of query cases
JaimieMurdock 55ed3b8
classic parser documentation
JaimieMurdock 622b666
fixing wildcard import
JaimieMurdock 696f809
parameterizing namespaces in atom_extensions
JaimieMurdock bbf85cf
clarifying documentation
JaimieMurdock 6e48878
removing TODO
JaimieMurdock fa21a3d
fixing return type on response
JaimieMurdock d72fe6d
implementing single-document Atom serialization, correcting Content-t…
JaimieMurdock cd0db58
correcting doi handling, marking TODOs
JaimieMurdock 3fbe950
correcting namespace import
JaimieMurdock ad68c1b
adding note on dunder syntax
JaimieMurdock 001f271
fixing category output
JaimieMurdock eab8e75
domain revision and operator-term grouping
JaimieMurdock e57f698
fixing import errors
JaimieMurdock 71d1ef2
fixing tuple cast
JaimieMurdock 693243e
fixing test cases
JaimieMurdock 7c6b353
docstring update
JaimieMurdock 5b0d0ac
Removing NOTES.md
JaimieMurdock eeeaa86
Expanding comment on migration pathway in NG API
JaimieMurdock 28aea82
Adding Python 3.6 to Pipfile. 3.7 messed up 3 tests.
JaimieMurdock 108f04d
adding failure tests
JaimieMurdock 34a5ffd
adding url_for calls
JaimieMurdock 2160a08
Merge branch 'task/ARXIVNG-1898' of github.com:arXiv/arxiv-search int…
JaimieMurdock 40a2641
Splitting parsing functions
JaimieMurdock 66ddb92
Merge branch 'task/ARXIVNG-1898' of github.com:arxiv/arxiv-search int…
JaimieMurdock da3b72d
Apply suggestions from Erick's code review
JaimieMurdock 894651c
missing data fix, agent update
JaimieMurdock 2bb9c01
variety of linting fixes.
JaimieMurdock c75591c
mypy update and linting
JaimieMurdock e4c829b
misc linting
JaimieMurdock c731acb
various linting and mypy fixes
JaimieMurdock d44314e
fixing placement of pylintrc
JaimieMurdock 5ca8314
linting
JaimieMurdock 6de01b2
misc linting from in-person PR review
JaimieMurdock 6b04fa0
adding type ignore
JaimieMurdock 31b7169
correcting syntaxerror
JaimieMurdock a7ff572
adding serializer
JaimieMurdock 7a39644
correcting rss title
JaimieMurdock d8a172c
correcting calls to search_query
JaimieMurdock 39c2233
refactor name to phrase_to_query_string
JaimieMurdock dc35522
adding additional parameters to query_string
JaimieMurdock 3ee0503
adding id_list to query object
JaimieMurdock 25ff840
Merge branch 'task/ARXIVNG-1898' of github.com:arXiv/arxiv-search int…
JaimieMurdock 9a0bb2c
optional phrase
JaimieMurdock be3b54a
Merge branch 'task/ARXIVNG-1898' of github.com:arxiv/arxiv-search int…
JaimieMurdock 5cd28c9
seaprating id_list filtering from controller to index service
JaimieMurdock 083d652
detecting mismatched quotes. close #254
JaimieMurdock 67b754d
Testing double operator bad queries. close #253
JaimieMurdock 344a969
adding id_list to atom title
JaimieMurdock bc2589b
adding to href objects
JaimieMurdock 91a4efe
work-in-progress on ID querying
JaimieMurdock 275d2da
switching to filter context for id_list
JaimieMurdock 0287551
serialization error
JaimieMurdock fd24976
fixing mapping typecheck
JaimieMurdock 0febf74
Correcting inline comment syntax and grammar.
JaimieMurdock 574b0fc
proper typing for ClassicAPIQuery
JaimieMurdock 2408b31
misc type hinting
JaimieMurdock 2433a05
misc linting and comment corrections
JaimieMurdock b747021
simplifying class via inheritance
JaimieMurdock 2baca0e
docstring corrections
JaimieMurdock 5a5e465
summary lines
JaimieMurdock 1c5bc1e
adding support for size and start
JaimieMurdock e5e9831
adding metadata generation for single-document queries
JaimieMurdock 9b47059
Adding a comment.
JaimieMurdock 0b69626
refactoring Arxiv -> ArXiv
JaimieMurdock 1dcae42
removing _get_search_query
JaimieMurdock c5450d3
fixing query behavior for versioned vs unversioned ids
JaimieMurdock 71caba3
pr #249 fixed mypy errors
erickpeirson c043d49
pr #249 fixed pydocstyle error
erickpeirson 8ccecc8
minor
erickpeirson 070f13a
pr #249 fixed some tests, fixed handling of categories
erickpeirson eb07121
pr #249 more type annotation fixes
erickpeirson 547e837
updated coveragerc to exclude tests
erickpeirson c22632e
adding test for id_list
JaimieMurdock 3fdf909
adding phrase test
JaimieMurdock 44b4cd3
adding defaults and test for atom single-doc serialization
JaimieMurdock 75bf931
adding timezones to atom serialized docs
JaimieMurdock 7231448
adding comment re:pylint module whitelist
JaimieMurdock ceeef19
removing outdated TODO file
JaimieMurdock 31e186d
restoring controller tests
JaimieMurdock e69503f
adding no-params bad request test
JaimieMurdock 95cc285
improving controller tests
JaimieMurdock 6c4cc09
more tests!
JaimieMurdock df20c94
correcting routes test for valid token
JaimieMurdock 485280c
adding query string parsing test to NG API tests
JaimieMurdock 0bc253b
testing quoted phrases
JaimieMurdock 842581d
adding single-paper tests
JaimieMurdock c7dcdd3
adding complex phrase query
JaimieMurdock 264a65f
updating coverage command to only incorporate search package
JaimieMurdock 51a4872
removing cover-package arg
JaimieMurdock c05c7f1
updating omitted files
JaimieMurdock 12c66e5
pydocstyle correction
JaimieMurdock ca82d9d
removing TODO
JaimieMurdock c731cf5
Merge pull request #249 from arXiv/task/ARXIVNG-1898
JaimieMurdock 1bd5258
Reorganisation.
alefnula 28e1d3e
Implemented Atom Feed error handling for classic api.
alefnula dfb6282
Added error handling as documented in the api docs.
alefnula beb874a
Differentiate between classic and new api.
alefnula 64b1513
Change all exception variables from e to ex.
alefnula b0e7b36
pydocstyle fixes
mhl10 87f6fb1
more pydocstyle fixes
mhl10 3d6d1cb
mypy fixes
mhl10 2f4e5ac
fix for earlier mypy fix
mhl10 b03fa9c
rename classic to classic_api
mhl10 8c4edf9
Merge pull request #261 from arXiv/feature/#257-classic-api-error-han…
mhl10 b1403d0
Set max_results=10.
alefnula d6f03fa
Set ID in the classic api field to be the query hash.
alefnula 56d715a
Refactor ClassicAPIQuery
alefnula d6b893d
Black format and add title=pdf in pdf links.
alefnula fd56b8e
Timestamp formating hack.
alefnula 4644a15
Enhancements.
alefnula e98bc96
Bump feedgen from 0.7.0 to 0.9.0
dependabot[bot] d55cd01
Merge pull request #263 from arXiv/feature/#259-classic-api-start-and…
alefnula 06c1f68
Merge pull request #264 from arXiv/dependabot/pip/feedgen-0.9.0
mhl10 0891e84
Add pre-commit hooks.
alefnula a4e03b4
Running black on all files in the repository.
alefnula 97f8a25
flake8 fixes.
alefnula 22fa6f7
Add pydocstyle to pre-commit hooks.
alefnula 4d7efc0
Fixup.
alefnula 9bfa717
Merge pull request #265 from arXiv/feature/pre-commit-hooks
alefnula e7bbc5a
Add sortBy and sortOrder to Classical API Query.
alefnula 0bd7c5b
Add tests.
alefnula 80be62a
Add sorting.
alefnula a16efba
Fixes.
alefnula 5f7c8b1
Fix sorting fields.
alefnula 921fe93
Fix feed ordering problem.
alefnula 63f13cf
Fix and add tests.
alefnula 3819e61
Fixing tests.
alefnula eef4a67
Move EASTERN timezone to consts.
alefnula 436b617
Merge pull request #268 from arXiv/feature/#266-fix-ordering-in-class…
alefnula 0cd3e62
ARXIVNG-2965: update base release, fix wsgi (#267)
mhl10 5d5655e
bump arxiv-base version
mhl10 1f1ef30
Refactor query parser test cases for easier readability.
alefnula c1606c2
Implemented new parsing of classic query string
alefnula 41059a2
disable generator entry
mhl10 fc7911f
Update search/domain/classic_api/query_parser.py
alefnula 7b44512
Fix paper_id version matching.
alefnula c39a18e
Add documentation.
alefnula fc700ef
Empty query handling.
alefnula 342ff00
Merge pull request #269 from arXiv/feature/#258-search-query-and-id-list
alefnula 0ed5b58
Remove all references to deprecated arxiv.status module.
alefnula d8145b5
Merge pull request #270 from arXiv/feature/http-status-refactor
alefnula 9fe9f9d
mypy and pydocstyle fixes (#271)
mhl10 d45f9c5
bump version
mhl10 76d8c70
minor change to pre-commit instructions
mhl10 77341a9
update release notes URL, text
mhl10 10624dc
instructions for running classic API
mhl10 d68c614
update feedback collector component
mhl10 eb725b1
Merge branch 'master' into develop
mhl10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
[run] | ||
omit = | ||
api.py | ||
app.py | ||
audit.py | ||
classic_api.py | ||
setup.py | ||
docs/* | ||
test* | ||
*test* | ||
wsgi.py | ||
wsgi-api.py | ||
wsgi-classic-api.py | ||
wsgi-app.py | ||
populate_test_metadata.py | ||
upload_static_assets.py | ||
create_index.py | ||
reindex.py | ||
bulk_index.py | ||
shard_ids_for_index.py | ||
search/config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
name: Format Python Code | ||
language: python | ||
entry: black | ||
args: | ||
- --safe | ||
- --line-length=79 | ||
- --target-version=py37 | ||
- . | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.7.9 | ||
hooks: | ||
- id: flake8 | ||
name: Flake8 Check | ||
language: python | ||
entry: flake8 | ||
args: | ||
- search | ||
- tests | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: master | ||
hooks: | ||
- id: pydocstyle | ||
name: Python Documentation Style Check | ||
language: python | ||
entry: pydocstyle | ||
args: | ||
- search | ||
- tests | ||
- --add-ignore=D401,D202 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New pre-commit hooks. Installation instructions are in the readme.