Eliminate repositories, revisions and refs
https://redmine.teklia.com/issues/5720
Requires #1775 (closed)
Closes #1714 (closed) by destroying the test.
Closes #1334 (closed) by removing the attribute from the API.
-
Remove
revisionfrom theWorkerVersionSerializer. -
Remove the
CreateDockerWorkerVersionendpoint and its associated serializer. -
Remove
arkindex.process.serializers.git. -
Remove the
RepositoryAdminandRevisionAdminfromarkindex.process.admin. -
Update the export:
-
worker_version.repository_urlnow comes fromWorker.repository_url; -
worker_version.revisionnow containsWorkerVersion.revision_url; -
worker_version.revisionshould now be defined asVARCHAR(200)to match theURLField's options; - the check constraint on revision and repository URLs no longer applies.
Do not bump the export version. SQLite does not actually verify the field size, so it doesn't matter. An update to the export library is still needed for the field size, but older versions of the library will still work.
-
-
Remove
Repository,Revision,GitRefandGitRefType, along with all the foreign keys. -
Remove the truckloads of
select_relatedandprefetch_relatedon revisions, repos and refs. -
Remove the
Scope.CreateDockerWorkerVersion. -
Write a data migration that removes the
UserScopeinstances for this scope. -
Do not remove your
.gitdirectory. Not that far. -
Verify your API changes using the schema diff tool.