Skip to content

Release Delphi Epidata 0.2.0 #634

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

Merged
merged 52 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1db286c
feat: start with google doc parser
sgratzl May 27, 2021
6544b75
feat: generate CSV meta data and use it for /covidcast/meta
sgratzl May 27, 2021
fdbde8e
test: fix for new meta data structure
sgratzl May 27, 2021
d5a82ea
feat: support default values and allow meta filter flags
sgratzl May 28, 2021
7dca07f
feat: update meta data
sgratzl May 28, 2021
46caba9
feat: support db alias
sgratzl May 28, 2021
83b4e17
fix: typo
sgratzl May 28, 2021
326d6fd
fix: resolve alias:* signals to only the subset one
sgratzl Jun 7, 2021
8f34ae1
Merge remote-tracking branch 'origin/dev' into sgratzl/covidcast_meta…
sgratzl Jun 10, 2021
afc1aff
feat: adapt to latest sheets
sgratzl Jun 10, 2021
be62bf1
refactor: add more type annotations
sgratzl Jun 10, 2021
9129db1
Merge remote-tracking branch 'origin/dev' into sgratzl/covidcast_meta…
sgratzl Jun 11, 2021
67286d1
fix: publish dua field
sgratzl Jun 11, 2021
faa3e42
feat: adapt to latest sheets
sgratzl Jun 14, 2021
4a56614
fix: back to "source" name
sgratzl Jun 14, 2021
883ab24
feat(covidcast names): adapt to latest CSV changes
sgratzl Jun 15, 2021
bd32cc9
Merge remote-tracking branch 'origin/dev' into sgratzl/covidcast_meta…
sgratzl Jun 15, 2021
93b389d
chore: update meta file
sgratzl Jun 17, 2021
4975fb0
Merge remote-tracking branch 'origin/dev' into sgratzl/covidcast_meta…
sgratzl Jun 23, 2021
c73327b
feat: update to current google sheets
sgratzl Jun 23, 2021
886cd7e
feat: support text replacements
sgratzl Jun 23, 2021
1efd87f
feat: add active filter
sgratzl Jun 23, 2021
e619162
feat: start with google doc parser
sgratzl May 27, 2021
e2a19c1
feat: generate CSV meta data and use it for /covidcast/meta
sgratzl May 27, 2021
d4d5d7d
test: fix for new meta data structure
sgratzl May 27, 2021
6441c81
feat: support default values and allow meta filter flags
sgratzl May 28, 2021
f6724fe
feat: update meta data
sgratzl May 28, 2021
f060177
feat: support db alias
sgratzl May 28, 2021
cca22db
fix: publish dua field
sgratzl Jun 11, 2021
f69fbfb
feat: adapt to latest sheets
sgratzl Jun 14, 2021
bb694ae
fix: back to "source" name
sgratzl Jun 14, 2021
5063856
feat(covidcast names): adapt to latest CSV changes
sgratzl Jun 15, 2021
137913c
chore: update meta file
sgratzl Jun 17, 2021
c8df415
fix: typo
sgratzl May 28, 2021
6e80e65
feat: update to current google sheets
sgratzl Jun 23, 2021
e43e002
fix: resolve alias:* signals to only the subset one
sgratzl Jun 7, 2021
fe1c29c
feat: support text replacements
sgratzl Jun 23, 2021
5c5428d
feat: adapt to latest sheets
sgratzl Jun 10, 2021
4f39018
feat: add active filter
sgratzl Jun 23, 2021
0031ee2
refactor: add more type annotations
sgratzl Jun 10, 2021
f84c9ce
Merge branch 'sgratzl/covidcast_meta_file' of github.com:cmu-delphi/d…
sgratzl Jun 25, 2021
a5d8dd2
feat: update sheets and adapt
sgratzl Jun 25, 2021
867c98e
Merge pull request #628 from cmu-delphi/bot/sync-main-dev
krivard Jul 12, 2021
09e0be3
build(deps): bump addressable from 2.7.0 to 2.8.0 in /docs
dependabot[bot] Jul 12, 2021
9dc29ba
Merge remote-tracking branch 'origin/dev' into sgratzl/covidcast_meta…
sgratzl Jul 13, 2021
3e59b6d
feat: update docs
sgratzl Jul 13, 2021
be502e8
Merge pull request #631 from cmu-delphi/bot/sync-main-dev
krivard Jul 13, 2021
16f8104
Revert "refactor: add more type annotations"
sgratzl Jul 13, 2021
21917fe
Merge branch 'sgratzl/covidcast_meta_file' of github.com:cmu-delphi/d…
sgratzl Jul 13, 2021
690bf95
Merge pull request #564 from cmu-delphi/sgratzl/covidcast_meta_file
sgratzl Jul 13, 2021
ffd2d17
Merge pull request #629 from cmu-delphi/dependabot/bundler/docs/addre…
krivard Jul 13, 2021
3a061c5
chore: release delphi-epidata 0.2.0
krivard Jul 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.4
current_version = 0.2.0
commit = False
tag = False

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
docker stop delphi_database_epidata delphi_web_epidata
docker network remove delphi-net

build_js_clients:
build_js_client:
runs-on: ubuntu-latest
defaults:
run:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/update_gdocs_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update Google Docs Meta Data
on:
workflow_dispatch:
jobs:
update_gdocs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
branch: dev
ssh-key: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_SSH }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pipd-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pipd-
- name: Install Dependencies
run: pip install -r requirements-dev.txt
- name: Update Docs
run: inv update-gdoc
- name: Create pull request into dev
uses: peter-evans/create-pull-request@v3
with:
branch: bot/update-docs
commit-message: 'chore: update docs'
title: Update Google Docs Meta Data
labels: chore
reviewers: krivard
assignees: krivard
body: |
Updating Google Docs Meta Data
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.7.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
Expand Down
13 changes: 10 additions & 3 deletions integrations/server/test_covidcast_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def test_meta(self):
"""Request a signal the /meta endpoint."""

num_rows = 10
rows = [CovidcastRow(time_value=20200401 + i, value=i) for i in range(num_rows)]
rows = [CovidcastRow(time_value=20200401 + i, value=i, source="fb-survey", signal="smoothed_cli") for i in range(num_rows)]
self._insert_rows(rows)
first = rows[0]
last = rows[-1]
Expand All @@ -349,7 +349,10 @@ def test_meta(self):
with self.subTest("plain"):
out = self._fetch("/meta")
self.assertEqual(len(out), 1)
stats = out[0]
data_source = out[0]
self.assertEqual(data_source["source"], first.source)
self.assertEqual(len(data_source["signals"]), 1)
stats = data_source["signals"][0]
self.assertEqual(stats["source"], first.source)
self.assertEqual(stats["signal"], first.signal)
self.assertEqual(stats["min_time"], first.time_value)
Expand All @@ -364,7 +367,11 @@ def test_meta(self):
with self.subTest("filtered"):
out = self._fetch("/meta", signal=f"{first.source}:*")
self.assertEqual(len(out), 1)
self.assertEqual(out[0]["source"], first.source)
data_source = out[0]
self.assertEqual(data_source["source"], first.source)
self.assertEqual(len(data_source["signals"]), 1)
stats = data_source["signals"][0]
self.assertEqual(stats["source"], first.source)
out = self._fetch("/meta", signal=f"{first.source}:X")
self.assertEqual(len(out), 0)

Expand Down
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mypy>=0.790
pytest
tenacity==7.0.0
bump2version
requests
2 changes: 1 addition & 1 deletion src/client/delphi_epidata.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Epidata <- (function() {
# API base url
BASE_URL <- 'https://delphi.cmu.edu/epidata/api.php'

client_version <- '0.1.4'
client_version <- '0.2.0'

# Helper function to cast values and/or ranges to strings
.listitem <- function(value) {
Expand Down
2 changes: 1 addition & 1 deletion src/client/delphi_epidata.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
})(this, function (exports, fetchImpl, jQuery) {
const BASE_URL = "https://delphi.cmu.edu/epidata/";
const client_version = "0.1.4";
const client_version = "0.2.0";

// Helper function to cast values and/or ranges to strings
function _listitem(value) {
Expand Down
2 changes: 1 addition & 1 deletion src/client/packaging/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "delphi_epidata",
"description": "Delphi Epidata API Client",
"authors": "Delphi Group",
"version": "0.1.4",
"version": "0.2.0",
"license": "MIT",
"homepage": "https://github.com/cmu-delphi/delphi-epidata",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/client/packaging/pypi/delphi_epidata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .delphi_epidata import Epidata

name = 'delphi_epidata'
__version__ = '0.1.4'
__version__ = '0.2.0'
2 changes: 1 addition & 1 deletion src/client/packaging/pypi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="delphi_epidata",
version="0.1.4",
version="0.2.0",
author="David Farrow",
author_email="[email protected]",
description="A programmatic interface to Delphi's Epidata API.",
Expand Down
2 changes: 1 addition & 1 deletion src/server/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

load_dotenv()

VERSION = "0.1.4"
VERSION = "0.2.0"

MAX_RESULTS = int(10e6)
MAX_COMPATIBILITY_RESULTS = int(3650)
Expand Down
Loading