mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? <!-- Describe what has changed in this PR --> Unalias and validate search attributes when import workflow history. ## Why? <!-- Tell your future self why have you made these changes --> Search attributes in workflow histostory JSON file might use aliases (if history was exported using `temporal` cli) or be invalid (name/type/length). Previously import blindly accepted any search attributes and then background visibility task processing could fail. Now search attributes are validated and unaliased (if needed) before getting to the history service. ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> Added new unit tests for both valid and invalid cases. ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> No risks. ## Documentation <!-- Have you made sure this change doesn't falsify anything currently stated in `docs/`? If significant new behavior is added, have you described that in `docs/`? --> No.