-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(web): storage config model #1718
Conversation
Pull Request Test Coverage Report for Build 11781455992Details
💛 - Coveralls |
73ad8b3
to
7d8c781
Compare
e52283e
to
2734ec7
Compare
2734ec7
to
6d68744
Compare
6d68744
to
00e3b01
Compare
private bytes(value: config.SizeValueWithCurrent): number | undefined { | ||
if (checks.isSizeCurrent(value)) return; | ||
// TODO: bytes from string. | ||
if (checks.isSizeString(value)) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this omission recorded somewhere? Sounds like something we should implement very soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there is a follow-up item in the trello card.
00e3b01
to
26f5fe7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The UI components should be agnostic to the structure and complexity of the storage config.
Add a Config model to deal with the storage config. The model generates objects (e.g.,
Drive
,Partition
, etc) from the config data. This makes easier for the UI components to read and modify the config data.