Commit 9a5ad4c
authored
Don't append display name suffix to data table file keys (#7104)
`CsvDataTableStore.fileKey()` always appended a sanitized suffix derived
from `getInstanceName()`, which defaults to the display name. This meant
every data table got a suffix like `--recipe-performance-c5de` even when
no custom instance name was set and no disambiguation was needed.
Now, when no group is set, a suffix is only added when the instance name
was explicitly customized via `withInstanceName()` (i.e. differs from
the default display name). Plain data tables like `RecipeRunStats` get a
clean key: `org.openrewrite.table.RecipeRunStats`.1 parent 892bbb8 commit 9a5ad4c
2 files changed
Lines changed: 36 additions & 3 deletions
File tree
- rewrite-core/src
- main/java/org/openrewrite
- test/java/org/openrewrite
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
247 | 255 | | |
248 | 256 | | |
249 | | - | |
| 257 | + | |
250 | 258 | | |
251 | 259 | | |
252 | 260 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
249 | 274 | | |
250 | 275 | | |
251 | 276 | | |
| |||
0 commit comments