-
Notifications
You must be signed in to change notification settings - Fork 753
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
show storage on the about page #3191
Conversation
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.
It would be more appropriate to check the Postgres database size rather than the local disk usage, as some people may run the application and database on separate machines.
Thanks for getting back to me @fguillot. I'll try to take a crack at it later tonight after work. My plan is to use the current postgres database, or use the database specified by the database_url, and use pg_database_size(name) to display only the usage. In the future, a new ENV could be introduced MAX_DATABASE_SIZE which could be used to set limits on the amount of articles saved. |
@fguillot, Alright, I've got it updated so it's now displaying the DBSize on the about page. Do I need to create translations for all the languages? |
@fguillot You speak French right? Would you mind adding the French translation please? |
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.
There's going to be a bit of shuffling here since things weren't alphabetized.
feat: This PR adds database usage information to the about page.
It is written to address #3190
Have you followed these guidelines?