mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 08:36:00 +03:00
[GH-ISSUE #65] feature request: not have "never expire" as default #47
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kamaradski on GitHub (Jul 26, 2024).
Original GitHub issue: https://github.com/matze/wastebin/issues/65
Originally assigned to: @matze on GitHub.
It would be useful for us to not have "never expire" as default selection for new pasts
Usecase:
I have deployed wastebin internally in a small company for people to share information among each other that does not fit inside a chat, or do not belong in a chat, where syntax need to be preserved, or in case one doesnt want to clutter documentation with raw text.
So i see people using it to:
How do people use it:
And thus you can see they forget to select an appropriate expiration resulting in:
Potential solution 1:
allow the sysadmin to set which is the default pre-selected expiration
Con: this might lead to users pre-maturly losing their content
Pro: Previous con leads to user-education on how to correctly use the tool
Pro: this retains the quick flow of creating a paste, where the user can opt not to click on a expiration option
Potential solution 2:
not set a preselected expiration at all, and not accept sumbission of the paste until the use has done so
Con: this breaks the quick create workflow by introducing 1 additional click
Con: a bit of extra effort in coding the feature since the UX flow need to be changed including writing proper error messages
Pro: user-education without pissing users off for accidentally prematurly losing their content (potential solution 1), or pissing the sysadmins off by cluttering the system with items that exist longer then required.
Personally i like option 2 the most even if it's a bit more effort, however i cannot judge the usecases of other people.
@matze commented on GitHub (Aug 1, 2024):
Thanks for the request! I see where you are coming from, I guess opting into solution 2 would be a good compromise.
@xlionjuan commented on GitHub (Nov 3, 2024):
If
WASTEBIN_MAX_PASTE_EXPIRATIONis set, the default expiry will be 600 seconds, it is too short for most times, if not set, it will default to never, and it is unrealistic, maybe made a env that can change this default setting?@SamKr commented on GitHub (Nov 5, 2024):
+1, would love to have a default env setting, separate from max paste expiration
@matze commented on GitHub (Nov 8, 2024):
Makes sense + setting the default to whatever was chosen as the maximum expiration in case the default is not set.
@matze commented on GitHub (Feb 25, 2025):
See my comment here: https://github.com/matze/wastebin/issues/54#issuecomment-2682571682.