-
Notifications
You must be signed in to change notification settings - Fork 18
Add dataexplorer tests #847
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
Conversation
3464545
to
e6e19c3
Compare
a087e18
to
7a3dfb1
Compare
api/handlers/dataexplorerhandler.py
Outdated
} | ||
} | ||
if not filters: | ||
# NOTE unreachable |
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.
The code will need to get updated to support device behavior for completeness. That's where an empty filter could come from (no uid
for device auth), but it doesn't currently support it. I'll open a ticket about supporting device requests in search.
api/handlers/dataexplorerhandler.py
Outdated
field_query = str(field_query) | ||
except ValueError: | ||
# NOTE unreachable | ||
self.abort(400, 'Must specify string for field query') |
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.
This can get removed
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.
Do you mean the whole except or just the comment? :)
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.
I meant the try/except around the str
cast.
} | ||
|
||
|
||
SOURCE_COMMON = [ |
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.
Thanks for cleaning this up 👍
@ambrussimon-invenshure feel free to merge this one. |
7a3dfb1
to
bd67b59
Compare
Added dataexplorerhandler unit test with mocked ElasticSearch.
@nagem @hkethi002:
#NOTE unreachable
)Review Checklist