Skip to content
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

Telemetry Improvements to capture license usage #5810

Merged
merged 32 commits into from
Nov 10, 2021

Conversation

Venkatesh-rengasamy
Copy link
Contributor

πŸ”© Description: What code changed, and why?

Keep telemetry-improvements branch up to date.

⛓️ Related Resources

πŸ‘ Definition of Done

πŸ‘Ÿ How to Build and Test the Change

βœ… Checklist

All PRs must tick these:

With occasional exceptions, all PRs from Progress employees must tick these:

  • Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
  • Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
  • Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
  • Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
  • Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

  • Tests added/updated? (all new code needs new tests)
  • Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.

πŸ“· Screenshots, if applicable

@netlify
Copy link

netlify bot commented Sep 27, 2021

βœ”οΈ Deploy Preview for chef-automate ready!

πŸ”¨ Explore the source changes: f16fb2c

πŸ” Inspect the deploy log: https://app.netlify.com/sites/chef-automate/deploys/618b576078de4b0008b7b79e

😎 Browse the preview: https://deploy-preview-5810--chef-automate.netlify.app

@sonali523 sonali523 force-pushed the kallol/telemetry_improvements branch from 57e28c9 to 5cf6e70 Compare October 5, 2021 05:06
@kalroy kalroy changed the title Test PR - Rebase with main branch Telemetry Improvements to capture license usage Oct 11, 2021
@kalroy kalroy force-pushed the kallol/telemetry_improvements branch from e9b8c92 to a1e10d6 Compare October 12, 2021 01:24
@sonali523 sonali523 force-pushed the kallol/telemetry_improvements branch 4 times, most recently from e7765d3 to a70044d Compare October 19, 2021 05:31
@sonali523 sonali523 force-pushed the kallol/telemetry_improvements branch 4 times, most recently from de90996 to c6b2139 Compare October 26, 2021 05:46
@sonali523 sonali523 force-pushed the kallol/telemetry_improvements branch 3 times, most recently from 1742842 to 3bbc6fa Compare November 1, 2021 09:26
@sonali523 sonali523 force-pushed the kallol/telemetry_improvements branch 2 times, most recently from 1481fd0 to b53d486 Compare November 9, 2021 05:50
@kalroy kalroy marked this pull request as ready for review November 9, 2021 09:17
Copy link
Contributor

@rickmarry rickmarry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the code in this PR has been reviewed in each of the respective prs that have contributed to this feature pr.. as long as end to end testing works fine we are good to go..

* compliance stats integration

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* fix lint errors

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* change event name

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* code cleanup

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* arrange service class in alphabetical order

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>
* script added for deployment table

Signed-off-by: root <swale@msystechnologies.com>

* Updated script for deployment table

Signed-off-by: root <swale@msystechnologies.com>

* Updated up script for deployment table

Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>
* 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>
Signed-off-by: root <swale@msystechnologies.com>
)

* 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>
Signed-off-by: Rick Marry <rmarry@chef.io>
kalroy and others added 23 commits November 10, 2021 10:53
Signed-off-by: Kallol Roy <karoy@progress.com>
…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>
… 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>
* 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>

* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* fix lint errors

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* change event name

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* code cleanup

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* arrange service class in alphabetical order

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Table script to store the deployment id in automate (#5804)

* script added for deployment table

Signed-off-by: root <swale@msystechnologies.com>

* Updated 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>
* 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>
… reported date (#5980)

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>
Signed-off-by: root <swale@msystechnologies.com>
* 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>
…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>
Signed-off-by: Rick Marry <rmarry@chef.io>
…n service telemetry data is sent (#6020)

* added API for update last reported application service telemetry date

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some minor changes for comment

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* Added some minor changes for comments

Signed-off-by: root <swale@msystechnologies.com>

Co-authored-by: root <swale@msystechnologies.com>
* API added to get the node usage count in client run

Signed-off-by: root <swale@msystechnologies.com>

* comment changes added

Signed-off-by: root <swale@msystechnologies.com>

* Minor changes added for comments

Signed-off-by: root <swale@msystechnologies.com>

* Changes added to consider the date for lastTelemetryReportedAt in client run and compliance

Signed-off-by: root <swale@msystechnologies.com>
* added initial changes for the API

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some changes for the API

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added chanegs for the API url

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some changes for query

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added some code changes for the review comments

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added changes for review comments

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added query changes

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added changes for the query

Signed-off-by: Vinay Sharma <vsharma@chef.io>
* 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>

* fix mappings

* add run date info to configmgmt pipeline

Signed-off-by: Rick Marry <rmarry@chef.io>

* remove unreachable panic

Signed-off-by: Rick Marry <rmarry@chef.io>

* add tests for client run counts

Signed-off-by: Rick Marry <rmarry@chef.io>
* Added telemetry for applications

Signed-off-by: chaitali-mane <cmane@progress.com>

* updated for application stats

Signed-off-by: chaitali-mane <cmane@progress.com>
…nd client runs node usage count (#6050)

* added changes for the doc

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added doc changes for the client run

Signed-off-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…
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: root <swale@msystechnologies.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
@sonarcloud
Copy link

sonarcloud bot commented Nov 10, 2021

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

1.6% 1.6% Coverage
6.6% 6.6% Duplication

Copy link
Collaborator

@kalroy kalroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes have been reviewed earlier.

@kalroy kalroy merged commit 029baff into main Nov 10, 2021
@kalroy kalroy deleted the kallol/telemetry_improvements branch November 10, 2021 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants