Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

industry dora scores enums #498

Merged
merged 1 commit into from
Aug 6, 2024
Merged

industry dora scores enums #498

merged 1 commit into from
Aug 6, 2024

Conversation

adnanhashmi09
Copy link
Contributor

Proposed changes (including videos or screenshots)

Added an enum for industry standard scores for Dora Metrics. We will later use this in the UI to display different standard scores based on the industry.

Further comments

@adnanhashmi09 adnanhashmi09 merged commit 637aca3 into main Aug 6, 2024
1 check passed
@adnanhashmi09 adnanhashmi09 deleted the dora-score-contants branch August 6, 2024 14:51
@@ -6,6 +6,23 @@ import {
} from 'date-fns/constants';
import { isNil, mean, reject } from 'ramda';

export enum IndustryStandardsDoraScores {
Copy link
Contributor

Choose a reason for hiding this comment

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

there should be an enum of all values like:

export enum Industries = {
ALL_INDUSTRIES = "ALL_INDUSTRIES"
...
}

and then a map like

IndustryStandardsDoraScores = {
[Industries.ALL_INDUSTRIES] : 6.3,
...
}

that way we can easily iterate over this entire set

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea.
Addressed this in #499

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants