You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2019. It is now read-only.
This is possibly doable; we just need to figure out the best way to do it. One possible solution is to:
Add a new column to the publishedProjects table that indicates the current status of a project viz. published or unpublished
When we publish a project for the first time, it creates a new publishedProjects entry (as it already does) and marks it as published, creates the corresponding publishedFiles (as it already does), and uploads to S3 (as it already does)
If you unpublish that project, first, it is taken down from S3 (as it already does), then the corresponding publishedFiles records should be deleted (as it already does), and finally, the corresponding publishedProjects entry in the db should be marked as unpublished.
if you delete the project, it can delete the publishedProjects entry
if you republish the project, it will just flip the published flag, copy the files into publishedFiles (as it already does), and upload to S3 (as it already does).
We want the published id to be the same for a specific project, regardless of how many cycles of publish/unpublish it undergoes.
Discussion started here: https://github.com/mozilla/thimble.webmaker.org/issues/1280
This is possibly doable; we just need to figure out the best way to do it. One possible solution is to:
publishedProjectstable that indicates the current status of a project viz.publishedorunpublishedpublishedProjectsentry (as it already does) and marks it aspublished, creates the correspondingpublishedFiles(as it already does), and uploads to S3 (as it already does)publishedFilesrecords should be deleted (as it already does), and finally, the correspondingpublishedProjectsentry in the db should be marked asunpublished.publishedProjectsentrypublishedflag, copy the files intopublishedFiles(as it already does), and upload to S3 (as it already does).