Skip to content

support composable templates#1943

Merged
miguelgrinberg merged 4 commits intoelastic:mainfrom
miguelgrinberg:new-templates
Dec 10, 2024
Merged

support composable templates#1943
miguelgrinberg merged 4 commits intoelastic:mainfrom
miguelgrinberg:new-templates

Conversation

@miguelgrinberg
Copy link
Copy Markdown
Collaborator

@miguelgrinberg miguelgrinberg commented Nov 11, 2024

This PR adds support for composable templates as a second templating option. The two examples that use templates have been upgraded to the newer templates.

@miguelgrinberg miguelgrinberg marked this pull request as ready for review December 9, 2024 16:20
Copy link
Copy Markdown
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

Comment thread elasticsearch_dsl/_async/index.py Outdated
Comment on lines +159 to +161
# TODO: should we allow pattern to be a top-level arg?
# or maybe have an IndexPattern that allows for it and have
# Document._index be that?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems to me that we should either do it or remove this comment. (The current code seems perfectly usable to me.)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Okay, I'll remove, since these are likely from very long ago and we clearly are fine with the way this is.

@miguelgrinberg miguelgrinberg merged commit a0c53db into elastic:main Dec 10, 2024
@miguelgrinberg miguelgrinberg deleted the new-templates branch December 10, 2024 16:21
@miguelgrinberg miguelgrinberg added the backport 8.x Backport to 8.x label Dec 12, 2024
github-actions Bot pushed a commit that referenced this pull request Dec 12, 2024
* support composable templates

* do not error on aiohttp warning

* rename new index template to composable index template

* remove old comment

(cherry picked from commit a0c53db)
miguelgrinberg added a commit that referenced this pull request Dec 12, 2024
* support composable templates

* do not error on aiohttp warning

* rename new index template to composable index template

* remove old comment

(cherry picked from commit a0c53db)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 8.x Backport to 8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants