-
[OPIK-3921] [FE] [BE] Add project column to experiments view (#4899)
发布于
2026-01-26 14:32:02 +00:00 - [OPIK-3921] [FE] [BE] Add project column to experiments view
Add project column to the experiments table to allow users to quickly
see which project each experiment belongs to, similar to the annotation
queues implementation.Backend changes:
- Add projectName field to Experiment API response
- Enrich experiments with project names in ExperimentService by fetching
projects and mapping project IDs to names
Frontend changes:
- Add project_name field to Experiment type
- Add project column to experiments table with ResourceCell
- Include project column in default selected columns
- Filter out project column when grouping by project (similar to dataset)
- Import COLUMN_PROJECT_ID constant
Follows the same pattern as annotation queues project column implementation.
- Revision 2: Add comprehensive test for projectName enrichment and fix enrichExperiment method
- Add test to verify projectName is properly returned when experiments have associated projects
- Fix enrichExperiment (singular) method to also fetch and map project names
- Add projectName initialization in ExperimentDAO mapper
- Test verifies both getById and findExperiments endpoints return projectName
- Revision 3: Simplify test assertions - combine projectId and projectName checks
- Combine both assertions into single Awaitility block
- The wait is needed for ClickHouse to process trace-experiment relationship
- Once projectId is available, projectName enrichment happens synchronously
- Revision 4: Remove unnecessary projectName null initialization
- Remove explicit .projectName(null) from ExperimentDAO mapper
- Consistent with how datasetName is handled (not set in DAO, only enriched in service)
- Field will be null by default and populated during enrichment
下载附件