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

fix: use asset manifest for sync op #1976

Merged
merged 1 commit into from
Jun 29, 2021
Merged

fix: use asset manifest for sync op #1976

merged 1 commit into from
Jun 29, 2021

Conversation

nilslice
Copy link
Contributor

@nilslice nilslice commented Jun 29, 2021

After #1970, the vec of assets used in the sync operation no longer included the assets that were already uploaded. this diff of assets was re-used to determine remote assets to delete, which would in turn remove files that should have remained in kv.

This was manually tested by publishing a wrangler site, deleting an asset, and adding a new asset, republishing and confirming the assets were in KV (or removed) and served as expected.

The variable pairs was renamed to diff_files_to_upload for clarity, and the asset manifest is now used to represent the source of truth for comparison in the sync steps.

@nilslice nilslice requested a review from a team as a code owner June 29, 2021 00:27
Copy link
Contributor

@nataliescottdavidson nataliescottdavidson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad for failing to catch on the last change. Yup, asset manifest is source of truth for remote- even if we don't re-upload stuff to KV, manifest must include all assets

@nilslice nilslice merged commit 3985598 into master Jun 29, 2021
@delete-merged-branch delete-merged-branch bot deleted the sm/fix-files branch June 29, 2021 14:59
@nilslice nilslice mentioned this pull request Jun 29, 2021
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.

2 participants