Skip to content

Commit

Permalink
Merge branch 'branches/rudder/8.1' into branches/rudder/8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf committed Dec 9, 2024
2 parents f595149 + e877fd5 commit 9e545d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class SystemVariableServiceImpl(

getModifiedFilesTtl: () => Box[Int],
getCfengineOutputsTtl: () => Box[Int],
getSendMetrics: () => Box[Option[SendMetrics]],
getReportProtocolDefault: () => Box[AgentReportingProtocol]
) extends SystemVariableService with Loggable {

Expand Down Expand Up @@ -188,15 +187,8 @@ class SystemVariableServiceImpl(

val varServerVersion = systemVariableSpecService.get("SERVER_VERSION").toVariable(Seq(serverVersion))

import SendMetrics.*
val sendMetricsValue = getSendMetrics().getOrElse(None) match {
case None => "no"
case Some(NoMetrics) => "no"
case Some(MinimalMetrics) => "minimal"
case Some(CompleteMetrics) => "complete"
}

val varSendMetrics = systemVariableSpecService.get("SEND_METRICS").toVariable(Seq(sendMetricsValue))
// always disable send metrics - see https://issues.rudder.io/issues/25982
val varSendMetrics = systemVariableSpecService.get("SEND_METRICS").toVariable(Seq("no"))

logger.trace("Global system variables done")
val vars = {
Expand Down Expand Up @@ -225,7 +217,7 @@ class SystemVariableServiceImpl(
// for this method to work properly

// The global system variables are computed before (in the method up there), and
// can be overriden by some node specific parameters (especially, the schedule for
// can be overridden by some node specific parameters (especially, the schedule for
// policy servers)
def getSystemVariables(
nodeInfo: CoreNodeFact,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ class MockTechniques(configurationRepositoryRoot: File, mockGit: MockGitConfigRe

getModifiedFilesTtl = () => Full(30),
getCfengineOutputsTtl = () => Full(7),
getSendMetrics = () => Full(None),
getReportProtocolDefault = () => Full(AgentReportingHTTPS)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,6 @@ class TestNodeConfiguration(

getModifiedFilesTtl = () => Full(30),
getCfengineOutputsTtl = () => Full(7),
getSendMetrics = () => Full(None),
getReportProtocolDefault = () => Full(AgentReportingHTTPS)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,6 @@ object RudderConfigInit {
() => configService.relay_server_syncsharedfiles().toBox,
() => configService.cfengine_modified_files_ttl().toBox,
() => configService.cfengine_outputs_ttl().toBox,
() => configService.send_server_metrics().toBox,
() => configService.rudder_report_protocol_default().toBox
)
lazy val rudderCf3PromisesFileWriterService = new PolicyWriterServiceImpl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ <h3 class="page-title">Debug information</h3>
</div>
</div>

<div class="inner-portlet">
<h3 class="page-title">Usage survey</h3>
<div class="inner-portlet d-none">
<h3>Usage survey</h3>
<div class="portlet-content">
<div class="lift:administration.PropertiesManagement.sendMetricsConfiguration" id="sendMetrics">
<div class="explanation-text">
Expand Down Expand Up @@ -606,7 +606,6 @@ <h3 class="page-title">Usage survey</h3>
</lift:authz>
</div>
</form>

</div>
</div>
</div>
Expand Down

0 comments on commit 9e545d0

Please sign in to comment.