[#DEV-1502] Team uploads directory fix

Main changes:

  1. All new uploads for team wikis will already go to static-igem-wiki/teams/{TEAM_ID} instead of static-igem-wiki/teams/{TEAM_SLUG}
  2. Introduces two competition-based migration endpoints (both are processed in job queue):
    1. Copy all assets in static-igem-wiki bucket to their correspondent team ID directory
    2. Updates all repositories that contain references to static.igem.org/teams/{TEAM_SLUG} to now have static.igem.org/teams/{TEAM_ID} and commits those changes.
      1. This is only done for main branch, all other branches are not affected.
      2. Both wikis and software tool repositories are included in the search.

TODOs before release/running migrations:

  1. Turn on S3 transfer acceleration for static-igem-wiki
  2. Notify affected teams (visible in WikisJobType.MIGRATE_ASSETS job returnvalue ) about the changes. While main branch 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

Merge request reports

Loading