[ENG-8038] fewer blobs in database #876
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
mainly:
RawDatummodeltrove.digestive_tract/trove/ingestview now callsdigestive_tract.ingest(which extracts and saves the given record) instead ofdigestive_tract.swallow(which would save the request body asRawDatumfor later extraction)task__extract_and_deriveremoved (extraction should now be synchronous)addexpiration_dateto baseResourceDescriptionreplacesRawDatum.expiration_dateadd data migration to copy expiration dates fromRawDatumtoSupplementaryResourceDescription(
expiration_dateis used by osf only for supplements)SourceUniqueIdentifier.get_date_first_seenArchivedResourceDescription.createdinstead ofRawDatum.date_createdCeleryTaskResults get deleted eventually (but keep them longer than successes)CELERY_RESULT_EXPIRES, used for successes, now set from environment variable (with previous hard-coding as default)FAILED_CELERY_RESULT_EXPIRESnew environment variable, for all non-success statuses, default 11 days (different prefix because it's not used by celery directly)also, along the way:
share.example/api/v2/root -- fix rss/atom feed link generationshare.example/api/v2/sourceconfigs/SHARE_ADMIN_USERNAME, default"admin"SHARE_ADMIN_PASSWORD, no default except whenDEBUGshare.exceptionsIndexcardRdf(and kids) toResourceDescription, to better convey intent (got confused multiple times by my own bad naming) by parallelling existingResourceIdentifiertrove.models.indexcardtotrove.models.resource_descriptionArchivedIndexcardRdf=>ArchivedResourceDescriptionLatestIndexcardRdf=>LatestResourceDescriptionSupplementaryIndexcardRdf=>SupplementaryResourceDescriptionindexcard_rdf=>resource_descriptionindexcardrdf=>resourcedescriptionlatest_rdf=>latest_resource_descriptionlatestrdf=>latestresourcedescriptionupdate_rdf=>update_resource_descriptionupdate_supplementary_rdf=>update_supplementary_descriptionshare.models.ingestandtrove.models.indexcard)DerivedIndexcardtotrove.models.derived_indexcard(fromtrove.models.indexcard)Indexcardthe only model introve.models.indexcard, appropriatelySourcetoshare.models.sourceandSourceConfigtoshare.models.source_config(fromshare.models.ingest)ENG-8038