"""Constants.""" CLEANUP_PATTERN = '[^\u0009\u000a\u000d\u0020-\uD7FF\uE000-\uFFFD]' VALID_DATE_FORMAT = r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$' OWS_PRODUCT_SERVICE_NAME = 'ows-product' OWS_PRODUCT_ENDPOINT = '/product/{}' OWS_PRODUCT_DOCUMENT_ENDPOINT = '/product/{}/document' OWS_PROJECT_SERVICE_NAME = 'ows-project-manager' OWS_PROJECT_DOCUMENT_ENDPOINT = '/project/{}/document' OWS_TRACK_SERVICE_NAME = 'ows-track' OWS_TRACK_ENDPOINT = '/track/{}?exclude=localizations' OWS_TRACK_PRODUCT_ENDPOINT = '/product/{}/tracks?exclude=localizations' OWS_ACCOUNT_SERVICE_NAME = 'ows-account' OWS_SUBACCOUNT_DOCUMENT_ENDPOINT = '/subaccount/{}/document' OWS_VENDOR_DOCUMENT_ENDPOINT = '/vendor/{}/document' OWS_USERS_SERVICE_NAME = 'ows-users' OWS_USERS_DOCUMENT_ENDPOINT = '/users/document?{}={}' OWS_ARTIST_SERVICE_NAME = 'ows-artist' OWS_ARTIST_DOCUMENT_ENDPOINT = '/artist/{}/document' OWS_PROJECT_ERROR = 'Failed to get information from ows-project-manager' OWS_PRODUCT_ERROR = 'Failed to get information from ows-product' OWS_TRACK_ERROR = 'Failed to get information from ows-track' OWS_ACCOUNT_ERROR = 'Failed to get {} information from ows-account' OWS_USERS_ERROR = 'Failed to get information for {} from ows-users' OWS_ARTIST_ERROR = 'Failed to get information from ows-artist' INVALID_DATE_ERROR = 'Date format is invalid' SERVICE_URL = 'https://{environment}-{service_name}.theorchard.io{path}' # release_id which should be excluded from cloudsearch upload # PRODUCT_EXCLUSION_LIST = [4673663,4674979] # PROJECT_EXCLUSION_LIST = [5622998] PRODUCT_EXCLUSION_LIST = [] PROJECT_EXCLUSION_LIST = [] STATUS_TRANSFER_TO_CONTENT = 'transfer_to_content' STATUS_IN_CONTENT = 'in_content'