Commit e2c94da
fix: include plugin column types in display_sample_record() (#365)
* fix: include plugin column types in display_sample_record()
Replace hardcoded column type list with dynamic iteration over
get_column_display_order(), which already includes plugin-registered
types. Column types with dedicated display sections (SEED_DATASET,
IMAGE, LLM_CODE, VALIDATION, LLM_JUDGE) are excluded from the
"Generated Columns" table as before.
Also display side_effect_columns for plugin column types, matching
the existing behavior for CUSTOM columns.
Fixes #345
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
* fix: use is_plugin_column_type() for side-effect column display
Add is_plugin_column_type() helper to column_types.py to avoid
redundant plugin_manager.get_plugin_column_types() calls. Use it
in display_sample_record() to show side_effect_columns for plugin
column types, matching existing CUSTOM behavior.
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
* fix: handle string column_type in is_plugin_column_type()
Column configs store column_type as a Literal string, not a
DataDesignerColumnType enum. Accept both str and enum to avoid
AttributeError when calling .value on a plain string.
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
* test: improve plugin column display tests
- Move test imports to module level per project convention
- Replace plumbing-only test with one that renders a fake plugin
column (with side-effect columns) to HTML and asserts the values
appear in the output
- Add parametrized test for is_plugin_column_type() verifying all
built-in types return False for both enum and string forms
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
* fix: preserve original display order for side-effect columns
Render primary column before side-effect columns, matching the
existing CUSTOM column behavior. Avoids introducing display
ordering discrepancies.
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Made-with: Cursor
---------
Signed-off-by: Yev Meyer <ymeyer@nvidia.com>
Co-authored-by: Johnny Greco <jogreco@nvidia.com>1 parent ddd6eb4 commit e2c94da
4 files changed
Lines changed: 78 additions & 11 deletions
File tree
- packages/data-designer-config
- src/data_designer/config
- utils
- tests/config
- utils
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
| |||
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
309 | | - | |
310 | | - | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
271 | 322 | | |
272 | 323 | | |
273 | 324 | | |
| |||
0 commit comments