Skip to content

Commit a4b93a1

Browse files
committed
Merge remote-tracking branch 'origin/dev' into sgratzl/center-of-excellence
2 parents ebd8f0b + cadfb11 commit a4b93a1

File tree

33 files changed

+1349
-41
lines changed

33 files changed

+1349
-41
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,22 @@ jobs:
6161
echo "::set-output name=tag::$imageTag"
6262
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
6363
- name: Push Dev Tag
64-
if: startsWith(github.ref, 'refs/heads/dev')
6564
run: |
6665
docker tag repo ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6766
docker push ${{ steps.tagname.outputs.repo }}:${{ steps.tagname.outputs.tag }}
6867
- name: Extract version
6968
if: startsWith(github.ref, 'refs/heads/main')
7069
id: extract_version
7170
run: node -pe "'::set-output name=version::' + require('./package.json').version"
72-
- name: Push Version Tag Tag
73-
if: startsWith(github.ref, 'refs/heads/main')
74-
run: |
75-
docker tag repo ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
76-
docker push ${{ steps.tagname.outputs.repo }}:v{{ steps.extract_version.outputs.version }}
7771
- name: Trigger Webhook
7872
run: |
7973
# trigger a webhook update
8074
curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
8175
-X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
8276
-H "Content-Type: application/x-www-form-urlencoded" \
8377
-d "repository=${{ steps.tagname.outputs.repo }}&tag=${{ steps.tagname.outputs.tag }}"
78+
- name: Push Version Tag Tag
79+
if: startsWith(github.ref, 'refs/heads/main')
80+
run: |
81+
docker tag repo ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}
82+
docker push ${{ steps.tagname.outputs.repo }}:v${{ steps.extract_version.outputs.version }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
.DS_Store
1414
*.zip
1515
*.tgz
16+
.Rhistory
17+
*.log

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/cmu-delphi/www-main)
44

55

6-
Delphi's homepage at https://cmu-delphi-main.netlify.app/
6+
The current stable `main` version is deployed at https://delphi.cmu.edu and https://cmu-delphi-main.netlify.app/.
7+
8+
The next `dev` version is deployed at https://staging.delphi.cmu.edu/ and https://dev--cmu-delphi-main.netlify.app/.
79

810
This site is based on [Hugo](https://gohugo.io) and uses [Prettier](https://prettier.io) for formatting.
911

@@ -84,7 +86,7 @@ In order to convert the Rmd files to HTML files for Hugo you also need to:
8486
- `local=TRUE` similar to `-D` to process draft files
8587
- `run_hugo=FALSE` to manually run hugo
8688
- `build_rmd=TRUE` force a (re)build of the Rmd pages
87-
1. Run blogdown to convert a single file to HTML: `Rscript -e 'blogdown::build_site(local=TRUE, run_hugo=FALSE, build_rmd="content/blog/<NAME>.Rmd")'`
89+
1. Run blogdown to convert a single file to HTML: `Rscript -e 'blogdown::build_site(local=TRUE, run_hugo=FALSE, build_rmd="content/blog/<NAME>.Rmd")'` where `<NAME>` should be replaced by the name of the Rmd file.
8890
1. Alternatively, run `npm run build:blog`
8991
1. Run Hugo server as usual
9092

@@ -101,12 +103,16 @@ This simplifies the deployment and ensures that we have a blog post even when th
101103

102104
### Release Process
103105

104-
The release process is based on [release-it](https://github.com/release-it/release-it). To create a release, run
105-
106-
1. create/checkout the release branch `release` and push to origin
107-
1. run `npm run release` and publish the release
108-
1. create a PR that merges the `release` branch in the `main` branch
109-
1. create a PR that merges the `main` branch back into the `dev` branch
110-
111-
Then go to the release page and update short description of the changes made.
106+
The release consists of multiple steps which can be all done via the GitHub website:
107+
108+
1. Go to [create_release GitHub Action](https://github.com/cmu-delphi/www-main/actions/workflows/create_release.yml) and click the `Run workflow` button. Enter the next version number or one of the magic keywords (patch, minor, major) and hit the green `Run workflow` button.
109+
1. The action will prepare a new release and will end up with a new [Pull Request](https://github.com/cmu-delphi/www-main/pulls)
110+
1. Let the code owner review the PR and its changes and let the CI check whether everything builds successfully
111+
1. Once approved and merged, another GitHub action job starts which automatically will
112+
1. create a git tag
113+
1. create another [Pull Request](https://github.com/cmu-delphi/www-main/pulls) to merge the changes back to the `dev` branch
114+
1. create a [GitHub release](https://github.com/cmu-delphi/www-main/releases) with automatically derived release notes
115+
1. create docker image and the production system will be notified to pull this update
116+
1. Once the jobs are completed the new release should be available at https://delphi.cmu.edu within minutes.
117+
1. Done
112118

config.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ relativeURLs = false
6161
name = "Explore an Indicator"
6262
url = "/covidcast/indicator"
6363
weight = 3
64+
[[menu.main]]
65+
parent = "covidcast"
66+
name = "Explore Correlations"
67+
url = "/covidcast/correlation"
68+
weight = 4
6469
[[menu.main]]
6570
parent = "covidcast"
6671
name = "Classic Map"
6772
url = "/covidcast/classic"
68-
weight = 4
73+
weight = 30
6974
[[menu.main]]
7075
parent = "covidcast"
7176
name = "Forecast Evaluation"
@@ -91,6 +96,11 @@ relativeURLs = false
9196
name = "Export Data"
9297
url = "/covidcast/export"
9398
weight = 70
99+
[[menu.main]]
100+
parent = "covidcast"
101+
name = "Data Anomalies"
102+
url = "/covidcast/data-anomalies"
103+
weight = 71
94104
[[menu.main]]
95105
parent = "covidcast"
96106
name = "Release Log"
@@ -137,4 +147,4 @@ relativeURLs = false
137147
feedbackDelayMin = 45 # in sec
138148
feedbackDelayMax = 180 # in sec
139149
feedbackDuration = 60 # show it for 60sec
140-
highlightLinks = "/covidcast/,/covidcast/summary,/covidcast/indicator,/signals-dashboard/,/forecast-eval/"
150+
highlightLinks = "/covidcast/correlation,/covidcast/data-anomalies"
97.6 KB
Loading

content/about/publications/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
---
22
title: Research and White Papers
33
papers:
4+
- title: "Causal inference in the time of COVID-19"
5+
image: causal.jpg
6+
authors: Bonvini, Kennedy, Ventura, Wasserman
7+
link: https://arxiv.org/abs/2103.04472
8+
journal: ArXiv preprint
9+
year: 2021
410
- title: "Pancasting: forecasting epidemics from provisional data"
511
image: pancasting.jpg
612
authors: Brooks

content/blog/2020-08-28-api.Rmd

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -285,21 +285,20 @@ can change for _weeks_ as new data arrives:
285285
```{r q-versioning, warning=FALSE, message=FALSE, cache=TRUE}
286286
library(covidcast)
287287
library(dplyr)
288-
# DISABLED for now since the API is not ready
289288
query_date <- "2020-08-01"
290-
# covidcast_signal(
291-
# data_source = "quidel",
292-
# signal = "covid_ag_raw_pct_positive",
293-
# start_day = query_date,
294-
# end_day = query_date,
295-
# geo_type = "state",
296-
# geo_value = "ny",
297-
# issues = c(query_date, "2020-09-04")) %>%
298-
# select(time_value, value, sample_size, issue, lag) %>%
299-
# distinct(value, .keep_all=TRUE) %>%
300-
# knitr::kable("html", digits = 2,
301-
# col.names = c("Test date", "Positivity rate (%)", "Sample size",
302-
# "Issued on", "Lag (days)"))
289+
covidcast_signal(
290+
data_source = "quidel",
291+
signal = "covid_ag_raw_pct_positive",
292+
start_day = query_date,
293+
end_day = query_date,
294+
geo_type = "state",
295+
geo_value = "ny",
296+
issues = c(query_date, "2020-09-04")) %>%
297+
select(time_value, value, sample_size, issue, lag) %>%
298+
distinct(value, .keep_all=TRUE) %>%
299+
knitr::kable("html", digits = 2,
300+
col.names = c("Test date", "Positivity rate (%)", "Sample size",
301+
"Issued on", "Lag (days)"))
303302
```
304303

305304
Many data sources are subject to revisions:

0 commit comments

Comments
 (0)