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

Import Gallery data from old production site #637

Open
5 tasks done
ramereth opened this issue Jan 24, 2018 · 3 comments
Open
5 tasks done

Import Gallery data from old production site #637

ramereth opened this issue Jan 24, 2018 · 3 comments
Assignees
Labels

Comments

@ramereth
Copy link
Member

ramereth commented Jan 24, 2018

We need to work on importing data from the old production site for the gallery feature to be fully complete. To do that, we need to do the following:

  • Create Drupal views on the old site which export the data we need (partially complete: http://drupal.streamwebs.org/admin/build/views/edit/gallery_csv)
  • Add CSV new files to csvs directory
  • Add files to pull to data_scripts/pull-files.sh using wget
  • Create a data_scripts/get_gallery_images.py (and similar scripts for the other file types) which imports the files into the data model. You can look at data_scripts/get_site_images.py as an example of how this is done
  • Add the python scripts to the end of data_scripts/get_all.sh after ./get_site_images.py

CSV Exports

The CSV exports are split into two types of Drupal Views:

  1. metadata view
  2. URL to gallery file

There are also currently two types of exports, one for images and another for files. Specifically, you can use the following urls for the data:

@CarvellWakeman
Copy link
Contributor

Code for his is basically done, Brennan and I are going to do more testing on it locally and then on dev before I call this one done.

@hertelc hertelc added this to the Production 1.0.0 Release milestone Feb 19, 2018
@hertelc
Copy link
Collaborator

hertelc commented May 16, 2018

I can see the Gallery items, but the files don't appear to be there for download or viewing? @ramereth

http://drupal.streamwebs.org/node/2686/gallery
https://streamwebs-staging.osuosl.org/sites/wenaha-river/

@jerry-peng
Copy link
Contributor

@ramereth Can you help me export gallery journal entries/videos?
Model for Journal Entries: "Title", "Journal Entry Field", "Post Date", "Nid", "Uid", "Site Name"
Model for videos: "Title", "Description", "Post Date", "Nid", "Uid", "Site Name", "Filename", "Gallery Video" (Link to drupal site)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants