Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sidebranch: DR Secondary Dashboard - pr4 (#8706)
* setup styling for delta * clean up * replication table remove and rename model to data * remove old replication header component now that it is in addons * move replication secondary card component * calc delta * clean up * remove unused components that are now in addon * address pr comments * remove test * fix failing test * address pr comments * attempting to fix test * move to computed components * fix test error * fix state of null error
- Loading branch information
1 parent
2eb3c0d
commit f8123ed
Showing
22 changed files
with
148 additions
and
232 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
ui/app/templates/components/replication-page/replication-dashboard/dashboard.hbs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
ui/app/templates/components/replication-page/replication-dashboard/replication-card.hbs
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...pp/templates/components/replication-page/replication-dashboard/replication-table-rows.hbs
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
ui/app/templates/components/replication-page/replication-header.hbs
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
ui/app/templates/components/replication-page/replication-toggle.hbs
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
ui/app/templates/components/wizard/replication-details.hbs
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @module ReplicationHeader | ||
* ARG TODO: finish | ||
* | ||
* @example | ||
* ```js | ||
* <ReplicationHeader finish/> | ||
* ``` | ||
*/ | ||
|
||
import Component from '@ember/component'; | ||
import layout from '../templates/components/replication-header'; | ||
|
||
export default Component.extend({ | ||
layout, | ||
}); |
31 changes: 31 additions & 0 deletions
31
ui/lib/core/addon/components/replication-secondary-card.js
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @module ReplicationSecondaryCard | ||
* ARG TODO finish | ||
* | ||
*/ | ||
|
||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import layout from '../templates/components/replication-secondary-card'; | ||
|
||
export default Component.extend({ | ||
layout, | ||
state: computed('data', function() { | ||
let dr = this.data.dr; | ||
return dr && dr.state ? dr.state : 'unknown'; | ||
}), | ||
connection: computed('data', function() { | ||
return this.data.drStateDisplay ? this.data.drStateDisplay : 'unknown'; | ||
}), | ||
lastWAL: computed('data', function() { | ||
let dr = this.data.dr; | ||
return dr && dr.lastWAL ? dr.lastWAL : 0; | ||
}), | ||
lastRemoteWAL: computed('data', function() { | ||
let dr = this.data.dr; | ||
return dr && dr.lastRemoteWAL ? dr.lastRemoteWAL : 0; | ||
}), | ||
delta: computed('data', function() { | ||
return Math.abs(this.get('lastWAL') - this.get('lastRemoteWAL')); | ||
}), | ||
}); |
13 changes: 0 additions & 13 deletions
13
ui/lib/core/addon/templates/components/replication-card.hbs
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.