-
Notifications
You must be signed in to change notification settings - Fork 113
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
Compliance API to report the node usage data #5931
Compliance API to report the node usage data #5931
Conversation
d589548
to
d354d98
Compare
@@ -222,3 +245,21 @@ func formatFilters(filters []*stats.ListFilter) map[string][]string { | |||
} | |||
return formattedFilters | |||
} | |||
|
|||
// daysBetween get the calendar days between two timestamp | |||
func daysBetween(fromTime, toTime time.Time) int { |
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.
This func computes the days between two dates. it's misleading that it returns 15 if fromTime is zero.
I would remove the part that returns 15 if fromTime is zero and do that check before calling this func instead.
This way, the func can serve as a util func. We could then put it in the utils package and reuse it
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.
Added this daysBetween() func in utils package
telemetry, err := srv.pg.GetTelemetry(ctx) | ||
if err != nil { | ||
return nil, err | ||
} |
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.
here I would check for telemetry.LastTelemetryReportedAt
and if it's 0 then set daysSinceLastPost to 15
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.
Added the suggested changes. Thanks!!
days := -fromTime.YearDay() | ||
for year := fromTime.Year(); year < toTime.Year(); year++ { | ||
days += time.Date(year, time.December, 31, 0, 0, 0, 0, time.UTC).YearDay() | ||
} |
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.
could you have done this instead?:
days := toTime.Sub(fromTime).Hours() / 24
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.
Yes, I already tried it but with this the issue is, it computes the days with 24 hours
If less than 24 hrs then it did not consider that day
GetNodesUsageCount | ||
|
||
Returns the count of unique nodes with lastRun in a given time. | ||
The time duration can be between the last time Telemetry data sent and the current date. |
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.
should not be current date
but the day before that
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.
Did the changes
return 0, err | ||
} | ||
|
||
var rangeQueryThreshold *elastic.RangeQuery |
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.
var rangeQueryThreshold *elastic.RangeQuery | |
var rangeQueryThreshold *elastic.RangeQuery | |
t := time.Now().AddDate(0, 0, -1) | |
yesterdayEODTimeStamp := time.Date(t.Year(), t.Month(), t.Day(), 23, 59, 59, t.Nanosecond(), t.Location()) |
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.
Added the changes. Thanks!!
|
||
var rangeQueryThreshold *elastic.RangeQuery | ||
if daysSinceLastPost > 15 { | ||
rangeQueryThreshold = elastic.NewRangeQuery("last_run").From(lastTelemetryReportedAt).To(time.Now()) |
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 need to evaluate from yesterday timestamp
rangeQueryThreshold = elastic.NewRangeQuery("last_run").From(lastTelemetryReportedAt).To(time.Now()) | |
rangeQueryThreshold = elastic.NewRangeQuery("last_run").From(lastTelemetryReportedAt).To(yesterdayEODTimeStamp) |
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.
Did the suggested changes.
if daysSinceLastPost > 15 { | ||
rangeQueryThreshold = elastic.NewRangeQuery("last_run").From(lastTelemetryReportedAt).To(time.Now()) | ||
} else { | ||
rangeQueryThreshold = elastic.NewRangeQuery("last_run").Gte("now-" + "15d") |
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 need to modify this too. May be like this:
rangeQueryThreshold = elastic.NewRangeQuery("last_run").Gte("now-" + "15d") | |
startTimeStamp := yesterdayEODTimeStamp.AddDate(0,0,-16) | |
rangeQueryThreshold = elastic.NewRangeQuery("last_run").From(startTimeStamp).To(yesterdayEODTimeStamp) |
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.
Added the changes
d84af5b
to
6884d2b
Compare
d354d98
to
2457e2f
Compare
d9ce8e9
to
cc4977f
Compare
Signed-off-by: root <swale@msystechnologies.com>
… telemetry sent Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: root <swale@msystechnologies.com>
4be0bf1
to
241b5d0
Compare
Signed-off-by: root <swale@msystechnologies.com>
Kudos, SonarCloud Quality Gate passed! |
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: s…
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: s…
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: s…
* Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com>
…umber of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * update 200k nodes response time Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Formatting the doc Signed-off-by: Kallol Roy <karoy@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> Co-authored-by: vinay sharma <vsharma@chef.io>
* Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * add .md file Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: s…
* Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * remove debugger Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * add environment variables Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com> Co-authored-by: Rick Marry <rmarry@chef.io> Co-authored-by: Kallol Roy <karoy@progress.com> * load up 16days worth of run info for testing (#5943) * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * add 16 days worth of compliance run info for testing Signed-off-by: Rick Marry <rmarry@chef.io> * added sql script for telemetry table in application services (#5967) Signed-off-by: Vinay Sharma <vsharma@chef.io> * script added for telemetry table in client run to store last telemtry reported date (#5980) Signed-off-by: root <swale@msystechnologies.com> * Compliance API to report the node usage data (#5931) * Complaince telemetry node usage API added Signed-off-by: root <swale@msystechnologies.com> * Changes added to get the compliance node usage data based on the last telemetry sent Signed-off-by: root <swale@msystechnologies.com> * Changes added to handle the last telemetry reported date is nil Signed-off-by: root <swale@msystechnologies.com> * First time telemetry data sent case handled Signed-off-by: root <swale@msystechnologies.com> * Changes added for the review comments Signed-off-by: root <swale@msystechnologies.com> * changes added for the storeCompliance function to call it in goroutine Signed-off-by: root <swale@msystechnologies.com> * Client run telemetry acknowledgement API added (#6007) Signed-off-by: root <swale@msystechnologies.com> * add cfgmgmt node run info index into elasticsearch (#5985) * add cfgmgmt node run info index into elasticsearch Signed-off-by: Rick Marry <rmarry@chef.io> * rename node-run-info Signed-off-by: Rick Marry <rmarry@chef.io> * Performance testing to capture the API response times for different number of nodes (#6011) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * store compliance run info (#5919) * write run info to index Signed-off-by: Rick Marry <rmarry@chef.io> * take out unnecessary update var in upsert command for run info Signed-off-by: Rick Marry <rmarry@chef.io> * integration tests for run info Signed-off-by: Rick Marry <rmarry@chef.io> * Telemetry - compliance-stats - nodeusage count (#5932) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * add comp-run-info index to elasticsearch (#5880) Signed-off-by: Rick Marry <rmarry@chef.io> * Storage functions for the last compliance telemetry reported date (#5896) * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Send ComplianceStats telemetry data on login/page refresh (#5718) * compliance stats integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * fix lint errors Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * change event name Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * arrange service class in alphabetical order Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * Table script to store the deployment id in automate (#5804) * script added for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Updated up script for deployment table Signed-off-by: root <swale@msystechnologies.com> * Store the unique id for every deployment in DB (#5829) * Changes added to store deployment id in license-control-service Signed-off-by: root <swale@msystechnologies.com> * Deployment up script updated Signed-off-by: root <swale@msystechnologies.com> * Added storage function Signed-off-by: root <swale@msystechnologies.com> * User settings - Timeformat Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * resolve git conflicts Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * gRPC service in license control service to get the deployment id (#5839) * gRPC service added to get the deployment id Signed-off-by: root <swale@msystechnologies.com> * Unit test cases added Signed-off-by: root <swale@msystechnologies.com> * Minor change to run test case Signed-off-by: root <swale@msystechnologies.com> * Updated test case Signed-off-by: root <swale@msystechnologies.com> * Minor change ion test case Signed-off-by: root <swale@msystechnologies.com> * Minor changes added Signed-off-by: root <swale@msystechnologies.com> * Commented code removed Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * changes added to get the deployment id in telemetry config API (#5875) Signed-off-by: root <swale@msystechnologies.com> * Table script to store the last compliance telemetry reported date (#5878) * Script added for the telemetry table in compliance service Signed-off-by: root <swale@msystechnologies.com> * Updated script Signed-off-by: root <swale@msystechnologies.com> * Storage functions added for the telemetry table Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com> Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com> * Go fmt the es index file Signed-off-by: Kallol Roy <karoy@progress.com> * Go fmt the mappings file Signed-off-by: Kallol Roy <karoy@progress.com> * Proto fix added in license control service to get the deployment id (#5904) * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * Generate pb file Signed-off-by: Kallol Roy <karoy@progress.com> * Updated proto messages Signed-off-by: root <swale@msystechnologies.com> Co-authored-by: Kallol Roy <karoy@progress.com> * Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918) * Telemetry Acknowledgement API added Signed-off-by: root <swale@msystechnologies.com> * Proto changes added Signed-off-by: root <swale@msystechnologies.com> * minor changes added Signed-off-by: root <swale@msystechnologies.com> * Updated API for postgres initialization in an existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * Updated postgre object to nil in existing stats test cases Signed-off-by: root <swale@msystechnologies.com> * UI - compliance-stats API integration Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * lint errors are resolved Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com> * code cleanup Signed-off-by: Venkatesh-rengasamy <vrengasa@progress…
🔩 Description: What code changed, and why?
Automate compliance API to to report the node usage data
This API report back the count of unique nodes with lastRun in a given time.
⛓️ Related Resources
#5861
👍 Definition of Done
I have added the API in compliance service to report back the count of unique nodes with lastRun in a given time.
The time duration is between the last time Telemetry data sent and the current date.
If the duration < 15 days --> 15 days
duration > 15 days --> duration
👟 How to Build and Test the Change
Steps to build:
Steps to test:
Request
This is a get request
curl -sSkH "api-token: $(get_admin_token)" 'https://a2-dev.test/api/v0/compliance/reporting/stats/nodes/count'
Response
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable