Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/WC-115: Archive DRP files/metadata after publication #1044

Open
wants to merge 1 commit into
base: task/digital-rocks
Choose a base branch
from

Conversation

jarosenb
Copy link
Collaborator

@jarosenb jarosenb commented Jan 27, 2025

Overview

  • Add utilities for archiving project metadata and the full ZIP archive (including the metadata JSON file).
  • Call archive utilities from the pipeline so that new publications are automatically archived

Related

Testing

In the Django shell in local dev:

from portal.apps.projects.workspace_operations.project_publish_operations import archive_publication_files
archive_publication_files('CEPV3-DEV-1291')

The ZIP file archive/CEPV3-DEV-1291_archive.zip should now exist in the publication system with these characteristics:

Archive:  /corral-repl/utexas/pge-nsf/data_pprd/published/archive/CEPV3-DEV-1291_archive.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
       17  01-27-2025 16:07   archive/CEPV3-DEV-1291_metadata.json
        0  11-05-2024 12:57   CEPV3-DEV-1291/
        0  11-05-2024 12:57   CEPV3-DEV-1291/Test Sample 1/
  1048576  11-05-2024 12:57   CEPV3-DEV-1291/Test Sample 1/test_raw.raw
---------                     -------
  1048593                     4 files

(I'm deleting the file before submitting the PR in case someone wants to test for themselves)

@jarosenb jarosenb changed the title Task/WC-15: Utils for archiving DRP publications Task/WC-115: Utils for archiving DRP publications Jan 27, 2025
@jarosenb jarosenb changed the title Task/WC-115: Utils for archiving DRP publications Task/WC-115: Archive DRP files/metadata after publication Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant