mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #59] List of existing pastes #45
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#45
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 @potokslow on GitHub (Jun 22, 2024).
Original GitHub issue: https://github.com/matze/wastebin/issues/59
Originally assigned to: @matze on GitHub.
Hi,
Is there a way to have all existing pastes listed on the home page, or have a separate page with such list?
This would be very helpful for managing the pastes.
Thank you
@matze commented on GitHub (Jun 22, 2024):
I guess a REST call is not enough?
@potokslow commented on GitHub (Jun 23, 2024):
I think that having pastes listed on a web page would be easier to use than API.
REST call could work in the absence of a web list, but please include an example of such call in the readme.
I have no idea how to request the list...
@matze commented on GitHub (Jun 23, 2024):
Okay, I have some PoC but I am not sure how this is really that useful. At the end of the day it's just a list of links. Is it really all you need?
@potokslow commented on GitHub (Jun 23, 2024):
The main points behind this idea are to:
A chronological list of pastes would be sufficient for this.
Ideally, it would be great to have a table with:
Thank you
@matze commented on GitHub (Jun 23, 2024):
Unfortunately, creation date is not stored (anymore). Title would be possible but depending on the size of the database, I am not sure we are coming into denial-of-service area. In fact, I am already a bit worried dumping the entire list each time. On the other hand, I am also a bit too lazy to implement pagination now. So this is what I could offer:
@PinguDEV-original commented on GitHub (Jul 26, 2024):
Or maybe just use sqlite
SELECT * FROM entries;? You can also remove stuff this way (DELETE FROM entries WHERE id = ID)@kamaradski commented on GitHub (Jul 26, 2024):
I actually think it's a feature that none of the visitors is able to see what other people posted, unless you have the exact link. If anything i would argue to make the random link longer and thus harder to guess.
Unless obviously you also want to go through the rabbit hole of creating a public-flag not unlike pastebin
EDIT:
Actually thinking about this more i might have a good idea.
Since the usecase is "managing the pastes", i can assume it will be the sysadmin who will use this feature. Since I personally do not think this project need a user management (for all the fancy stuff there are already alternative platforms you can use), but instead remain to be slick, slim, and fast. So creating an admin feature is probably out of scope.
This basically leaves cli-tools to solve this problem
Pro:
Con:
I personally like this idea for it's (probably) low efforts to implement, and this can probably recycle a lot of existing functions/code.
@joser93 commented on GitHub (Aug 8, 2024):
+1 this idea, besides, can be related with #54 to keep trace of the usage for the server and force the expiration specific files.
@jichef commented on GitHub (Nov 8, 2024):
It would be a great idea. In my case I make a paste from a server and on other I wouldn't need to write the complete link to access what I pasted. It would be much easier.
@matze commented on GitHub (Nov 8, 2024):
Thanks for the suggestion (and sorry for the late reply). I like the idea as well but I think we should flesh out a reasonable design in a separate issue.
@matze commented on GitHub (Nov 9, 2024):
I mean outlining what the tool(s) should be capable of doing, what the UI
should look like etc. should not be discussed here but in a separate GitHub
issue.
jichef @.***> schrieb am Fr., 8. Nov. 2024, 23:54: