Skip to content

Commit

Permalink
Issue/48 (#49)
Browse files Browse the repository at this point in the history
* add list group in API

* add consumer to overview page

* update AppVeyor Qt version

* improve table headers; parse member assignment

* consumer group filter model

* add: group members view

* add: back to groups view

Co-authored-by: Dmitry Mukhitov <damukhitov@mts.ru>
  • Loading branch information
RPG-18 and Dmitry Mukhitov authored Dec 18, 2022
1 parent 41f209b commit 36435db
Show file tree
Hide file tree
Showing 29 changed files with 1,798 additions and 48 deletions.
2 changes: 1 addition & 1 deletion run-clang-format.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
find . \( -iname "*.h" -o -iname "*.cpp" \) -not -path "./3rdparty/*" -not -path "./cmake-build-debug/*" -not -path "./cmake-build-release/*" -not -path "./cmake-build-debug-clang/*" | xargs clang-format -i
find . \( -iname "*.h" -o -iname "*.cpp" \) -not -path "./3rdparty/*" -not -path "./cmake-build-debug/*" -not -path "./cmake-build-release/*" -not -path "./cmake-build-debug-clang/*" -not -path "./cmake-build-release-clang/*" | xargs clang-format -i
4 changes: 3 additions & 1 deletion src/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ add_library(components
AvroOption.cpp AvroOption.h
HexView.cpp HexView.h
ExportImportFabric.cpp ExportImportFabric.h
RecordsExporter.cpp RecordsExporter.h)
RecordsExporter.cpp RecordsExporter.h
ConsumerModel.cpp ConsumerModel.h
)

target_compile_definitions(components
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
Expand Down
7 changes: 7 additions & 0 deletions src/components/Cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Cluster::Cluster(QObject *parent)
: QObject(parent)
, m_brokerModel(new BrokerModel(this))
, m_topicModel(new TopicModel(this))
, m_consumerModel(new ConsumerModel(this))
{}

ClusterConfig Cluster::broker() const
Expand All @@ -24,6 +25,7 @@ void Cluster::setBroker(const ClusterConfig &broker)

m_brokerModel->setConfig(m_broker);
m_topicModel->setConfig(m_broker);
m_consumerModel->setConfig(m_broker);
}

BrokerModel *Cluster::brokerModel()
Expand All @@ -34,4 +36,9 @@ BrokerModel *Cluster::brokerModel()
TopicModel *Cluster::topicModel()
{
return m_topicModel;
}

ConsumerModel *Cluster::consumerModel()
{
return m_consumerModel;
}
3 changes: 3 additions & 0 deletions src/components/Cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "BrokerModel.h"
#include "ClusterConfig.h"
#include "ConsumerModel.h"
#include "TopicModel.h"

/**!
Expand All @@ -22,6 +23,7 @@ class Cluster : public QObject

Q_INVOKABLE BrokerModel *brokerModel();
Q_INVOKABLE TopicModel *topicModel();
Q_INVOKABLE ConsumerModel *consumerModel();

signals:

Expand All @@ -31,4 +33,5 @@ class Cluster : public QObject
ClusterConfig m_broker;
BrokerModel *m_brokerModel;
TopicModel *m_topicModel;
ConsumerModel *m_consumerModel;
};
Loading

0 comments on commit 36435db

Please sign in to comment.