-
[OPIK-3195] [BE] Implement support for experiment tags with full CRUD (#4638)
发布于
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
createExperimentTagsProviderto supply test data.
-
[OPIK-3741] Fixed formatting.
-
[OPIK-3741] Fixed
00051_add_tags_to_experiments.sqlmigration to not have a DEFAULT value for the tags' column. Added missing new line at the end. -
[OPIK-3741] Refactor
ExperimentDAOmethods to useObjects.nonNullandCollectionUtils::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
assertThatcalls validating experiment tags. - Streamlined
getAndAssertusage for consistency across all test cases.
- [OPIK-3741] Enhance experiment tag validation and refactor tests
- Updated
ExperimentDAOto useCollectionUtils::isNotEmptyfor 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
ExperimentDAOandExperimentUpdateclasses -
[OPIK-3741] Refactor
ExperimentsResourceTestto remove redundant static modifiers and to remove Stream full import.
下载附件
-