Skip to content

Commit

Permalink
1.26.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
topilski committed Feb 2, 2019
1 parent 7a92db1 commit 5f68ed1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.26.2 /
1.26.2 / February 2, 2019
[Alexandr Topilski]
- [Redis] Fixed discovery cluster

1.26.1 / January 13, 2019
[Alexandr Topilski]
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.6.3) # OPENSSL_USE_STATIC_LIBS

SET(BRANDING_PROJECT_NAME "FastoNoSQL" CACHE STRING "Branding for ${BRANDING_PROJECT_NAME}") #default
SET(BRANDING_PROJECT_VERSION "1.26.2.0" CACHE STRING "Branding version for ${BRANDING_PROJECT_NAME}") #default
SET(BRANDING_PROJECT_BUILD_TYPE_VERSION "alfa" CACHE STRING "Build version type for ${BRANDING_PROJECT_NAME}") #default
SET(BRANDING_PROJECT_BUILD_TYPE_VERSION "release" CACHE STRING "Build version type for ${BRANDING_PROJECT_NAME}") #default
#possible variables: alfa, beta, rc, release

SET(BRANDING_PROJECT_DOMAIN "https://fastonosql.com" CACHE STRING "Branding domain url for ${BRANDING_PROJECT_NAME}") #default
Expand Down
3 changes: 2 additions & 1 deletion FASTOREDIS_CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.23.4 /
1.23.4 / February 2, 2019
[Alexandr Topilski]
- Fixed discovery cluster

1.23.3 / January 13, 2019
[Alexandr Topilski]
Expand Down
10 changes: 8 additions & 2 deletions src/gui/dialogs/discovery_cluster_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

namespace {
const QSize kStateIconSize = QSize(64, 64);
const QString trTooltip = QObject::tr("Select items which you want add to cluster.");
const QString trNoteCluster = QObject::tr("Select items which you want add to cluster.");
} // namespace

namespace fastonosql {
Expand All @@ -63,6 +63,9 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString

status_label_ = new QLabel(translations::trTimeTemplate_1S.arg("calculate..."));
icon_label_ = new QLabel;
note_label_ = new QLabel(trNoteCluster);
note_label_->setStyleSheet("QLabel { color: red; }");
note_label_->setVisible(false);
setIcon(GuiFactory::GetInstance().failIcon());

list_widget_ = new QTreeWidget;
Expand All @@ -75,7 +78,7 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString
list_widget_->setSelectionMode(QAbstractItemView::MultiSelection);
list_widget_->setSelectionBehavior(QAbstractItemView::SelectRows);
list_widget_->setEnabled(false);
list_widget_->setToolTip(trTooltip);
list_widget_->setToolTip(trNoteCluster);

QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok);
button_box->setOrientation(Qt::Horizontal);
Expand All @@ -85,6 +88,7 @@ DiscoveryClusterDiagnosticDialog::DiscoveryClusterDiagnosticDialog(const QString
main_layout->addWidget(execute_time_label_);
main_layout->addWidget(status_label_);
main_layout->addWidget(icon_label_, 1, Qt::AlignCenter);
main_layout->addWidget(note_label_);
main_layout->addWidget(list_widget_);
main_layout->addWidget(button_box);
setLayout(main_layout);
Expand Down Expand Up @@ -123,6 +127,7 @@ void DiscoveryClusterDiagnosticDialog::connectionResultReady(common::Error err,
common::ConvertFromString(err->GetDescription(), &qerror);
setIcon(GuiFactory::GetInstance().failIcon());
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(qerror));
note_label_->setVisible(false);
return;
}

Expand All @@ -139,6 +144,7 @@ void DiscoveryClusterDiagnosticDialog::connectionResultReady(common::Error err,
list_widget_->addTopLevelItem(item);
}
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(translations::trSuccess));
note_label_->setVisible(true);
}

void DiscoveryClusterDiagnosticDialog::showEvent(QShowEvent* e) {
Expand Down
1 change: 1 addition & 0 deletions src/gui/dialogs/discovery_cluster_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class DiscoveryClusterDiagnosticDialog : public BaseDialog {
common::qt::gui::GlassWidget* glass_widget_;
QLabel* execute_time_label_;
QLabel* status_label_;
QLabel* note_label_;
QTreeWidget* list_widget_;
QLabel* icon_label_;
proxy::IClusterSettingsBaseSPtr cluster_;
Expand Down
11 changes: 9 additions & 2 deletions src/gui/dialogs/discovery_sentinel_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

namespace {
const QSize kStateIconSize = QSize(64, 64);
}
const QString trNoteSentinel = QObject::tr("Select items which you want add to sentinel.");
} // namespace

namespace fastonosql {
namespace gui {
Expand All @@ -62,6 +63,9 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri

status_label_ = new QLabel(translations::trTimeTemplate_1S.arg("calculate..."));
icon_label_ = new QLabel;
note_label_ = new QLabel(trNoteSentinel);
note_label_->setStyleSheet("QLabel { color: red; }");
note_label_->setVisible(false);
setIcon(GuiFactory::GetInstance().failIcon());

list_widget_ = new QTreeWidget;
Expand All @@ -78,7 +82,7 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri
list_widget_->setSelectionBehavior(QAbstractItemView::SelectRows);

list_widget_->setEnabled(false);
list_widget_->setToolTip(tr("Select items which you want add to sentinel."));
list_widget_->setToolTip(trNoteSentinel);

QDialogButtonBox* button_box = new QDialogButtonBox(QDialogButtonBox::Ok);
button_box->setOrientation(Qt::Horizontal);
Expand All @@ -88,6 +92,7 @@ DiscoverySentinelDiagnosticDialog::DiscoverySentinelDiagnosticDialog(const QStri
main_layout->addWidget(execute_time_label_);
main_layout->addWidget(status_label_);
main_layout->addWidget(icon_label_, 1, Qt::AlignCenter);
main_layout->addWidget(note_label_);
main_layout->addWidget(list_widget_);
main_layout->addWidget(button_box);
setLayout(main_layout);
Expand Down Expand Up @@ -127,6 +132,7 @@ void DiscoverySentinelDiagnosticDialog::connectionResultReady(
common::ConvertFromString(err->GetDescription(), &qerror);
setIcon(GuiFactory::GetInstance().failIcon());
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(qerror));
note_label_->setVisible(false);
return;
}

Expand All @@ -142,6 +148,7 @@ void DiscoverySentinelDiagnosticDialog::connectionResultReady(
list_widget_->addTopLevelItem(item);
}
status_label_->setText(translations::trConnectionStatusTemplate_1S.arg(translations::trSuccess));
note_label_->setVisible(true);
}

void DiscoverySentinelDiagnosticDialog::showEvent(QShowEvent* e) {
Expand Down
1 change: 1 addition & 0 deletions src/gui/dialogs/discovery_sentinel_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class DiscoverySentinelDiagnosticDialog : public BaseDialog {
common::qt::gui::GlassWidget* glass_widget_;
QLabel* execute_time_label_;
QLabel* status_label_;
QLabel* note_label_;
QTreeWidget* list_widget_;
QLabel* icon_label_;
};
Expand Down

0 comments on commit 5f68ed1

Please sign in to comment.