Skip to content

Add ingest feature flag

https://redmine.teklia.com/issues/8009

A new ingest feature flag, under the features section of the YAML configuration, should be added. It is disabled by default.

When this feature flag is disabled:

  • The ListBuckets and CreateS3Import endpoints should both fail with an HTTP 400 error. No further validation or processing should occur in this case. It is probably most easily done by overriding check_permissions on both endpoints.
  • The ProcessBuilder should also raise a ValidationError, to ensure that starting or retrying an existing S3 import also fails, not just creating a new one.
  • The system checks for the various INGEST_* settings, as well as WorkerVersion.objects.ingest_version, should not return any error or warning.