Commit feece38
authored
Add CHASM visibility task handling of alias to field mapping for custom search attributes (#8558)
Add CHASM visibility task handling of alias to field mapping for custom
search attributes. The Visibility component stores aliased custom search
attributes and their corresponding payloads.
On the WRITE path, Visibility Store CURRENTLY assumes search attributes
are schema field names, and does not apply any mappings from alias ->
field. This is because FrontEnd "Unaliases" to its field names before
sending to History.
## What changed?
Before calling the visibility manager `UpsertWorkflowExecution`, the
search attributes need to be mapped from their aliases to their field
names.
## Why?
Support Visibility component compatibility with current Visibility Store
implementation.
## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [X] added new unit test(s)
- [ ] added new functional test(s)1 parent 9ce746d commit feece38
File tree
3 files changed
+35
-9
lines changed- common/persistence/visibility/store/elasticsearch
- service/history
3 files changed
+35
-9
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
393 | 400 | | |
394 | 401 | | |
395 | 402 | | |
396 | | - | |
397 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
398 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
399 | 419 | | |
400 | 420 | | |
401 | 421 | | |
| |||
419 | 439 | | |
420 | 440 | | |
421 | 441 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | 442 | | |
428 | 443 | | |
429 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
| |||
0 commit comments