Skip to content

Commit 5da6d3f

Browse files
authored
Merge pull request #1119 from cmu-delphi/release/delphi-epidata-0.4.8
Release Delphi Epidata 0.4.8
2 parents a5e25d4 + 6b2923c commit 5da6d3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+184
-519
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.4.7
2+
current_version = 0.4.8
33
commit = False
44
tag = False
55

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ jobs:
5757
docker build -t delphi_web_epidata -f ./devops/Dockerfile .
5858
cd ../../../
5959
60+
# MODULE_NAME specifies the location of the `app` variable, the actual WSGI application object to run.
61+
# see https://github.com/tiangolo/meinheld-gunicorn-docker#module_name
6062
- name: Start services
6163
run: |
6264
docker network create --driver bridge delphi-net
6365
docker run --rm -d -p 13306:3306 --network delphi-net --name delphi_database_epidata --cap-add=sys_nice delphi_database_epidata
64-
docker run --rm -d -p 10080:80 --env "SQLALCHEMY_DATABASE_URI=mysql+mysqldb://user:pass@delphi_database_epidata:3306/epidata" --env "FLASK_SECRET=abc" --env "FLASK_PREFIX=/epidata" --network delphi-net --name delphi_web_epidata delphi_web_epidata
66+
docker run --rm -d -p 10080:80 --env "MODULE_NAME=delphi.epidata.server.main" --env "SQLALCHEMY_DATABASE_URI=mysql+mysqldb://user:pass@delphi_database_epidata:3306/epidata" --env "FLASK_SECRET=abc" --env "FLASK_PREFIX=/epidata" --network delphi-net --name delphi_web_epidata delphi_web_epidata
6567
docker ps
6668
6769
- run: |

.github/workflows/performance-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
cd delphi-admin/load-testing/locust
7373
docker build -t locust .
74-
export CSV=v4-requests-small.csv
74+
export CSV=v4-requests-as_of.csv
7575
touch output_stats.csv && chmod 666 output_stats.csv
7676
touch output_stats_history.csv && chmod 666 output_stats_history.csv
7777
touch output_failures.csv && chmod 666 output_failures.csv

deploy.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
"add-header-comment": true
1818
},
1919

20+
"// common",
21+
{
22+
"type": "move",
23+
"src": "src/common/",
24+
"dst": "[[package]]/common/",
25+
"match": "^.*\\.(py)$",
26+
"add-header-comment": true
27+
},
28+
2029
"// server",
2130
{
2231
"type": "move",
@@ -47,15 +56,6 @@
4756
"add-header-comment": true
4857
},
4958

50-
"// acquisition - common",
51-
{
52-
"type": "move",
53-
"src": "src/acquisition/common/",
54-
"dst": "[[package]]/acquisition/common/",
55-
"match": "^.*\\.(py)$",
56-
"add-header-comment": true
57-
},
58-
5959
"// acquisition - fluview",
6060
{
6161
"type": "move",

dev/local/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ web:
9191
cd -
9292

9393
@# Run the web server
94+
@# MODULE_NAME specifies the location of the `app` variable, the actual WSGI application object to run.
95+
@# see https://github.com/tiangolo/meinheld-gunicorn-docker#module_name
9496
@docker run --rm -p 127.0.0.1:10080:80 \
9597
$(M1) \
98+
--env "MODULE_NAME=delphi.epidata.server.main" \
9699
--env "SQLALCHEMY_DATABASE_URI=$(sqlalchemy_uri)" \
97100
--env "FLASK_SECRET=abc" --env "FLASK_PREFIX=/epidata" --env "LOG_DEBUG" \
98101
--network delphi-net --name delphi_web_epidata \

dev/local/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = Delphi Development
3-
version = 0.4.7
3+
version = 0.4.8
44

55
[options]
66
packages =

devops/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ LABEL org.opencontainers.image.source=https://github.com/cmu-delphi/delphi-epida
88

99
COPY ./devops/gunicorn_conf.py /app
1010
COPY ./devops/start_wrapper.sh /
11-
COPY ./src/server/ /app/app/
12-
COPY --from=builder ./src/build/lib/ /app/app/lib/
11+
RUN mkdir -p /app/delphi/epidata
12+
COPY ./src/server /app/delphi/epidata/server
13+
COPY ./src/common /app/delphi/epidata/common
14+
COPY --from=builder ./src/build/lib/ /app/delphi/epidata/lib/
1315

1416
COPY requirements.api.txt /app/requirements_also.txt
1517

1618
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime \
17-
&& rm -rf /app/app/__pycache__ /app/app/*.php \
18-
&& chmod -R o+r /app/app \
19+
&& rm -rf /app/delphi/epidata/__pycache__ \
20+
&& chmod -R o+r /app/delphi/epidata \
1921
&& chmod 755 /start_wrapper.sh \
2022
&& pip install --no-cache-dir -r /tmp/requirements.txt -r requirements_also.txt
2123
# the file /tmp/requirements.txt is created in the parent docker definition. (see:

docs/Gemfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (5.2.5)
4+
activesupport (6.0.6.1)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
9+
zeitwerk (~> 2.2, >= 2.2.2)
910
addressable (2.8.0)
1011
public_suffix (>= 2.0.2, < 5.0)
1112
coffee-script (2.4.1)
@@ -15,7 +16,7 @@ GEM
1516
colorator (1.1.0)
1617
commonmarker (0.17.13)
1718
ruby-enum (~> 0.5)
18-
concurrent-ruby (1.1.8)
19+
concurrent-ruby (1.2.0)
1920
dnsruby (1.61.5)
2021
simpleidn (~> 0.1)
2122
em-websocket (0.5.2)
@@ -209,7 +210,7 @@ GEM
209210
jekyll (>= 3.5, < 5.0)
210211
jekyll-feed (~> 0.9)
211212
jekyll-seo-tag (~> 2.1)
212-
minitest (5.14.4)
213+
minitest (5.17.0)
213214
multipart-post (2.1.1)
214215
nokogiri (1.13.10)
215216
mini_portile2 (~> 2.8.0)
@@ -255,6 +256,7 @@ GEM
255256
unf_ext (0.0.7.7)
256257
unicode-display_width (1.7.0)
257258
wdm (0.1.1)
259+
zeitwerk (2.6.6)
258260

259261
PLATFORMS
260262
ruby

docs/symptom-survey/publications.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ Pandemic"](https://www.pnas.org/topic/548) in *PNAS*:
2626

2727
Research publications using the survey data include:
2828

29+
- Taube JC, Susswein Z, Bansal S (2023). [Spatiotemporal Trends in Self-Reported
30+
Mask-Wearing Behavior in the United States: Analysis of a Large
31+
Cross-sectional Survey](https://doi.org/10.2196/42128). *JMIR Public Health
32+
and Surveillance* 9:e42128.
2933
- Rebecca L. Weintraub et al (2023). [Identifying COVID-19 Vaccine Deserts and
3034
Ways to Reduce Them: A Digital Tool to Support Public Health
3135
Decision-Making](https://doi.org/10.2105/AJPH.2022.307198). *American Journal
32-
of Public Health*.
36+
of Public Health* 113 (4), 363-367.
3337
- Anzalone AJ, Sun J, Vinson AJ, Beasley WH, Hillegass WB, Murray K, et al.
3438
(2023). [Community risks for SARS-CoV-2 infection among fully vaccinated US
3539
adults by rurality: A retrospective cohort study from the National COVID
@@ -38,7 +42,7 @@ Research publications using the survey data include:
3842
- Rufino, J., Baquero, C., Frey, D. et al (2023). [Using survey data to estimate
3943
the impact of the omicron variant on vaccine efficacy against COVID-19
4044
infection](https://doi.org/10.1038/s41598-023-27951-3). *Scientific Reports*
41-
13, 900 (2023).
45+
13, 900.
4246
- Rader, B., Astley, C.M., Sewalk, K. et al (2022). [Spatial modeling of vaccine
4347
deserts as barriers to controlling
4448
SARS-CoV-2](https://doi.org/10.1038/s43856-022-00183-8). *Communications
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
geo_id,value,stderr,sample_size,issue,time_value,geo_type,signal,source
2-
d_nonlatest,0,0,0,1,0,county,sig,src
3-
d_latest, 0,0,0,3,0,county,sig,src
4-
d_justone, 0,0,0,1,0,county,sig,src
2+
d_nonlatest,0,0,0,1,0,msa,sig,src
3+
d_latest, 0,0,0,3,0,msa,sig,src
4+
d_justone, 0,0,0,1,0,msa,sig,src

0 commit comments

Comments
 (0)