-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronize zookeeper clusters with UI #1888
Conversation
await waitFor(() => { | ||
expectNotificationDispatched(notificationStore, { | ||
type: 'error', | ||
title: 'notifications.sync.failure', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: what do You think about changing its path to "notifications.consistency.sync.failure"? maybe it will be more readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
import { useNotificationsStore } from '@/store/app-notifications/useAppNotifications'; | ||
|
||
export interface UseSync { | ||
errorMessage: Ref<Error | null | undefined>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can it be undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually the errorMessage was not consumed anywhere, removed it entirely
import static pl.allegro.tech.hermes.test.helper.builder.SubscriptionBuilder.subscriptionWithRandomName | ||
import static pl.allegro.tech.hermes.test.helper.builder.TopicBuilder.randomTopic | ||
|
||
class StorageSyncSpec extends MultiZookeeperIntegrationTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well written tests 👏
Allow admins to perform storage synchronization using UI. Admin selects "primary" DC for group/topic/subscription and its content is propagated to nodes in other DCs.
After synchronization only the group that was synchronized is refreshed so consistency view shows up to date information without making an expensive check for all groups
