Story #7487
Updated by bmbouter over 4 years ago
## Background Users should not change the `ALLOWED_CONTENT_CHECKSUMS` if they already have content in their DB. ## Idea Let's add a check at Pulp start time that causes them to not do that ## Implementation As [suggested by @daviddavis](https://github.com/pulp/pulpcore/pull/894#discussion_r485909161), at At the bottom of the pulpcore.app.settings, add another check that: 1) Pick a random Artifact from the db 2) Check that performs a select like SELECT * FROM artifacts WHERE a IS NULL or b IS NULL ... all the checksums present in ALLOWED_CONTENT_CHECKSUMS are set and if only those are set. If not, the user is changing this returns any artifacts, raise an variable post-content-being-saved and should be instructed via ImproperlyConfigured error. that they should set it to: {name the set of set attributes} on the tested Artifact. ## Testing Since we can't change settings during functional test runs, we cannot reasonably test for this.