airbnb / knowledge-repo

A next-generation curated knowledge sharing platform for data scientists and other technical professions.
Apache License 2.0
5.48k stars 688 forks source link

Command/Flag to remove a knowledge post #364

Open analyticalmonk opened 6 years ago

analyticalmonk commented 6 years ago

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj

Currently, the only way to do that is to delete the posts from the repo directory. Correct me if I'm wrong. A command line flag (similar to update) to delete knowledge posts will come in handy.

matthewwardrop commented 6 years ago

Thanks for the feature request! This sounds like a more than reasonable feature addition. Hitherto this was not implemented to avoid the risk of people accidentally deleting others' posts... but (most of) the backends we support would allow for undoing these actions, so I think this should be fairly safe.

hicaptn commented 6 years ago

@matthewwardrop hello, is there any progress in this?

hicaptn commented 6 years ago

@analyticalmonk @matthewwardrop also, could you, please advise on the following: I've deleted post from gogs repository, but it didn't disappear from Knowledge_repo. What did I do wrong?

matthewwardrop commented 6 years ago

@hicaptn Not yet :). Patches are welcome, since the primary developers of this software are all busy with other projects; and so no timelines are promised.

If a post is removed from the master branch of a repository, it should be removed from the knowledge repo web ui once the index is updated. If that is not happening, perhaps the git repository is not actually being updated with your latest commits?