New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #18462: Compliance does not show up if you don't click on refresh #3316
Fixes #18462: Compliance does not show up if you don't click on refresh #3316
Conversation
WIP don't merge |
PR updated with a new commit |
1 similar comment
PR updated with a new commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use to do compliance in a future because it was abysmally long to compute and the node page was then extremelly long to display. IIUC, you are removing that system. Is it OK perf wise?
...dder/rudder-core/src/main/scala/com/normation/rudder/services/reports/ReportingService.scala
Show resolved
Hide resolved
|
||
|
||
def toComplianceArray(comp : ComplianceLevel) : JArray = | ||
JArray ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we didn't do that anymore because of rounding errors, and that we were only using number of components / total number ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I send the same data we used to send
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, strange, I must be mistaken.
n4 = System.currentTimeMillis | ||
_ = TimingDebugLoggerPure.trace(s"Getting global mode: ${n4 - n3}ms") | ||
_ = TimingDebugLoggerPure.trace(s"Getting compliance infos: ${n4 - n3}ms") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it should be that logger there, TimingDebugLoggerPure
shouldn't do anything. You need to either call TimingDebugLogger
or TimingDebugLoggerPure.logEffect
PR updated with a new commit |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
0e75e50
to
e648d3e
Compare
https://issues.rudder.io/issues/18462