Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Addition: "Autogenerated" Label Validation #85

Open
pmarchini opened this issue May 26, 2023 · 1 comment
Open

Feature Addition: "Autogenerated" Label Validation #85

pmarchini opened this issue May 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pmarchini
Copy link

Hey there,

In the process of using md2cf, I've implemented an additional feature that could be beneficial to the wider community.

Below is a summary of the new feature:

Autogenerated Label Validation: I've introduced a new flag --check-autogenerated-label which, when activated, checks for a 'marker' label on the Confluence pages.
This marker indicates if the page was autogenerated.
The name of the marker label can be provided via --autogenerated-flag-label.
If a page that's going to be updated doesn't have this label, the script will prompt the user and ask whether they wish to proceed with the update.

This feature aims to prevent accidental overwriting of manually created pages when mass updating pages via the script. I've developed an initial implementation to satisfy my immediate requirements, but I'm willing to develop a cleaner, more robust version if this feature is deemed useful for the project.

I would be delighted to hear your thoughts on this proposed enhancement.

@iamjackg
Copy link
Owner

Oh, that's interesting! I don't love the idea of prompting the user, since I built md2cf with automated pipelines in mind. This could perhaps be better implemented as a flag that makes the script stop when it encounters a page missing the tag?

@iamjackg iamjackg added the enhancement New feature or request label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants