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

store compliance run info #5919

Merged
merged 3 commits into from
Oct 19, 2021

Conversation

rickmarry
Copy link
Contributor

@rickmarry rickmarry commented Oct 14, 2021

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

🔩 Description: What code changed, and why?

this pr implements the requirement described in issue: #5860
Store the run information in ES index while Compliance report ingestion

⛓️ Related Resources

#5860

👍 Definition of Done

👟 How to Build and Test the Change

in hab:
rebuild components/compliance-service/
start_all_services

Once the services are all running, run the integration tests
compliance_run_info_integration

If you would like to see what data looks like in elasticsearch, you may run chef_load to load up some node runs like so:
chef_load_compliance_scans -D1 -N2 -M2 -T4

Then issue the following curl to see the run_info that was created:
curl --request GET 'localhost:10141/comp-1-run-info/_search' | jq

which will produce similar to the following response:

{
  "took": 0,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 23,
    "max_score": 1,
    "hits": [
      {
        "_index": "comp-1-run-info",
        "_type": "_doc",
        "_id": "bb93e1b2-36d6-439e-ac70-cccccccccc08",
        "_score": 1,
        "_source": {
          "first_run": "2021-10-14T00:00:10Z",
          "last_run": "2021-10-14T00:00:10Z",
          "node_uuid": "bb93e1b2-36d6-439e-ac70-cccccccccc08"
        }
      },
      {
        "_index": "comp-1-run-info",
        "_type": "_doc",
        "_id": "7541037b-212a-4890-92ca-f6dc3e2c8469",
        "_score": 1,
        "_source": {
          "first_run": "2021-10-11T04:17:29Z",
          "last_run": "2021-10-11T04:17:29Z",
          "node_uuid": "7541037b-212a-4890-92ca-f6dc3e2c8469"
        }
      },
      {
        "_index": "comp-1-run-info",
        "_type": "_doc",
        "_id": "38f3adc2-5ea8-4836-a343-43a6232d82a0",
        "_score": 1,
        "_source": {
          "first_run": "2021-10-14T04:22:33Z",
          "last_run": "2021-10-14T04:22:33Z",
          "node_uuid": "38f3adc2-5ea8-4836-a343-43a6232d82a0"
        }
      },
    .
    .
    .

✅ 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

@rickmarry rickmarry force-pushed the rick/store_compliance_run_info branch 3 times, most recently from c47d121 to 83fb85c Compare October 14, 2021 00:31
}).
Do(ctx)

logrus.Debugf("run info updated for node: %s", update.Id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This statement may fail if update is empty. And it is not guaranteed that the Do method always returns a non-empty response. In the error case, the method will return an empty response.

Copy link
Contributor Author

@rickmarry rickmarry Oct 14, 2021

Choose a reason for hiding this comment

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

thanks.. I've taken out that update var.. I was only using it for debug before

go func() {
logrus.WithFields(logrus.Fields{"report_id": msg.Report.ReportUuid, "node_id": msg.Report.NodeUuid}).Debug("Ingesting inspec_report")
start := time.Now()
err := client.InsertComplianceRunInfo(msg.Ctx, msg.Report.ReportUuid, msg.Shared.EndTime)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can msg.Report or msg.Shared be nil?

Copy link
Contributor Author

@rickmarry rickmarry Oct 18, 2021

Choose a reason for hiding this comment

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

msg itself can but not msg.Report or msg.Shared as they're not pointers. msg being nil is unlikely as as we just create an instance of the struct and start sending it thru the pipeline

@@ -43,6 +43,27 @@ func (backend *ESClient) addDataToIndexWithID(ctx context.Context,
return err
}

// This method will support adding a document with a specified id
func (backend *ESClient) upsertComplianceRunInfo(ctx context.Context, mapping mappings.Mapping, id string, runDateTime time.Time) error {
runDateTimeAsString := runDateTime.Format(time.RFC3339)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should handle nil scenarios. Default can be the current time.

Copy link
Contributor Author

@rickmarry rickmarry Oct 18, 2021

Choose a reason for hiding this comment

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

Good catch.. currently if we were to get an inspec report that has no end_time(I've never heard of this happening btw but that doesn't mean it has not), it would become an empty string upon ingestion which in turn becomes the following date in our reports: 0001-01-01T00:00:00Z.. if it were to actually happen, it it would wind up in an es index named with that date as part of the index name.. it would never show up in a subsequent search either. In a way, this may be good as it flags and consolidates into one index, node runs that misbehave in this way

I like the idea of handling such bad data but maybe we should do so by logging/rejecting the incoming report as it's not really valid without an end_time.

This would require us to put this error handling into the report ingestion pipeline as well as in this run info ingestion. Probably big enough to warrant it's own issue/pr

Should we do this now? or get this in as is, since it matches the exact end_time handling of report summary and detail ingestion.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can add issues to handle these corner cases

Rick Marry added 3 commits October 19, 2021 08:18
Signed-off-by: Rick Marry <rmarry@chef.io>
Signed-off-by: Rick Marry <rmarry@chef.io>
Signed-off-by: Rick Marry <rmarry@chef.io>
@rickmarry rickmarry force-pushed the rick/store_compliance_run_info branch from 9b84e19 to b7823d4 Compare October 19, 2021 12:19
@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 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 1 Code Smell

0.0% 0.0% Coverage
7.1% 7.1% Duplication

@@ -43,6 +43,27 @@ func (backend *ESClient) addDataToIndexWithID(ctx context.Context,
return err
}

// This method will support adding a document with a specified id
func (backend *ESClient) upsertComplianceRunInfo(ctx context.Context, mapping mappings.Mapping, id string, runDateTime time.Time) error {
runDateTimeAsString := runDateTime.Format(time.RFC3339)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can add issues to handle these corner cases

@kalroy kalroy merged commit 7b4c052 into kallol/telemetry_improvements Oct 19, 2021
@kalroy kalroy deleted the rick/store_compliance_run_info branch October 19, 2021 12:33
sonali523 pushed a commit that referenced this pull request Oct 20, 2021
* 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>
sonali523 pushed a commit that referenced this pull request Oct 22, 2021
* 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>
sonali523 pushed a commit that referenced this pull request Oct 25, 2021
* 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>
sonali523 pushed a commit that referenced this pull request Oct 26, 2021
* 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>
kalroy added a commit that referenced this pull request Oct 26, 2021
…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>
sonali523 pushed a commit that referenced this pull request Oct 27, 2021
* 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>
sonali523 added a commit that referenced this pull request Oct 27, 2021
…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>
sonali523 pushed a commit that referenced this pull request Oct 29, 2021
* 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>
sonali523 added a commit that referenced this pull request Oct 29, 2021
…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>
sonali523 pushed a commit that referenced this pull request Nov 1, 2021
* 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>
sonali523 added a commit that referenced this pull request Nov 1, 2021
…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>
kalroy added a commit that referenced this pull request Nov 2, 2021
* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated 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…
sonali523 pushed a commit that referenced this pull request Nov 8, 2021
* 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>
sonali523 added a commit that referenced this pull request Nov 8, 2021
…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>
sonali523 added a commit that referenced this pull request Nov 8, 2021
* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated 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…
sonali523 pushed a commit that referenced this pull request Nov 9, 2021
* 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>
sonali523 added a commit that referenced this pull request Nov 9, 2021
…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>
sonali523 added a commit that referenced this pull request Nov 9, 2021
* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated 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…
sonali523 pushed a commit that referenced this pull request Nov 10, 2021
* 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>
sonali523 added a commit that referenced this pull request Nov 10, 2021
…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>
sonali523 added a commit that referenced this pull request Nov 10, 2021
* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated 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…
kalroy added a commit that referenced this pull request Nov 10, 2021
* Send ComplianceStats telemetry data on login/page refresh (#5718)

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

* store compliance run info (#5919)

* write run info to index

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

* take out unnecessary update var in upsert command for run info

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

* integration tests for run info

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

* Telemetry - compliance-stats - nodeusage count (#5932)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

* UI - compliance-stats API integration

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

* lint errors are resolved

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

* code cleanup

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

* remove debugger

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

* add environment variables

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

Co-authored-by: sonali523 <86949270+sonali523@users.noreply.github.com>
Co-authored-by: Rick Marry <rmarry@chef.io>
Co-authored-by: Kallol Roy <karoy@progress.com>

* load up 16days worth of run info for testing (#5943)

* add 16 days worth of compliance run info for testing

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

* add 16 days worth of compliance run info for testing

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

* added sql script for telemetry table in application services (#5967)

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

* script added for telemetry table in client run to store last telemtry reported date (#5980)

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

* Compliance API to report the node usage data (#5931)

* Complaince telemetry node usage API added

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

* Changes added to get the compliance node usage data based on the last telemetry sent

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

* Changes added to handle the last telemetry reported date is nil

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

* First time telemetry data sent case handled

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

* Changes added for the review comments

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

* changes added for the storeCompliance function to call it in goroutine

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

* Client run telemetry acknowledgement API added (#6007)

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

* add cfgmgmt node run info index into elasticsearch (#5985)

* add cfgmgmt node run info index into elasticsearch

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

* rename node-run-info

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

* Performance testing to capture the API response times for different number of nodes (#6011)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

* UI - compliance-stats API integration

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

* store compliance run info (#5919)

* write run info to index

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

* take out unnecessary update var in upsert command for run info

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

* integration tests for run info

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

* store compliance run info (#5919)

* write run info to index

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

* take out unnecessary update var in upsert command for run info

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

* integration tests for run info

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

* Telemetry - compliance-stats - nodeusage count (#5932)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* User settings - Timeformat

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* add comp-run-info index to elasticsearch (#5880)

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

* Storage functions for the last compliance telemetry reported date (#5896)

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

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

* compliance stats integration

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

* fix lint errors

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

* change event name

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

* code cleanup

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

* arrange service class in alphabetical order

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

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

* script added for deployment table

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

* Updated script for deployment table

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

* Updated up script for deployment table

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

* Store the unique id for every deployment in DB (#5829)

* Changes added to store deployment id in license-control-service

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

* Deployment up script updated

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

* Added storage function

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

* User settings - Timeformat

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

* resolve git conflicts

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

* gRPC service in license control service to get the deployment id (#5839)

* gRPC service added to get the deployment id

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

* Unit test cases added

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

* Minor change to run test case

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

* Updated test case

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

* Minor change ion test case

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

* Minor changes added

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

* Commented code removed

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

* minor changes added

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

* changes added to get the deployment id in telemetry config API (#5875)

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

* Table script to store the last compliance telemetry reported date (#5878)

* Script added for the telemetry table in compliance service

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

* Updated script

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

* Storage functions added for the telemetry table

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

Co-authored-by: Venkatesh-rengasamy <84014872+Venkatesh-rengasamy@users.noreply.github.com>
Co-authored-by: Venkatesh-rengasamy <vrengasa@progress.com>

* Go fmt the es index file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Go fmt the mappings file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Proto fix added in license control service to get the deployment id (#5904)

* Proto changes added

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

* Generate pb file

Signed-off-by: Kallol Roy <karoy@progress.com>

* Updated proto messages

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

Co-authored-by: Kallol Roy <karoy@progress.com>

* Compliance API to get confirmation from UI after compliance telemetry data is sent (#5918)

* Telemetry Acknowledgement API added

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

* Proto changes added

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

* minor changes added

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

* Updated API for postgres initialization in an existing stats test cases

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

* Updated postgre object to nil in existing stats test cases

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

* UI - compliance-stats API integration

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

* lint errors are resolved

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

* code cleanup

Signed-off-by: Venkatesh-rengasamy <vrengasa@progress…
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.

3 participants