-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conditionally abort on conflicting article paths? #446
Comments
Yep, this makes sense. Including for 3.1 release. |
Check that template-generated files don't override each other. Log a critical message otherwise, and exit with non-zero status. Also improve slug warnings: uniqueness is also checked for translations.
Check that template-generated files don't override each other. Log a critical message otherwise, and exit with non-zero status.
I've started working on that: #848. Two different things implemented:
It needs more testing, in particular to know the impact on performances. |
@justinmayer gave me a setting with 1419 posts to measure performances. Before: I can conclude that it does not have bad impact on performances. |
Right now it seems that if I accidentally define the same slug, one of the articles arbitrarily wins and may (depending on my ARTICLE_* settings) overwrite some other article. Ideally I would like the ability to see an error in that case as a safety check to avoid accidentally blowing away content when I publish.
Currently there's a warning for overlapping slugs in utils.process_translations, but I would like the ability for an error and non-zero exit status when overwriting other content to handle aborting in an automated publish script more easily.
The text was updated successfully, but these errors were encountered: