haste-server icon indicating copy to clipboard operation
haste-server copied to clipboard

Delete Hastes

Open ACH1980 opened this issue 4 years ago • 4 comments

Is there a way we could delete hastes on our own haste-Instance? I think they must be stored somewhere, could we delete them on the filesystem and they would disappear online too? If yes, where to find them?

To be precise: I've actually the problem that I uploaded a haste and accidentally didn't removed all sensitive data, so I asked the admin of the instance to remove it but they can't find it.

Dear Matthias H.

ACH1980 avatar Nov 12 '20 09:11 ACH1980

Hi, I'm tackling this issue right now but I'd like to discuss about the sorting thing.

When generating the new CODEOWNERS file after sorting, should we keep the comments?

Comments right now are being treated as part of the "syntax" because of the "grouping" feature. I'm afraid it may be hard to keep comments and still order by the owner.

My idea was to simply start a new codeowners file from scratch and just "group" with the name of the owner, like such

# Owned by @owner_a
file_b @owner_a
file_c @owner_a

# Owned by @owner_b
file_a @owner_b

Any suggestions on how to do this in a simple way?

bamorim avatar Jun 03 '20 17:06 bamorim

Also, how should we handle patterns with multiple owners?

The only reasonably solution is to treat a collection of owners as a "unique owner" when grouping

Something like

# Owned by @owner_a and @owner_b
file_d @owner_a @owner_b

# Owned by @owner_a
file_b @owner_a
file_c @owner_a

# Owned by @owner_b
file_a @owner_b

But we still need to think how to sort them.

bamorim avatar Jun 03 '20 17:06 bamorim

Another question: should we check for consistency on this command as well? Or just rewrite the file?

bamorim avatar Jun 03 '20 18:06 bamorim