GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
582 stars 91 forks source link

Where should ckanext-ga-report commands live? #1142

Open adborden opened 4 years ago

adborden commented 4 years ago

This needs to live somewhere, probably the catalog Runbook, but if so it should also be turned into a script and added to datagov-deploy.

I found this in https://docs.google.com/document/d/1w__Mm3XpL_HeCOaZVKQyRFjgpMCfW1IdzLiZzzQL-5I/edit

Here is a list of current commands:
paster loadanalytics latest --config=/etc/ckan/production.ini
This loads the latest GA data of current month
paster loadanalytics year {2017} --config=/etc/ckan/production.ini
This loads GA data from current year
However, the token_dat used by GA usually expires before the whole year is downloaded
paster loadanalytics year-step {2017} --config=/etc/ckan/production.ini
This loads GA data for the year, month by month, but before each month, a command prompt asks you if you want to download data for that month or skip
paster loadanalytics {2017-05} --config=/etc/ckan/production.ini
Downloads GA data for specific month of year
paster loadanalytics year-month {2017} {5} --config=/etc/ckan/production.ini
Downloads GA data starting at that month of year to end of year
adborden commented 4 years ago

@FuhuXia do you know what these commands do? When would we need to run them?

FuhuXia commented 4 years ago

This loadanalytics command comes with ckanext-googleanalytics. I don't remember we ever run it before.