Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Adjust Value interface in RootStore by adding QuantityValue type to it#218

Merged
guergana merged 1 commit intomasterfrom
QuantityValueInterface
Mar 12, 2021
Merged

Adjust Value interface in RootStore by adding QuantityValue type to it#218
guergana merged 1 commit intomasterfrom
QuantityValueInterface

Conversation

@guergana
Copy link
Contributor

No description provided.

@guergana guergana force-pushed the QuantityValueInterface branch 2 times, most recently from ca436be to 2cdd12b Compare March 11, 2021 08:55
@guergana guergana force-pushed the QuantityValueInterface branch from 2cdd12b to a2ca220 Compare March 11, 2021 10:02
Copy link
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

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

Almost there! What is missing is the ability for this type to represent a value without unit, e.g. a population 10000.

export interface QuantityValue {
value: number;
precision?: number;
unit: ItemValue;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The unit should either be also optional or it should be nullable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adressed

@guergana guergana force-pushed the QuantityValueInterface branch from a2ca220 to bf2527c Compare March 12, 2021 08:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@guergana guergana requested a review from micgro42 March 12, 2021 08:40
Copy link
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

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

Looks good, thank you :)

@guergana guergana merged commit 3d0383e into master Mar 12, 2021
@guergana guergana deleted the QuantityValueInterface branch March 12, 2021 09:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants