发布

  • [OPIK-4671] [BE] Move dataset type filter to generic filters (Option A) (#5490)

    frostbyte_neo 发布于 2026-03-04 10:05:12 +00:00

    • [OPIK-4671] [BE] Add dataset type to generic filters mechanism

    Add TYPE(TYPE_QUERY_PARAM, FieldType.ENUM) to DatasetField enum,
    register it in FilterQueryBuilder's DATASET_FIELDS_MAP and
    FilterStrategy.DATASET set. Mark the dedicated @QueryParam("type")
    as deprecated in OpenAPI schema.

    Add tests for filtering datasets by type via generic filters
    (EQUAL/NOT_EQUAL operators + dedicated parameterized test).

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

    • [OPIK-4671] [BE] Remove dedicated type query param in favor of generic filters (Option A)

    Remove the dedicated @QueryParam("type") from the datasets endpoint entirely,
    since neither the SDK nor the FE actively uses it. Type filtering is now only
    available through the generic filters mechanism (DatasetField.TYPE).

    Removed:

    • @QueryParam("type") from DatasetsResource
    • DatasetTypeParamConverter and its registration in OpikApplication
    • type field from DatasetCriteria record
    • typeValue processing from DatasetService (find, fetchUsingMemory, fetchUsingTempTable)
    • <if(type)> AND type = :type clauses from all 6 DatasetDAO query methods
    • Dedicated type query param integration tests

    Kept:

    • DatasetField.TYPE in generic filters (added in previous commit)
    • Generic filter tests for TYPE EQUAL/NOT_EQUAL

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


    Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

    下载附件