Skip to content

Conversation

@henriquepaes1
Copy link
Contributor

@henriquepaes1 henriquepaes1 commented Sep 20, 2024

This PR closes #112812 by introducing verification of fields mentioned in copyTo when creating a non-dynamic mapping.
The verification made by the FieldMapper#validate method retrieves the leaf mapper associated with the searched field when the dynamic property of the mapping is explicitly set to false, ensuring that the verification occurs exclusively in non-dynamic contexts without affecting other mappings.

@cla-checker-service
Copy link

cla-checker-service bot commented Sep 20, 2024

💚 CLA has been signed

@elasticsearchmachine elasticsearchmachine added v9.0.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Sep 20, 2024
@henriquepaes1 henriquepaes1 marked this pull request as ready for review September 20, 2024 22:38
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Sep 20, 2024
@henriquepaes1 henriquepaes1 changed the title Avoid copying to a non-existent field when dynamic mappings are disabled #112812 Avoid copying to a non-existent field when dynamic mappings are disabled Sep 22, 2024
@henriquepaes1 henriquepaes1 changed the title #112812 Avoid copying to a non-existent field when dynamic mappings are disabled Closes #112812 Avoid copying to a non-existent field when dynamic mappings are disabled Sep 22, 2024
@gbanasiak gbanasiak added the :Search Foundations/Mapping Index mappings, including merging and defining field types label Sep 23, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed needs:triage Requires assignment of a team area label labels Sep 23, 2024
@henriquepaes1
Copy link
Contributor Author

henriquepaes1 commented Oct 2, 2024

Hey @gbanasiak! I just wanted to check in on this PR and see if there’s any blocker that I can handle to move it forward to review or if it’s already in the queue. Thanks in advance for your time!

@benwtrent
Copy link
Member

@henriquepaes1 there is no formal process for somebody to get assigned to this. The appropriate team has been pinged, when they have adequate cycles to look, I am sure they will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect when copying to a non-existent field when dynamic mappings are disabled

4 participants