[#DEV-1502] Team uploads directory fix
Main changes:
- All new uploads for team wikis will already go to
static-igem-wiki/teams/{TEAM_ID}instead ofstatic-igem-wiki/teams/{TEAM_SLUG} - Introduces two competition-based migration endpoints (both are processed in job queue):
- Copy all assets in
static-igem-wikibucket to their correspondent team ID directory - Updates all repositories that contain references to
static.igem.org/teams/{TEAM_SLUG}to now havestatic.igem.org/teams/{TEAM_ID}and commits those changes.- This is only done for
mainbranch, all other branches are not affected. - Both wikis and software tool repositories are included in the search.
- This is only done for
- Copy all assets in
TODOs before release/running migrations:
- Turn on S3 transfer acceleration for
static-igem-wiki - Notify affected teams (visible in
WikisJobType.MIGRATE_ASSETSjobreturnvalue) about the changes. Whilemainbranch will be updated, their other branches and local changes will not. This can cause merge conflicts and confusion, therefore should be notified with explanation and next steps. Content should be prepared before the release and sent out right after the migration.
Edited by Kamile Liucija Vainiute