Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Fixed some issues with updating projects. #6857

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

barankyle
Copy link
Member

@barankyle barankyle commented Aug 31, 2022

Summary

Added a cache invalidation call to ProjectService.uploadProject. If new files are being fetched, whether
from the deployment branch or as a reset from the main branch, all existing files caches are potentially
invalid and should be cleared.

Updated project download in downloadProjects.ts and githubapp-helper.ts to use storageProvider.getObject
instead of .getCachedObject. This prevents project rebuilding from inadvertently using an old cached
version of project files.

References

closes #insert number here

Checklist

  • If this PR is still a WIP, convert to a draft
  • ensure all checks pass
  • When this PR is ready, mark it as "Ready for review"
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewer

QA Steps

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

Added a cache invalidation call to ProjectService.uploadProject. If new files are being fetched, whether
from the deployment branch or as a reset from the main branch, all existing files caches are potentially
invalid and should be cleared.

Updated project download in downloadProjects.ts and githubapp-helper.ts to use storageProvider.getObject
instead of .getCachedObject. This prevents project rebuilding from inadvertently using an old cached
version of project files.
@barankyle barankyle requested review from HexaField and speigg and removed request for HexaField August 31, 2022 23:37
@barankyle barankyle merged commit 29eb782 into dev Sep 1, 2022
@barankyle barankyle deleted the project-reset-invalidate-cache branch September 1, 2022 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant