Skip to content

Release Delphi Epidata 4.1.6 #1234

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 15 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 = 4.1.5
current_version = 4.1.6
commit = False
tag = False

Expand Down
2 changes: 1 addition & 1 deletion dev/local/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = Delphi Development
version = 4.1.5
version = 4.1.6

[options]
packages =
Expand Down
2 changes: 1 addition & 1 deletion requirements.api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python-dotenv==0.15.0
pyyaml
redis==3.5.3
requests==2.31.0
scipy==1.6.2
scipy==1.10.0
SQLAlchemy==1.4.40
structlog==22.1.0
tenacity==7.0.0
Expand Down
16 changes: 12 additions & 4 deletions src/acquisition/covidcast/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
import unittest

import pandas as pd
from redis import Redis

from delphi_utils import Nans
from delphi.epidata.common.covidcast_row import CovidcastRow
from delphi.epidata.acquisition.covidcast.database import Database
from delphi.epidata.server._config import REDIS_HOST, REDIS_PASSWORD
from delphi.epidata.server.utils.dates import day_to_time_value, time_value_to_day
import delphi.operations.secrets as secrets

# all the Nans we use here are just one value, so this is a shortcut to it:
nmv = Nans.NOT_MISSING.value

# TODO replace these real geo_values with fake values, and use patch and mock to mock the return values of
# TODO replace these real geo_values with fake values, and use patch and mock to mock the return values of
# delphi_utils.geomap.GeoMapper().get_geo_values(geo_type) in parse_geo_sets() of _params.py

FIPS = ['04019', '19143', '29063', '36083'] # Example list of valid FIPS codes as strings
Expand Down Expand Up @@ -166,19 +168,25 @@ def setUp(self):
self.localSetUp()
self._db._connection.commit()

# clear all rate-limiting info from redis
r = Redis(host=REDIS_HOST, password=REDIS_PASSWORD)
for k in r.keys("LIMITER/*"):
r.delete(k)


def tearDown(self):
# close and destroy conenction to the database
self.localTearDown()
self._db.disconnect(False)
del self._db

def localSetUp(self):
# stub; override in subclasses to perform custom setup.
# stub; override in subclasses to perform custom setup.
# runs after tables have been truncated but before database changes have been committed
pass

def localTearDown(self):
# stub; override in subclasses to perform custom teardown.
# stub; override in subclasses to perform custom teardown.
# runs after database changes have been committed
pass

Expand All @@ -198,4 +206,4 @@ def params_from_row(self, row: CovidcastTestRow, **kwargs):
'geo_value': row.geo_value,
}
ret.update(kwargs)
return ret
return ret
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 <- getOption('epidata.url', default = 'https://api.delphi.cmu.edu/epidata/')

client_version <- '4.1.5'
client_version <- '4.1.6'

auth <- getOption("epidata.auth", default = NA)

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://api.delphi.cmu.edu/epidata/";
const client_version = "4.1.5";
const client_version = "4.1.6";

// Helper function to cast values and/or ranges to strings
function _listitem(value) {
Expand Down
Loading