Skip to content

Commit c5718f0

Browse files
authored
Merge branch 'develop' into unit_test_dash_utils
2 parents cda7317 + 46a532f commit c5718f0

File tree

18 files changed

+112
-229
lines changed

18 files changed

+112
-229
lines changed

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- Please read the contributing guidelines before submitting: https://codeforphilly.github.io/chime/CONTRIBUTING.html -->
2+
3+
<!--
4+
- If this PR affects devops or model, start your PR title with `[DevOps]` or `[Model]`
5+
- Update the user or developer documentation, if affected.
6+
-->
7+
8+
### Link to issue
9+
- Fixes #(issue number)
10+
11+
### Changelog entry
12+
- Short description of problem & solution (1-3 sentences, depending on scope of change)
13+
14+
### Additional info
15+
- Anything else reviewers and future readers should know

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py
1+
web: PARAMETERS=defaults/webapp.cfg STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py

defaults/cli.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--current-hospitalized 69
2-
--doubling-time 4.0
2+
--doubling-time 5.0
33
--hospitalized-days 7
44
--hospitalized-rate 0.025
55
--icu-days 9
66
--icu-rate 0.0075
7-
--infectious-days 14
7+
--infectious-days 10
88
--market-share 0.15
99
--n-days 100
1010
--population 3600000
1111
--recovered 0
12-
--relative-contact-rate 0.3
12+
--relative-contact-rate 0.45
1313
--ventilated-days 10
1414
--ventilated-rate 0.005

defaults/webapp.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
--current-hospitalized 69
22
--date-first-hospitalized 2020-03-07
3-
--doubling-time 4.0
3+
--doubling-time 5.0
44
--hospitalized-days 7
55
--hospitalized-rate 0.025
66
--icu-days 9
77
--icu-rate 0.0075
8-
--infectious-days 14
8+
--infectious-days 10
99
--market-share 0.15
1010
--n-days 100
1111
--population 3600000
1212
--recovered 0
13-
--relative-contact-rate 0.3
13+
--relative-contact-rate 0.45
1414
--ventilated-days 10
1515
--ventilated-rate 0.005

docs/CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ As of March 21, help is especially wanted from contributors with experience in K
2828
- Base your work on the `develop` branch.
2929
- Take a few minutes to review this [resource](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Reviewer_Checklist) for contributors and reviewers, to accelerate the adoption of your contribution (thanks to the good folks at Mozilla for this).
3030
- Submit pull requests from your fork, also against the `develop` branch of the `CodeforPhilly/chime` repo.
31+
- As part of your pull request, please ensure you provide the following information
32+
- References to the issue/PR resolved with your contribution(s) (use key word e.g. Fixes #123, #321 See #213)
33+
- Explicitly identify the scope/area the change impacts (ex: Operations/Deployment/Model/Documentation)
34+
- Describe any necessary follow on work, ideally with links to any already open issues
3135
- Request review from the relevant maintainer(s).
3236
- Check your pull request periodically to see if any changes have been requested or any merge conflicts have arisen.
3337
- If a merge conflict arises, rebase against the latest `develop` branch and force-push the new branch as early as you can. You may need to do this more than once before your changes get merged. Do your best to keep your branch in a mergeable state until it is finished being reviewed and accepted.

docs/contributing/app-dev.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See [Streamlit's Getting Started guide](https://docs.streamlit.io/getting_starte
2424
```bash
2525
pipenv shell
2626
pipenv sync --dev
27-
streamlit run src/app.py
27+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
2828
```
2929

3030
### With `conda`
@@ -33,16 +33,15 @@ streamlit run src/app.py
3333
conda env create -f environment.yml
3434
source activate chime
3535
pip install streamlit
36-
streamlit run src/app.py
36+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
3737
```
3838

3939
### Choosing a Different Port
4040

4141
If you need to run the application on a different port than the default (8000), you can export a variable in your shell session to override it with any port number of your choice before running:
4242

4343
```bash
44-
export STREAMLIT_SERVER_PORT=1234
45-
streamlit run src/app.py
44+
STREAMLIT_SERVER_PORT=1234 PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
4645
```
4746

4847
## Project Layout

docs/operations/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Operations guide to resources
22

3-
This guide will show you where nodes, and k8s clusters are stored and their heirarchy.
3+
This guide will show you where nodes, and k8s clusters are stored and their hierarchy.
44

55
## Production
66

@@ -13,4 +13,4 @@ Production k8s cluster is available on linode datacenter.
1313

1414
Pre Production k8s cluster is available on linode datacenter.
1515

16-
`chime-bus`
16+
`chime-bus`

docs/operations/prepare-new-chime-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ At the end of following this process you will have deployed a new CHIME version
3737
the review of another DevOps admin whenever possible. Ensure to link
3838
to the PR in the deployment issue previously opened on GitHub.
3939

40-
6. One approved you will need to [create a release to auto deploy](release-process.md)
40+
6. Once approved, you will need to [create a release to auto deploy](release-process.md)

e2e/cypress/integration/tests/steppers.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ context('Increment steppers', () => {
66
});
77

88
it('Increment regional population', () => {
9-
cy.contains('Hospitalized Admissions peaks at 300');
9+
cy.contains('Regional population (3600000)');
1010

1111
cy.get('input[type=number]').eq(0)
1212
.should('has.value', '3600000');
@@ -16,11 +16,11 @@ context('Increment steppers', () => {
1616
cy.get('input[type=number]').eq(0)
1717
.should('has.value', '3600001');
1818

19-
cy.contains('Hospitalized Admissions peaks at 300');
19+
cy.contains('Regional population (3600001)');
2020
});
2121

2222
it('Increment hospital market share', () => {
23-
cy.contains('Hospitalized Admissions peaks at 300');
23+
cy.contains('The estimated number of currently infected individuals is 20128.');
2424

2525
cy.get('input[type=number]').eq(1)
2626
.should('has.value', '15');
@@ -30,11 +30,11 @@ context('Increment steppers', () => {
3030
cy.get('input[type=number]').eq(1)
3131
.should('has.value', '15.1');
3232

33-
cy.contains('Hospitalized Admissions peaks at 302');
33+
cy.contains('The estimated number of currently infected individuals is 19996.');
3434
});
3535

3636
it('Increment doubling time', () => {
37-
cy.contains('Hospitalized Admissions peaks at 300');
37+
cy.contains('An initial doubling time of 4.0 days');
3838

3939
cy.get('input[type=number]').eq(3)
4040
.should('has.value', '4');
@@ -44,6 +44,6 @@ context('Increment steppers', () => {
4444
cy.get('input[type=number]').eq(3)
4545
.should('has.value', '4.25');
4646

47-
cy.contains('Hospitalized Admissions peaks at 272');
47+
cy.contains('An initial doubling time of 4.25 days');
4848
});
4949
});

k8s/app.yaml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,53 +25,21 @@ spec:
2525
app: chime
2626
spec:
2727
containers:
28-
- image: docker.pkg.github.com/codeforphilly/chime/penn-chime:1.1.2
28+
- image: docker.pkg.github.com/codeforphilly/chime/penn-chime:1.1.3
2929
name: chime
30-
env:
31-
- name: GAPI_CRED_TYPE
32-
valueFrom:
33-
secretKeyRef:
34-
name: google-api-creds
35-
key: type
36-
- name: GAPI_CRED_PROJECT_ID
37-
valueFrom:
38-
secretKeyRef:
39-
name: google-api-creds
40-
key: project_id
41-
- name: GAPI_CRED_PRIVATE_KEY_ID
42-
valueFrom:
43-
secretKeyRef:
44-
name: google-api-creds
45-
key: private_key_id
46-
- name: GAPI_CRED_PRIVATE_KEY
47-
valueFrom:
48-
secretKeyRef:
49-
name: google-api-creds
50-
key: private_key
51-
- name: GAPI_CRED_CLIENT_EMAIL
52-
valueFrom:
53-
secretKeyRef:
54-
name: google-api-creds
55-
key: client_email
56-
- name: GAPI_CRED_CLIENT_ID
57-
valueFrom:
58-
secretKeyRef:
59-
name: google-api-creds
60-
key: client_id
61-
- name: GAPI_CRED_AUTH_PROVIDER_X509_CERT_URL
62-
valueFrom:
63-
secretKeyRef:
64-
name: google-api-creds
65-
key: auth_provider_x509_cert_url
66-
- name: GAPI_CRED_CLIENT_X509_CERT_URL
67-
valueFrom:
68-
secretKeyRef:
69-
name: google-api-creds
70-
key: client_x509_cert_url
7130
ports:
7231
- containerPort: 8000
7332
name: http
7433
protocol: TCP
34+
volumeMounts:
35+
- name: google-api-creds
36+
mountPath: "/mnt/google-api-creds"
37+
readOnly: true
38+
volumes:
39+
- name: google-api-creds
40+
secret:
41+
secretName: google-api-creds-json
42+
7543

7644
imagePullSecrets:
7745
- name: regcred

0 commit comments

Comments
 (0)