-
Notifications
You must be signed in to change notification settings - Fork 1
Local testing #146
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
base: dev
Are you sure you want to change the base?
Local testing #146
Conversation
this is not the most semantically correct, but it doesn't break anything and orchid seems to expect it
this is necessary to make this sort of query work
techgique
left a 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.
Noting what I found before I work on the code to make revisions.
- Make auth code more readable with less string interpolation and separate multiple args for methods across lines - Check if elasticsearch credentials are present to determine whether to construct addition auth header and merge with json header
- Compare and match against a fresh `rails new --api` app - Remove net-smtp gem from Gemfile and Changelog - Remove extra platforms
Remove old new_framework_defaults initializers for 5.0 and 5.2
Update of Gemfile required logger be added to boot.rb now Listen gem version was causing Rails app boot to fail. Hadn't run bundle update again after removing the extra platforms, so suspect this was the problem we'd seen before with those 🤔
Note production is modified to keep non-public production domains out of source control
Add back RestClient::BadRequest exception so both display errors from Elasticsearch in API response rather than returning an opaque Rails error page
- Fix typo in comment - Reformat other comments so there is a space between # and text - Refactor `if nested` code together and bypass extraneous variable when value only used once after - Likewise for path variable - Fix indentation of aggregation hash
- Remove extraneous returns - Remove extraneous use of buckets variable when direct returns work
- Version to 2.0.0
- Config example license and docs links updated. Old year removed from
`api_update` example
- Changelog review
- Set version for release and compare url to `v2.0.0`
- Change explicit code references to `code` rather than "quotes"
- Capitalize first words, remove trailing periods
- Remove duplicate entries (`Migration` section, `api_version` added
to `res`)
- Drop Rails and Ruby entry as v1.0.5 for v1 already upgraded to them
- Move text for list item including json snippets to before
the snippets as Markdown doesn't connect the indented text after
with prior list items
- Add json syntax highlighting to json snippets
- Reorder some of the major change items to the top of sections
- Add v1.0.5 release that was forgotten with that release
Resolve merge conflicts - Keep all changes from `local_testing` for Changelog, Gemfile, Gemfile.lock - Others accepted from `dev`
|
@wkdewey, please review the changes I've made to double-check I haven't made any mistakes. We might want to test this on the dev server with the dev Rails apps utilizing it as well. The changes I made to handle Elasticsearch both with and without auth mean we can delete the |
contains all the work I've been doing on the API (see #128 which this supercedes)