发布

  • [OPIK-3195] [BE] Implement support for experiment tags with full CRUD (#4638)

    frostbyte_neo 发布于 2026-01-08 12:33:14 +00:00

    • Implemented CRUD operations for experiment TAGs

    • [OPIK-3741] Add tests for handling experiment tags in creation and updates.

    • [OPIK-3741] Refactor and parameterize experiment tag tests.

    • Combined related test cases into a single parameterized test for improved maintainability and readability.
    • Introduced createExperimentTagsProvider to supply test data.
    • [OPIK-3741] Fixed formatting.

    • [OPIK-3741] Fixed 00051_add_tags_to_experiments.sql migration to not have a DEFAULT value for the tags' column. Added missing new line at the end.

    • [OPIK-3741] Refactor ExperimentDAO methods to use Objects.nonNull and CollectionUtils::isNotEmpty

    • Simplified null and empty checks for improved readability and maintainability.
    • [OPIK-3741] Add validation for experiment tags
    • Enforced a maximum of 50 tags per experiment.
    • Added constraints to ensure tags are non-blank and do not exceed 100 characters.
    • [OPIK-3741] Fixed formatting

    • [OPIK-3741] Simplify experiment tag assertions in test cases

    • Removed redundant assertThat calls validating experiment tags.
    • Streamlined getAndAssert usage for consistency across all test cases.
    • [OPIK-3741] Enhance experiment tag validation and refactor tests
    • Updated ExperimentDAO to use CollectionUtils::isNotEmpty for cleaner tag checks.
    • Added detailed constraints for experiment tags to enforce validation (max 50 tags, non-blank, max 100 characters per tag).
    • Refactored test cases to use dynamic tag generation for improved test coverage and readability.
    • [OPIK-3741] Remove unused imports from ExperimentDAO and ExperimentUpdate classes

    • [OPIK-3741] Refactor ExperimentsResourceTest to remove redundant static modifiers and to remove Stream full import.

    下载附件