Skip to content

Commit 4ca40d3

Browse files
author
Dan Clarizio
authored
Merge pull request #443 from carbonin/add_backlog_to_replication_ui
Add subscription backlog to replication tab
2 parents a945631 + 2f94706 commit 4ca40d3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/controllers/ops_controller/settings/common.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ def get_subscriptions_array(subscriptions)
277277
:user => sub.user,
278278
:password => '●●●●●●●●',
279279
:port => sub.port,
280-
:provider_region => sub.provider_region
280+
:provider_region => sub.provider_region,
281+
:backlog => number_to_human_size(sub.backlog)
281282
}
282283
end
283284
end

app/views/ops/_settings_replication_tab.html.haml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
%th= _('Username')
3737
%th= _('Password')
3838
%th= _('Port')
39+
%th= _('Backlog')
3940
%th{:colspan => 2}=_('Actions')
4041
%tbody
4142
%tr{"ng-if" => "pglogicalReplicationModel.addEnabled"}
@@ -73,6 +74,7 @@
7374
"id" => "port",
7475
"name" => "port",
7576
"ng-model" => "pglogicalReplicationModel.port"}
77+
%td
7678
%td{:class => "action-cell"}
7779
%button.btn.btn-default.btn-block.btn-sm{:type => "button", "ng-disabled" => "!subscriptionValid()", "ng-click" => "addSubscription()"}= _('Accept')
7880
@@ -142,6 +144,8 @@
142144
"name" => "port",
143145
"ng-model" => "pglogicalReplicationModel.port"}
144146
147+
%td
148+
{{subscription.backlog}}
145149
%td{:class => "action-cell", "ng-show" => "showCancelDelete($index)"}
146150
%button.btn.btn-default.btn-sm{:type => "button", "ng-click" => "cancelDelete($index)"}= _('Cancel Delete')
147151

0 commit comments

Comments
 (0)