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

refactored metrics 2 #549

Merged
merged 2 commits into from
Jul 2, 2024
Merged

refactored metrics 2 #549

merged 2 commits into from
Jul 2, 2024

Conversation

munishchouhan
Copy link
Member

In the last PR, there were some mismatches in comments and changes in files,
so creating new PR for that
This PR will do the following:

  1. delete unwanted files
  2. correct names

Signed-off-by: munishchouhan <[email protected]>
@munishchouhan munishchouhan self-assigned this Jul 2, 2024
@munishchouhan munishchouhan mentioned this pull request Jul 2, 2024
@munishchouhan munishchouhan requested a review from pditommaso July 2, 2024 13:51
response.count += entry.value
//split is used to extract the org name from the key like "metrics/o/seqera.io" => seqera.io
response.orgs.put(entry.key.split("/$MetricConstants.PREFIX_ORG/").last(), entry.value)
response.orgs.put(entry.key.split("/$MetricsConstants.PREFIX_ORG/").last(), entry.value)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Using a import static MetricsConstants.* would improve the readability of this

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Signed-off-by: munishchouhan <[email protected]>
@pditommaso pditommaso merged commit 5e0d32a into master Jul 2, 2024
4 checks passed
@pditommaso pditommaso deleted the refactor-matrics2 branch July 2, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants