Implement Page Deletion Based on 'ToBeDeleted' Label#412
Implement Page Deletion Based on 'ToBeDeleted' Label#412Miker91 wants to merge 1 commit intokovetskiy:masterfrom
Conversation
|
How would this workflow look like? Is there a way you would add the label automatically? Couple of thoughts on how it is right now:
|
|
Sometimes people want to get rid of the confluence page managed by Mark. |
|
I see, I personally think mark should publish what is inside a given repository (I think synchronizing will be hard). We could think of providing the option of a deletion-file. This could be a simple CSV file with the space and title of a page), that mark would use to delete old pages. With the current implementation, if there's a page in your repository with that label, that means on every run of mark it would create the page just to delete it later again? |
|
Would a simple If something like that sounds sensible and aligned with what |
|
So absent of a path forward in
So far have been running said script with no issues with state drift/discrepancy for several months now. We accomplished this in ~150 lines of python. A large portion of that was essentially imitating the hierarchy that mark builds - probably if it was embedded within |
|
@c-p-b , I like the idea of a Something like this might be my number one request for this repo. |
This PR introduces a new feature that allows for automatic deletion of pages based on the presence of a 'ToBeDeleted' label.
Changes include:
How to Test:
Any suggestions, improvements are more than welcome since I have 0 experience with GO.