-
Notifications
You must be signed in to change notification settings - Fork 710
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
Set default value for storage limit slider #11191
Set default value for storage limit slider #11191
Conversation
Build Artifacts
|
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.
Hi @nikkuAg and @MisRob, this is working mostly correctly now, however in my Ubuntu VM I am seeing the value in GB as 60.800000000000004 which is then displayed as 60GB if I save the changes and refresh the page. I think this value should be always rounded and in this case it should be rounded to 60.8 GB
2023-09-05_16-42-54.mp4
I will look into it |
@pcenov I have solved the bug |
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.
Thank you @nikkuAg I confirm that this is fixed now!
@@ -560,7 +560,7 @@ | |||
}, | |||
created() { | |||
this.setDeviceURLs(); | |||
this.setFreeSpace(); | |||
if (this.freeSpace === 0) this.setFreeSpace(); |
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.
I can imagine a situation where the freeSpace value is actually 0 - i.e. when there is no free space on the device. Perhaps it would be better if this were initialized as null
rather than 0
to be able to do a check on whether it has been set or not (would have to make sure anywhere it was being used was being guarded against the non-numeric value).
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.
I have updated the changes
@nikkuAg can you try to run |
@MisRob |
@nikkuAg Is your virtual environment activate? Could you reinstall Python packages? If that doesn't help, I would ask you for all logs that you can send us. |
@nikkuAg Ah now I've remembered that after |
@MisRob Thank you for the help, it is working now. |
Summary
I've implemented a functionality that sets the
limitForAutodownload
to 80% of the availablefreeSpace
if the checkbox is not selected; otherwise, it retrieves the value from the API.device-settings-google-chrome-2023-09-05-00-00-56_OOUXovPp.mp4
…
References
#11176
…
Reviewer guidance
…
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)