发布

  • [OPIK-5795] [BE] feat: rename EvaluationSuite to TestSuite, keep public contract values (#6212)

    frostbyte_neo 发布于 2026-04-13 15:34:26 +00:00

    • [OPIK-5795] [BE] feat: rename EvaluationSuite to TestSuite, keep public contract values

    Renames Java identifiers (enums, classes, config keys) from evaluation_suite
    to test_suite while keeping serialized API values and DB string literals as
    'evaluation_suite' until a follow-up migration is done.

    • DatasetType.TEST_SUITE and EvaluationMethod.TEST_SUITE keep value "evaluation_suite"
    • ClickHouse queries still filter on 'evaluation_suite' (no DB migration yet)
    • DB migrations dropped (to be applied in a separate ticket)
    • Class renames: EvalSuiteConfig -> TestSuiteConfig, EvalSuiteAssertionSampler ->
      TestSuiteAssertionSampler, EvalSuiteEvaluatorMapper -> TestSuiteEvaluatorMapper,
      EvalSuitePromptConstants -> TestSuitePromptConstants
    • config.yml key: evalSuite -> testSuite
    • Metadata keys: eval_suite_* -> test_suite_* in Java constants
    • [OPIK-5795] [BE] fix: remove old EvalSuite* files superseded by TestSuite* renames

    • [OPIK-5795] [BE] fix: remove accidentally staged DatasetItemAssertionUtils

    • [OPIK-5795] [BE] fix: revert unrelated test changes from danield branch

    • [OPIK-5795] [BE] fix: revert unrelated langchain4j-bom version bump from danield branch

    • [OPIK-5795] [BE] fix: register DatasetTypeMapper and add @JsonCreator to enums

    • Add @JsonCreator to DatasetType.fromValue() and EvaluationMethod.fromValue()
      so Jackson deserializes by value ("evaluation_suite") instead of by enum
      name, fixing the 400 error after the EVALUATION_SUITE → TEST_SUITE rename
    • Add DatasetType implements HasValue and create DatasetTypeMapper so JDBI3
      binds getValue() = "evaluation_suite" to the MySQL ENUM column instead of
      the enum name "TEST_SUITE" which has no match in the column definition
    • Register DatasetTypeMapper in DatasetDAO via @RegisterArgumentFactory and
      @RegisterColumnMapper, following the DashboardTypeMapper pattern
    下载附件