Commit c4804bd
committed
fix(metric): use lighter import lookup and correct async response schema
- MetricCsv.createEntity now uses findByNameOrNull instead of
Entity.getEntityByName with all fields, avoiding a per-row fetch of
every related field. The CSV row is the source of truth for all
writable fields anyway.
- importMetricsAsync OpenAPI annotation now declares CSVImportResponse
(jobId/message) instead of CsvImportResult, matching what
importCsvInternalAsync actually returns.1 parent e184d66 commit c4804bd
2 files changed
Lines changed: 6 additions & 7 deletions
File tree
- openmetadata-service/src/main/java/org/openmetadata/service
- jdbi3
- resources/metrics
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
730 | | - | |
| 731 | + | |
731 | 732 | | |
732 | 733 | | |
733 | 734 | | |
| |||
0 commit comments