Files
Anton RomanovichandGitHub e0e7da233d Add the ability to implement and test custom advanced visibility stores (#4871)
**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.
2023-11-22 16:23:36 -06:00
..
2023-10-09 17:38:51 -05:00