-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sidebranch: address transition issues on replication engine and actio…
…ns (#9010) * small formatting changes * change findRecord to peekRecord so it keeps track of the changing data. * add styling such that when page is loading it does not spread across the whole page * help with reload and styling on replication route * initial setup for new flow that handles adding a perf secondary, and also some on a dr secondary * clean up * add loader on rep page for situations when data is still loading, and add loading mode in header, seperate from the modeForUrl used in other places to help transistion * fix transitionTo when coming from different replication.mode vs replication.index route * set default of mode for radio checkboxes after removing from DEFAULTS var * reset and cont using onEnable because TransitionTo is not working inside of component * remove console * the reason we were getting transition errors :( * remove modeObjecT * fix error by removing peek record from application and moving it lower down in a property replicationAttrs * Readd back space * this one really does fix the issue * add back peek record and add conditional to isLoadingData * figure out cluster id from service instead of hardcoded * fix capabilities-self error by adding a 1 sceond delay for when transition from replication.index to replication.mode.index on enable performance secondary * remove attempt to circumvent the peekRecord in application * add to replication page tests and clarify replicationMode to formattedReplicationMode, it's super confusing when seeing replicationMode being duplicated throughout the computed components. this clarifies its computed only for formatting * fix repetive conditional * capture the state when either dr.mode or performance.mode are undefined, which happens during a transition. If this is the case add a loader on the replicationindex page. * address some pr comments * small change * add bootstrapping mode to test
- Loading branch information
1 parent
dd81d58
commit 83c8944
Showing
14 changed files
with
184 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 23 additions & 19 deletions
42
ui/lib/core/addon/templates/components/replication-page.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
<div class="replication-page" data-test-replication-page> | ||
{{yield | ||
(hash | ||
header=(component 'replication-header' | ||
data=model | ||
title=replicationMode | ||
isSecondary=isSecondary | ||
secondaryId=replicationDetails.secondaryId | ||
{{#if isLoadingData }} | ||
<LayoutLoading /> | ||
{{else}} | ||
{{yield | ||
(hash | ||
header=(component 'replication-header' | ||
data=model | ||
title=formattedReplicationMode | ||
isSecondary=isSecondary | ||
secondaryId=replicationDetails.secondaryId | ||
) | ||
dashboard=(component | ||
'replication-dashboard' | ||
data=model | ||
isSecondary=isSecondary | ||
replicationDetails=replicationDetails | ||
clusterMode=clusterMode | ||
reindexingDetails=reindexingDetails | ||
) | ||
isDisabled=isDisabled | ||
message=message | ||
) | ||
dashboard=(component | ||
'replication-dashboard' | ||
data=model | ||
isSecondary=isSecondary | ||
replicationDetails=replicationDetails | ||
clusterMode=clusterMode | ||
reindexingDetails=reindexingDetails | ||
) | ||
isDisabled=isDisabled | ||
message=message | ||
) | ||
}} | ||
}} | ||
{{/if}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
{{#if (eq model.mode 'unsupported')}} | ||
<PageHeader as |p|> | ||
<p.levelLeft> | ||
<h1 class="title is-3 has-text-grey"> | ||
Replication unsupported | ||
</h1> | ||
</p.levelLeft> | ||
</PageHeader> | ||
<EmptyState | ||
@title="The current cluster configuration does not support replication" | ||
/> | ||
{{else}} | ||
<ReplicationSummary | ||
@cluster={{model}} | ||
@showModeSummary={{true}} | ||
@onEnable={{action "onEnable"}} | ||
@onDisable={{action "onDisable"}} | ||
/> | ||
{{/if}} | ||
<section class="section"> | ||
<div class="container is-widescreen"> | ||
{{#if model.replicationIsInitializing }} | ||
<LayoutLoading /> | ||
{{else}} | ||
{{#if (eq model.mode 'unsupported')}} | ||
<PageHeader as |p|> | ||
<p.levelLeft> | ||
<h1 class="title is-3 has-text-grey"> | ||
Replication unsupported | ||
</h1> | ||
</p.levelLeft> | ||
</PageHeader> | ||
<EmptyState | ||
@title="The current cluster configuration does not support replication" | ||
/> | ||
{{else}} | ||
<ReplicationSummary | ||
@cluster={{model}} | ||
@showModeSummary={{true}} | ||
@onEnable={{action "onEnable"}} | ||
@onDisable={{action "onDisable"}} | ||
/> | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
</section> |
Oops, something went wrong.