-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
🚧 [Hosts] Backup Settings #37778
base: main
Are you sure you want to change the base?
🚧 [Hosts] Backup Settings #37778
Conversation
I suggest as we have the on/of checkbox for cleanup to set the number boxes to min=1. |
The idea is that user can configure retention by:
In case both are set to 0 the warning is displayed and no backups are deleted. Do you think this makes sense? |
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.
some ui nits
These all feels to complicated. I think keep it simple is the way to go. And simple for me is:
|
I started with this idea, but #37666 (comment) made me change it.
But I am happy to have a feedback on this. |
Okay. But then lets allow the following logic: Remove backups older x days (x = setting >= 1) and hard coded keep always 1 backup. The if-else-else solution is to complicated. We can add a description to cleanup checkbox that at least one backup is always kept regardless of its age. |
I need to think about this: the idea around the PR is to remove any hardcoded/hidden logic related to backups. |
The point that we have multiple ways of doing it which influence each other. And that you can configure it to not clean up even that zhe clean up is enabled. |
@htcfreek any thoughts on this UX?
|
@davidegiacometti With zero as date or time all backups will be deleted on the |
The backups cleanup is always executed on editor startup. These options are used to determine for how many days backups are kept or/and how many fixed backups are kept. |
Yes. What I mean is: It makes a difference with 0 days if I start Hosts multiple times per day or not. And for me keeping 0 days means deleting at the day of creating and not keeping indefinitely. That is confusing. |
I think the drop downs are limiting.. 🤔 |
Hey @htcfreek Can I have a feedback on these mocks? ![]() ![]() ![]() Let me know if you think this solution is clear. If your answer is positive I am going to reopen this PR and tweak the implementation. |
Two suggestions:
Can't follow you. There are only these two number boxes in the screenshots. Are there any screenshots missing? And I still see see the problem that 0 means nothing. So we should explain the meaning of 0 in the number box description. |
Ok for the suggestions. Please see the update screenshot. |
Sory. My mistake. Was confused after all the solutions we discussed. |
Yes. It is clear. Let's implement that solution. |
Thanks for the feedback.. And I like this solution! |
<value>Days</value> | ||
</data> | ||
<data name="Hosts_Backup_CountBased_CountInput.Header" xml:space="preserve"> | ||
<value>Backups count</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.
Isn't the correct grammar "Backup count"?
<data name="Hosts_Backup_AgeCountBased_CountInput.Header" xml:space="preserve"> | ||
<value>Backups count</value> | ||
</data> |
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.
Duplicate. Do we really need this twice?
<data name="Hosts_Backup_CountBased_CountInput.Description" xml:space="preserve"> | ||
<value>Set the number of backups to retain, deleting older ones once the limit is reached</value> | ||
</data> | ||
<data name="Hosts_Backup_AgeCountBased_DaysInput.Description" xml:space="preserve"> | ||
<value>Set the number of days to retain backups, deleting older ones once the limit is reached</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.
Can we have two independent sentences instead of using a comma? Would be easier to understand.
For me "keep" sounds better than "retain".
Summary of the Pull Request
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed