-
Notifications
You must be signed in to change notification settings - Fork 800
Autogenerate Query classes #1890
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
Merged
miguelgrinberg
merged 27 commits into
elastic:main
from
miguelgrinberg:python-dsl-generator
Sep 13, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
524bd9c
Autogenerate Query classes
miguelgrinberg 47f0e4d
handle Python reserved keywords such as from
miguelgrinberg 2d581cf
replace long deprecated 'filtered' query from tests
miguelgrinberg 3992d9f
minor code generation updates
miguelgrinberg 3aa2430
more code generation updates
miguelgrinberg 33f2a7f
address typing issues
miguelgrinberg a4760b3
clean up code generation templates
miguelgrinberg 44dcd87
more code generator cleanup
miguelgrinberg ffbbe1f
add a unit test using some of the generated classes
miguelgrinberg 2118bd8
no need to "reset" the interface list
miguelgrinberg 8a227a8
use the transport's DEFAULT type
miguelgrinberg 81109e3
include inherited properties in docstrings and constructors
miguelgrinberg 9766538
support legacy FieldValueFactor name for FieldValueFactorScore
miguelgrinberg 984993c
Update utils/generator.py
miguelgrinberg 55e3fc8
use the identity operator to check for defaults
miguelgrinberg 7c81263
rename interfaces.py to types.py
miguelgrinberg 819b79b
leave undocumented classes and attributes with an empty docstring
miguelgrinberg d6fc3f0
add unit test for AttrDict with from reserved keyword
miguelgrinberg 67abf79
add a dependency on the transport library
miguelgrinberg ef3cc7d
Update utils/generator.py
miguelgrinberg 1c43dd2
list required arguments first in types.py
miguelgrinberg 4977f9f
add server defaults to argument docstrings
miguelgrinberg 97643e1
remove unnecessary quotes from type hints in types.py
miguelgrinberg 2dc5a23
Update utils/templates/types.py.tpl
miguelgrinberg 937ddf1
Update utils/generator.py
miguelgrinberg bb23d01
Update utils/generator.py
miguelgrinberg 0a17b26
final round of review improvements
miguelgrinberg 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.