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

fix: ci-cd count per day in telemetry data #4931

Merged
merged 26 commits into from
Apr 22, 2024
Merged

fix: ci-cd count per day in telemetry data #4931

merged 26 commits into from
Apr 22, 2024

Conversation

komalreddy3
Copy link
Contributor

Description

Fixes #4886

Added fields to TelemetryEventDto

  1. ciTriggeredPerDay ( count of ci pipelines triggered in last 24hrs)
  2. cdTriggeredPerDay ( count of cd pipelines triggered in last 24hrs)
  3. ciDeletedPerDay ( count of ci pipelines deleted in last 24hrs)
  4. cdDeletedPerDay ( count of cd pipelines deleted in last 24hrs)
  5. Rename ciCountPerDay to ciCreatedPerDay ( count of ci pipelines created in last 24hrs)
  6. Rename cdCountPerDay to cdCreatedPerDay ( count of cd pipelines created in last 24hrs)

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


Ash-exp
Ash-exp previously approved these changes Apr 15, 2024
Copy link
Contributor

@Ash-exp Ash-exp left a comment

Choose a reason for hiding this comment

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

LGTM

Ash-exp
Ash-exp previously approved these changes Apr 16, 2024
Copy link

gitguardian bot commented Apr 22, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10220829 Triggered Generic High Entropy Secret f849e06 charts/devtron/devtron-bom.yaml View secret
10220829 Triggered Generic High Entropy Secret f849e06 charts/devtron/values.yaml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@komalreddy3 komalreddy3 merged commit d0f6c3c into main Apr 22, 2024
4 checks passed
@komalreddy3 komalreddy3 deleted the fix-ci-cd-count branch April 22, 2024 11:12
komalreddy3 added a commit that referenced this pull request May 28, 2024
* fix: ci-cd count

* update queries

* update queries to go-pg instead of raw

* remove omit empty

* summarycron expr change

* refactor

* type fix

* remove comments

* refactor query

* typo

* docker query

* refactor

* fetching to retrieving

* remove unnecessary column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR:Ready-to-Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: CI/CD count per day is not correct in telemetry data
3 participants