GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
15 stars 7 forks source link

♻️ Move static files in `apps/web/src/assets/documents` to blob storage #10341

Open mnigh opened 1 month ago

mnigh commented 1 month ago

♻️ Refactor

These files are all pdf, docx, or pptx and are not actually rendered as part of the application and slows down builds.

🕵️ Details

Currently add up to ~15MB worth of files.

🙋‍♀️ Proposed Solution

  1. Move all the files in apps/web/src/assets/documents to blob storage in Azure and update the links accordingly
  2. Delete dir and files in apps/web/src/assets/documents

Custom subdomain to point to Azure hosted static files? Consider that we may move other things to this storage solution in the future, like tc-report.

✅ Acceptance Criteria

A set of assumptions which, when tested, verify that the debt was addressed and expected functionality has not been affected.

petertgiles commented 1 month ago

Possible duplicate: #9492

mnigh commented 1 month ago

Possible duplicate: #9492

Similar in that we would need static hosting set up to do both of these issues, but this issue is specific to the files in apps/web/src/assets/documents where as #9492 is for the two PDF files in tc-report/assets.

petertgiles commented 1 month ago

AZ-20282 submitted in Jira

brindasasi commented 1 week ago

@gobyrne could you bump this ticket?