Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+15
-15
@@ -156,7 +156,7 @@ bool FrequencyPlanningHandler::init()
|
||||
QVector<Database::AvmFrequencyPlanning> frequencyPlannings;
|
||||
if (!m_db->select(frequencyPlannings))
|
||||
{
|
||||
ERROR_LOG() << "Error while selecting frequency plannings from db";
|
||||
ERROR_LOG(m_logger) << "Error while selecting frequency plannings from db";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -169,11 +169,11 @@ bool FrequencyPlanningHandler::init()
|
||||
m_activePlannings.insert(exerciseId, currentDbData);
|
||||
|
||||
if (!m_dts->publish(ActiveFrequencyPlanning(exerciseId, currentDbData.frequencyPlanningId)))
|
||||
ERROR_LOG() << "Error while publishing ActiveFrequencyPlanning with ID " << exerciseId;
|
||||
ERROR_LOG(m_logger) << "Error while publishing ActiveFrequencyPlanning with ID " << exerciseId;
|
||||
};
|
||||
if (!m_db->select(cbAfp))
|
||||
{
|
||||
ERROR_LOG() << "Error while selecting AvmActiveFrequencyPlannings from db";
|
||||
ERROR_LOG(m_logger) << "Error while selecting AvmActiveFrequencyPlannings from db";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ void FrequencyPlanningHandler::onModifyFrequencyPlanningRequest(const rti::core:
|
||||
{
|
||||
auto ret = request.id() > 0 ? handleModify(request) : handleCreate(request);
|
||||
if (ret.error())
|
||||
WARNING_LOG() << ret();
|
||||
WARNING_LOG(m_logger) << ret();
|
||||
m_fts->modifyFrequencyPlanningReply(cookie, ret);
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ void FrequencyPlanningHandler::onRemoveFrequencyPlanningRequest(const rti::core:
|
||||
{
|
||||
auto ret = handleRemove(request);
|
||||
if (ret.error())
|
||||
WARNING_LOG() << ret();
|
||||
WARNING_LOG(m_logger) << ret();
|
||||
m_fts->removeFrequencyPlanningReply(cookie, ret);
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ void FrequencyPlanningHandler::onModifyActiveFrequencyPlanningRequest(const rti:
|
||||
{
|
||||
auto ret = modifyActiveFrequencyPlanningRequest(request);
|
||||
if (ret.error())
|
||||
WARNING_LOG() << ret();
|
||||
WARNING_LOG(m_logger) << ret();
|
||||
m_fts->modifyActiveFrequencyPlanningReply(cookie, ret);
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ void FrequencyPlanningHandler::onRemoveActiveFrequencyPlanningRequest(const rti:
|
||||
{
|
||||
auto ret = removeActiveFrequencyPlanningRequest(request);
|
||||
if (ret.error())
|
||||
WARNING_LOG() << ret();
|
||||
WARNING_LOG(m_logger) << ret();
|
||||
m_fts->removeActiveFrequencyPlanningReply(cookie, ret);
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ Core::FunctionReplyObject FrequencyPlanningHandler::handleCreate(const ModifyFre
|
||||
status = m_db->insert(dbEntry);
|
||||
if (!status)
|
||||
{
|
||||
WARNING_LOG() << "Failed to insert new FrequencyPlanningData into DB";
|
||||
WARNING_LOG(m_logger) << "Failed to insert new FrequencyPlanningData into DB";
|
||||
break;
|
||||
}
|
||||
dbEntries.push_back(dbEntry);
|
||||
@@ -307,7 +307,7 @@ Q_ASSERT(request.id() > 0);
|
||||
status = m_db->insert(dbEntry);
|
||||
if (!status)
|
||||
{
|
||||
WARNING_LOG() << "Failed to insert new FrequencyPlanningData into DB";
|
||||
WARNING_LOG(m_logger) << "Failed to insert new FrequencyPlanningData into DB";
|
||||
break;
|
||||
}
|
||||
dbEntries.push_back(dbEntry);
|
||||
@@ -444,7 +444,7 @@ std::vector<Database::AvmFrequencyPlanningData> FrequencyPlanningHandler::insert
|
||||
|
||||
Core::FunctionReplyObject FrequencyPlanningHandler::modifyActiveFrequencyPlanningRequest(const ModifyActiveFrequencyPlanningRequest &request)
|
||||
{
|
||||
DEBUG_LOG() << "ModifyActiveFrequencyPlanningRequest: " << request;
|
||||
DEBUG_LOG(m_logger) << "ModifyActiveFrequencyPlanningRequest: " << request;
|
||||
|
||||
Core::FunctionReplyObject reply = validateRequest(request);
|
||||
if (reply.error())
|
||||
@@ -480,7 +480,7 @@ Core::FunctionReplyObject FrequencyPlanningHandler::modifyActiveFrequencyPlannin
|
||||
|
||||
Core::FunctionReplyObject FrequencyPlanningHandler::removeActiveFrequencyPlanningRequest(const RemoveActiveFrequencyPlanningRequest &request)
|
||||
{
|
||||
DEBUG_LOG() << "RemoveActiveFrequencyPlanningRequest: " << request;
|
||||
DEBUG_LOG(m_logger) << "RemoveActiveFrequencyPlanningRequest: " << request;
|
||||
|
||||
Core::FunctionReplyObject reply(request.exerciseId());
|
||||
|
||||
@@ -668,7 +668,7 @@ bool FrequencyPlanningHandler::collectAndPublish(const Database::AvmFrequencyPla
|
||||
bool status = m_db->selectByFrequencyPlanningId(dbEntries, planDb.id);
|
||||
if (!status)
|
||||
{
|
||||
ERROR_LOG() << "Error selecting AvmFrequencyPlanningData from db";
|
||||
ERROR_LOG(m_logger) << "Error selecting AvmFrequencyPlanningData from db";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -691,7 +691,7 @@ void FrequencyPlanningHandler::addPlan(const FrequencyPlanning &plan)
|
||||
|
||||
bool status = m_dts->publish(plan);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'FrequencyPlanning' data with id %1 (create)").arg(plan.id());
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'FrequencyPlanning' data with id %1 (create)").arg(plan.id());
|
||||
|
||||
emit planningChanged();
|
||||
}
|
||||
@@ -706,7 +706,7 @@ void FrequencyPlanningHandler::updatePlan(const FrequencyPlanning &plan)
|
||||
|
||||
bool status = m_dts->publish(plan);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'FrequencyPlanning' data with id %1 (modify)").arg(plan.id());
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'FrequencyPlanning' data with id %1 (modify)").arg(plan.id());
|
||||
|
||||
emit planningChanged();
|
||||
}
|
||||
@@ -720,7 +720,7 @@ void FrequencyPlanningHandler::removePlan(int32_t planId)
|
||||
|
||||
bool status = m_dts->removeFrequencyPlanningByKey(planId);
|
||||
if (!status)
|
||||
ERROR_LOG() << QStringLiteral("Failed to publish 'FrequencyPlanning' with id %1 (remove)").arg(planId);
|
||||
ERROR_LOG(m_logger) << QStringLiteral("Failed to publish 'FrequencyPlanning' with id %1 (remove)").arg(planId);
|
||||
|
||||
emit planningChanged();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user