Skip to content

Conversation

miguelgrinberg
Copy link
Contributor

Indirect discovery while working on #3075 is that the most recent batch of Field subclasses were not included as top-level exports. This PR adds them.

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.

Should this be code generated?

@miguelgrinberg
Copy link
Contributor Author

Should this be code generated?

It should, ideally. But there is a mix of manual and generated classes in the import list, so the file cannot be fully generated. I'll see if I can add a unit test that ensures that all the generated fields can be imported, which should be easier to do.

@miguelgrinberg miguelgrinberg force-pushed the add-missing-field-imports branch from 8f244c4 to dd9588e Compare September 19, 2025 10:15
@miguelgrinberg miguelgrinberg merged commit 9c61068 into elastic:main Sep 19, 2025
18 checks passed
@miguelgrinberg miguelgrinberg deleted the add-missing-field-imports branch September 19, 2025 10:47
github-actions bot pushed a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)
github-actions bot pushed a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)
github-actions bot pushed a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)
miguelgrinberg added a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
miguelgrinberg added a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
miguelgrinberg added a commit that referenced this pull request Sep 19, 2025
* Add most recently added fields as top-level exports

* add unit test to ensure all fields are exported

(cherry picked from commit 9c61068)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants