Skip to content

Commit 03bbe95

Browse files
Revert "[ML] Add min_version to model snapshot (#17)"
This reverts commit 155d2f8.
1 parent ff2fb61 commit 03bbe95

File tree

7 files changed

+0
-153
lines changed

7 files changed

+0
-153
lines changed

include/api/CModelSnapshotJsonWriter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class API_EXPORT CModelSnapshotJsonWriter
3232
//! Structure to store the model snapshot metadata
3333
struct SModelSnapshotReport
3434
{
35-
std::string s_MinVersion;
3635
core_t::TTime s_SnapshotTimestamp;
3736
std::string s_Description;
3837
std::string s_SnapshotId;

lib/api/CAnomalyJob.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ const std::string HIERARCHICAL_RESULTS_TAG("f");
7777
const std::string LATEST_RECORD_TIME_TAG("h");
7878
const std::string MODEL_PLOT_TAG("i");
7979
const std::string LAST_RESULTS_TIME_TAG("j");
80-
81-
//! The minimum version required to read the state corresponding to a model snapshot.
82-
//! This should be updated every time there is a breaking change to the model state.
83-
const std::string MODEL_SNAPSHOT_MIN_VERSION("6.3.0");
8480
}
8581

8682
// Statics
@@ -1375,7 +1371,6 @@ bool CAnomalyJob::persistState(const std::string &descriptionPrefix,
13751371
if (m_PersistCompleteFunc)
13761372
{
13771373
CModelSnapshotJsonWriter::SModelSnapshotReport modelSnapshotReport{
1378-
MODEL_SNAPSHOT_MIN_VERSION,
13791374
snapshotTimestamp,
13801375
descriptionPrefix + core::CTimeUtils::toIso8601(snapshotTimestamp),
13811376
snapShotId,

lib/api/CModelSnapshotJsonWriter.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ namespace
1717

1818
// JSON field names
1919
const std::string JOB_ID("job_id");
20-
const std::string MIN_VERSION("min_version");
2120
const std::string TIMESTAMP("timestamp");
2221
const std::string MODEL_SNAPSHOT("model_snapshot");
2322
const std::string SNAPSHOT_ID("snapshot_id");
@@ -46,8 +45,6 @@ void CModelSnapshotJsonWriter::write(const SModelSnapshotReport &report)
4645

4746
m_Writer.String(JOB_ID);
4847
m_Writer.String(m_JobId);
49-
m_Writer.String(MIN_VERSION);
50-
m_Writer.String(report.s_MinVersion);
5148
m_Writer.String(SNAPSHOT_ID);
5249
m_Writer.String(report.s_SnapshotId);
5350

lib/api/unittest/CModelSnapshotJsonWriterTest.cc

Lines changed: 0 additions & 120 deletions
This file was deleted.

lib/api/unittest/CModelSnapshotJsonWriterTest.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/api/unittest/Main.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "CLineifiedJsonOutputWriterTest.h"
2525
#include "CLineifiedXmlInputParserTest.h"
2626
#include "CModelPlotDataJsonWriterTest.h"
27-
#include "CModelSnapshotJsonWriterTest.h"
2827
#include "CMultiFileDataAdderTest.h"
2928
#include "COutputChainerTest.h"
3029
#include "CRestorePreviousStateTest.h"
@@ -59,7 +58,6 @@ int main(int argc, const char **argv)
5958
runner.addTest( CLineifiedJsonOutputWriterTest::suite() );
6059
runner.addTest( CLineifiedXmlInputParserTest::suite() );
6160
runner.addTest( CModelPlotDataJsonWriterTest::suite() );
62-
runner.addTest( CModelSnapshotJsonWriterTest::suite() );
6361
runner.addTest( CMultiFileDataAdderTest::suite() );
6462
runner.addTest( COutputChainerTest::suite() );
6563
runner.addTest( CRestorePreviousStateTest::suite() );

lib/api/unittest/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ SRCS=\
4242
CMockDataProcessor.cc \
4343
CMockSearcher.cc \
4444
CModelPlotDataJsonWriterTest.cc \
45-
CModelSnapshotJsonWriterTest.cc \
4645
CMultiFileDataAdderTest.cc \
4746
COutputChainerTest.cc \
4847
CRestorePreviousStateTest.cc \

0 commit comments

Comments
 (0)