mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
**What changed?** Two things: * `common/persistence/tests/visibility_persistence_suite_test.go` renamed to `visibility_persistence_suite.go`, so that its `VisibilityPersistenceSuite` could be imported and run by the third-party package; * `VisibilityStoreFactory` interface introduced. The server now accepts `customVisibilityStoreFactory` and invokes it if visibility store configuration points to `CustomDataStoreConfig`. **Why?** To be have an ability to implement and test custom advanced visibility stores. **How did you test it?** Ran Temporal tests. Also built and ran a Temporal server with `temporal.WithCustomVisibilityStoreFactory(mypackage.NewMyVisibilityStoreFactory())` option passed. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** None. <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** No.