Skip to content
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

support composable templates #1943

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

miguelgrinberg
Copy link
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
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 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
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
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
18 checks passed
@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