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

Add DerivedFieldMapper and support parsing it in mappings #12569

Merged
merged 16 commits into from
Apr 2, 2024

Commits on Apr 1, 2024

  1. Add initial implementation of DerivedFieldMapper class

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    a830f94 View commit details
    Browse the repository at this point in the history
  2. Add support for parsing derived fields in mappings

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    0dbeac7 View commit details
    Browse the repository at this point in the history
  3. Add tests for DerivedFieldMapper

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    1f8c692 View commit details
    Browse the repository at this point in the history
  4. Add test for parsing derived mappings in ObjectMapperTests

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    0a0b95c View commit details
    Browse the repository at this point in the history
  5. Update serialization for DerivedFieldMapper to work as expected

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    ef43544 View commit details
    Browse the repository at this point in the history
  6. Update toXContent in ObjectMapper so serialization accounts for deriv…

    …ed field mappings
    
    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    443b2f2 View commit details
    Browse the repository at this point in the history
  7. Do not remove 'type' from fieldNode prematurely when it is a paramete…

    …r in the case of DerivedFieldMapper
    
    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    7e68763 View commit details
    Browse the repository at this point in the history
  8. Fix tests

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    2aa70db View commit details
    Browse the repository at this point in the history
  9. Move DerivedFieldType to its own file and add an enum for DerivedFiel…

    …dSupportedTypes
    
    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    711c652 View commit details
    Browse the repository at this point in the history
  10. Fix test assertion due to change in DerivedFieldMapper CONTENT_TYPE

    Signed-off-by: Mohammad Qureshi <[email protected]>
    qreshi authored and rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    7fe836d View commit details
    Browse the repository at this point in the history
  11. Add tests for all supported query types for derived fields

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    5f4eabc View commit details
    Browse the repository at this point in the history
  12. spotless fixes

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    71c2439 View commit details
    Browse the repository at this point in the history
  13. Fix test failures

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    c69972d View commit details
    Browse the repository at this point in the history
  14. Address PR comments and add to CHANGELOG

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    6853c9b View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Fix CHANGELOG entry to add it to 2.x instead of 3.0

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    b33293f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into derived-field-mapper

    Signed-off-by: Rishabh Maurya <[email protected]>
    rishabhmaurya authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    97a8be8 View commit details
    Browse the repository at this point in the history