Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 79582e4

Browse files
authored
Policy options not saved in settings (#1762)
1 parent 26a96ad commit 79582e4

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

serving-core/src/main/scala/com/stratio/sparta/serving/core/models/policy/PolicyModel.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ case class PolicyModel(
4444
initSqlSentences: Seq[SqlSentence] = Seq.empty[SqlSentence],
4545
autoDeleteCheckpoint: Option[Boolean] = None,
4646
executionMode: Option[String] = None,
47-
driverLocation: Option[String] = None,
48-
pluginsLocation: Option[String] = None,
4947
driverUri: Option[String] = None,
5048
stopGracefully: Option[Boolean] = None
5149
)

web/src/scripts/factories/policy-model-factory.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
policy.cubes = [];
3737
policy.streamTriggers = [];
3838
policy.sparkConf = {};
39-
policy.sparkSubmitArguments = {};
39+
policy.sparkSubmitArguments = [];
40+
policy.initSqlSentences = [];
41+
policy.userPluginsJars = [];
4042
delete policy.id;
4143
///* Reset policy advanced settings to be loaded from template automatically */
4244
delete policy.sparkStreamingWindowNumber;
@@ -51,11 +53,15 @@
5153
delete policy.initSqlSentences;
5254
delete policy.userPluginsJars;
5355
delete policy.executionMode;
56+
delete policy.driverUri;
57+
delete policy.stopGracefully;
5458
}
5559

5660
function setPolicy(inputPolicyJSON) {
5761
policy.id = inputPolicyJSON.id;
5862
policy.name = inputPolicyJSON.name;
63+
policy.driverUri = inputPolicyJSON.driverUri;
64+
policy.stopGracefully = inputPolicyJSON.stopGracefully;
5965
policy.description = inputPolicyJSON.description;
6066
policy.sparkStreamingWindow = inputPolicyJSON.sparkStreamingWindow;
6167
policy.remember = inputPolicyJSON.remember;

0 commit comments

Comments
 (0)