Skip to content

Merge staging into main #165

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 536 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
536 commits
Select commit Hold shift + click to select a range
31a4f4c
Fixed infinite scroll
dmytrotsko Feb 26, 2024
b102f50
Fixed 'Sources' url
dmytrotsko Feb 26, 2024
ceb40fa
Merge pull request #78 from cmu-delphi/OKRS24-72-Add-signals-sorting-…
dmytrotsko Feb 27, 2024
7141f6f
Merge pull request #79 from cmu-delphi/fix_infinite_scroll
dmytrotsko Feb 27, 2024
9e76ec9
🛠️ admin.py -> Added DescriptedFilter and DescriptedFilterField class…
BrainIsDead Feb 29, 2024
df4f7d0
Merge pull request #80 from cmu-delphi/OKRS24-72-Add-signals-sorting-…
dmytrotsko Mar 4, 2024
f3f251d
Add gunicorn package
korlaxxalrok Mar 6, 2024
217c649
Merge pull request #82 from cmu-delphi/add-gunicorn-package
dmytrotsko Mar 6, 2024
fccd86f
TEST Build from this branch
korlaxxalrok Mar 7, 2024
ea6f80b
TEST - Build from this branch
korlaxxalrok Mar 7, 2024
d6a8e47
Updates to docker-compose.yaml and README.md to enabled CI and webhoo…
korlaxxalrok Mar 7, 2024
25ecae5
Slightly better comment
korlaxxalrok Mar 7, 2024
38bd04a
TEST - Don't build from this branch
korlaxxalrok Mar 7, 2024
fc0ab5e
OKRS24-92 Converted 'Active' filter to checkbox
dmytrotsko Mar 12, 2024
8ecfb67
🛠️ signals/filters.py -> Added NumberInFilter and id field to SignalF…
BrainIsDead Mar 14, 2024
0fec997
🛠️ signals.html -> Added JavaScript to submit form on dropdown change
BrainIsDead Mar 14, 2024
e4015d2
🛠️ style.css -> Added hover effect for clickable table cell
BrainIsDead Mar 14, 2024
b6aa998
Merge pull request #83 from cmu-delphi/OKRS24-92
BrainIsDead Mar 14, 2024
030d0f9
Merge pull request #84 from cmu-delphi/fix-ci-and-webhook
BrainIsDead Mar 14, 2024
6b1aaff
OKRS24-100 Converted 'pathogen' filter from dropdown to checkboxes
dmytrotsko Mar 14, 2024
8861f14
OKRS24-100 Added new fields to signal card
dmytrotsko Mar 14, 2024
caf7927
Merge pull request #85 from cmu-delphi/OKRS24-93-Add-a-checkbox-next-…
BrainIsDead Mar 15, 2024
9ba09c8
🛠️ forms.py -> Updated pathogen, format_type, source, and time_label …
BrainIsDead Mar 15, 2024
b0e4f1b
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead Mar 15, 2024
60cecd4
🛠️ style.css -> Added hover color for bulk-select links
BrainIsDead Mar 15, 2024
acf3a3e
🛠️ signals/filters.py -> Added TimeLabelChoices to Signal model filter
BrainIsDead Mar 15, 2024
5d478f7
🛠️ admin.py -> Added 'time_label' to list_filter
BrainIsDead Mar 18, 2024
a3fb17e
🛠️ views.py -> Removed print statement
BrainIsDead Mar 18, 2024
f77d0c9
Merge pull request #86 from cmu-delphi/OKRS24-100
dmytrotsko Mar 19, 2024
91c9dec
ORKS24-116 Fix infinite scroll
dmytrotsko Mar 19, 2024
cefbaf6
OKRS24-118 Update filters
dmytrotsko Mar 20, 2024
313eca2
Merge pull request #87 from cmu-delphi/OKRS24-116
BrainIsDead Mar 20, 2024
1d02634
OKRS24-118 Removed unused import
dmytrotsko Mar 21, 2024
a38fa47
Merge pull request #88 from cmu-delphi/OKRS24-118
BrainIsDead Mar 21, 2024
654ae79
OKRS24-119 Added checkbox to 'Select all/Clear all' filters
dmytrotsko Mar 22, 2024
7896ab8
Merge pull request #89 from cmu-delphi/OKRS24-119
BrainIsDead Mar 25, 2024
a2f7545
OKRS24-117 Update 'Related Links' section. Handle non-200 status codes
dmytrotsko Mar 26, 2024
338cd87
Wrapped content block into container-fluid to prevent vertical scroll
dmytrotsko Mar 27, 2024
63572e3
🛠️ signals.html -> Modified row layout and added export button.
BrainIsDead Mar 27, 2024
6f26c92
Merge pull request #91 from cmu-delphi/fix_vertical_scroll
BrainIsDead Mar 27, 2024
78d6711
Fixed Sort by while loading paginated data
dmytrotsko Mar 27, 2024
9942e08
Merge pull request #92 from cmu-delphi/OKRS24-123-Add-link-to-COVIDca…
dmytrotsko Mar 27, 2024
110a9a7
Merge pull request #93 from cmu-delphi/fix_sort_by
BrainIsDead Mar 27, 2024
9e2d952
OKRS24-117 Replaced wildcard exception with exact one
dmytrotsko Mar 28, 2024
5fdb52f
🛠️ signals.html -> Updated form submission to use 'filters-form' ID.
BrainIsDead Mar 28, 2024
24ee771
Merge pull request #90 from cmu-delphi/OKRS24-117
BrainIsDead Mar 28, 2024
de7c22a
🛠️ signals.html -> Updated export button with new links and target at…
BrainIsDead Mar 28, 2024
4233fd1
Merge pull request #94 from cmu-delphi/OKRS24-130-Sort-by-function-no…
dmytrotsko Mar 28, 2024
08b094c
Merge pull request #95 from cmu-delphi/OKRS24-137-Add-link-to-EpiVis-…
dmytrotsko Mar 28, 2024
325d4a7
🛠️ models.py -> Updated field types and help texts for models
BrainIsDead Apr 1, 2024
edab7f9
🛠️ conf.py -> Updated templates_path and html_static_path
BrainIsDead Apr 1, 2024
efa2298
🛠️ context_processors.py -> Updated results dictionary
BrainIsDead Apr 1, 2024
7bddeb5
🛠️ Pipfile -> Added types-requests package
BrainIsDead Apr 1, 2024
1aab0e4
🟢 .filebeat/filebeat.yml -> Added filebeat configuration for log file…
BrainIsDead Apr 5, 2024
b432bd7
Merge pull request #96 from cmu-delphi/OKRS24-138-Fix-mypy-issues
BrainIsDead Apr 8, 2024
32daa00
🛠️ models.py -> Added ReportingCadence for reporting cadences.
BrainIsDead Apr 8, 2024
09d03dc
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead Apr 8, 2024
098c2bd
🛠️ models.py -> Added choices for demographic disaggregation.
BrainIsDead Apr 11, 2024
f129e97
Remove infinite scroll
dmytrotsko Apr 12, 2024
95ad8d5
Update settings.py
dmytrotsko Apr 12, 2024
9e81cdf
🛠️ settings.py -> Added import for sys
BrainIsDead Apr 12, 2024
d1d7b37
OKRS24-148 Added Geo Level fixtures
dmytrotsko Apr 16, 2024
1611812
🛠️ signals.html -> Updated the HTML structure to use accordion for be…
BrainIsDead Apr 16, 2024
e2af1f5
Merge pull request #99 from cmu-delphi/OKRS24-145
BrainIsDead Apr 16, 2024
dc6f83d
🔴 docker-compose.yaml --> deleted elasticsearch kibana logstash filebeat
BrainIsDead Apr 16, 2024
bbbea4e
🔴 filebeat.yml
BrainIsDead Apr 16, 2024
eeb9ee3
🔴 src/mydatabase - Deleted the mydatabase file.
BrainIsDead Apr 16, 2024
7b5cf57
Formatted GeographyUnit fixtures
BrainIsDead Apr 16, 2024
1b4a2fe
🛠️ states.json -> formatted
BrainIsDead Apr 16, 2024
4cfe801
Merge pull request #101 from cmu-delphi/OKRS24-147-Make-filters-block…
BrainIsDead Apr 26, 2024
9d8e47b
Added models for DemographicScope and DemographicScopeAdmin in admin.py
BrainIsDead Apr 26, 2024
4d78314
🛠️ src/fixtures/demographic_scopes.json -> Added created and modified…
BrainIsDead Apr 26, 2024
164d1f9
🛠️ models.py -> Modified GeographicScope model with a TODO comment.
BrainIsDead Apr 26, 2024
35fd24f
🛠️ settings.py -> Changed DEBUG setting to True
BrainIsDead Apr 26, 2024
ec4e604
Merge pull request #97 from cmu-delphi/OKRS24-140-Setup-logging
BrainIsDead Apr 26, 2024
98a556a
🔴 admin.py
BrainIsDead May 2, 2024
a73aa90
Added new GeographyUnit fixtures
BrainIsDead May 2, 2024
b9d92ee
🛠️ docker-compose.yaml -> Added data loading for county, hhs, hrr, ms…
BrainIsDead May 2, 2024
72bc059
Merge pull request #100 from cmu-delphi/OKRS24-148
dmytrotsko May 3, 2024
7149014
OKRS24-144 Added initial EpiVis block.
dmytrotsko May 3, 2024
97ff29c
chore: Update logger reference in signals/tools.py
BrainIsDead May 9, 2024
af8013b
Added 'x' to searc and made accordions not collapsed if filters are s…
BrainIsDead May 9, 2024
4b4de34
OKRS24-144 Removed 'postal' field from GeographyUnit model. For 'stat…
dmytrotsko May 14, 2024
f147d09
OKRS24-144 Created new restAPI ListView for the GeographyUnit model t…
dmytrotsko May 14, 2024
65a4f2e
OKRS24-144 Added EpiVis url to settings.py.
dmytrotsko May 14, 2024
8458d5c
🛠️ signals.html -> Updated layout and alignment for export and chart …
BrainIsDead May 16, 2024
1f7acb6
🛠️ index.html -> Modified navigation links for signals and datasources.
BrainIsDead May 16, 2024
5bf44dd
🛠️ index.html -> Updated About Us dropdown link
BrainIsDead May 16, 2024
b406ea6
OKRS24-198 Added init data export feature.
dmytrotsko May 16, 2024
7b9ecb7
OKRS24-198 Finished export data feature.
dmytrotsko May 16, 2024
e1ebbca
Merge pull request #104 from cmu-delphi/OKRS24-198
dmytrotsko May 16, 2024
b7ca4d4
OKRS24-198 Removed commented code.
dmytrotsko May 17, 2024
02c57a0
🛠️ signals.html -> Added "Active" column
BrainIsDead May 17, 2024
7010740
Merge pull request #102 from cmu-delphi/OKRS24-159-Add-X-to-cancel-se…
BrainIsDead May 17, 2024
e880b02
Merge pull request #105 from cmu-delphi/OKRS24-181-Change-What-is-Del…
dmytrotsko May 20, 2024
9f10b11
Merge pull request #106 from cmu-delphi/OKRS24-196-Add-field-indicati…
dmytrotsko May 20, 2024
b9e3c80
Merge pull request #107 from cmu-delphi/OKRS24-172-Highlight-which-ta…
dmytrotsko May 20, 2024
e8fced4
Merge pull request #108 from cmu-delphi/OKRS24-173-Remove-export-and-…
dmytrotsko May 20, 2024
2686718
OKRS24-198 Removed GeographyUnitSerializer.
dmytrotsko May 20, 2024
ccf9104
OKRS24-198 Removed GeographyUnitListView.
dmytrotsko May 20, 2024
ebc8500
OKRS24-198 Changed epivis/export block.
dmytrotsko May 20, 2024
d01ecd5
Merge pull request #109 from cmu-delphi/OKRS24-198
dmytrotsko May 20, 2024
b25a213
OKRS24-144 Removed unused import.
dmytrotsko May 20, 2024
94abca5
Update settings.py
dmytrotsko May 20, 2024
8084b00
OKRS24-144 Test pre-commit
dmytrotsko May 20, 2024
dd1d41a
OKRS24-144 Fix linting
dmytrotsko May 20, 2024
90c3c6d
Merge pull request #103 from cmu-delphi/OKRS24-144
dmytrotsko May 20, 2024
1e87594
Downgraded ubuntu to fix python issue
dmytrotsko May 20, 2024
6520625
Merge pull request #110 from cmu-delphi/ubuntu_downgrade
dmytrotsko May 20, 2024
a1277ad
Update settings.py
dmytrotsko May 21, 2024
0721100
Merge pull request #111 from cmu-delphi/dmytrotsko-patch-1
dmytrotsko May 21, 2024
cdff52b
Update settings.py
dmytrotsko May 21, 2024
20ee46a
Merge pull request #112 from cmu-delphi/dmytrotsko-patch-2
dmytrotsko May 21, 2024
4e80726
Update settings.py
dmytrotsko May 21, 2024
717ed2c
Merge pull request #113 from cmu-delphi/dmytrotsko-patch-3
dmytrotsko May 21, 2024
167255d
OKRS24-170 Make pathogen, geography and signal type tags clickable.
dmytrotsko May 22, 2024
7ec77e0
OKRS24-170 Removed unused import to make linters check pass
dmytrotsko May 22, 2024
1cec579
OKRS24-182 Add count of results at the top of the table.
dmytrotsko May 22, 2024
fdb4fee
🛠️ signals.html -> Updated signal.source to signal.source.data_source
BrainIsDead May 23, 2024
b56ea2d
🛠️ signals.html -> Changed link text to display signal display name
BrainIsDead May 23, 2024
6cf5843
🛠️ signals.html -> Modified table row structure and link URL
BrainIsDead May 23, 2024
f851243
OKRS24-165 Replaced modal with popover.
dmytrotsko May 23, 2024
2c070a5
OKRS24-165 Make signal list table responsive
dmytrotsko May 23, 2024
92574a6
🛠️ filters.py -> Updated time_label to time_type
BrainIsDead May 24, 2024
e3fcb41
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 24, 2024
20aafb9
🛠️ settings.py -> Removed import statement
BrainIsDead May 24, 2024
be7305d
Update settings.py -> deleted unused import
BrainIsDead May 24, 2024
04dae37
Merge pull request #122 from cmu-delphi/BrainIsDead-patch-1
BrainIsDead May 24, 2024
1ca852a
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 24, 2024
a3a0a5b
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 24, 2024
40082f0
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 24, 2024
57e8062
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 24, 2024
7390420
Update settings.py
dmytrotsko May 24, 2024
5fb5a48
Merge pull request #123 from cmu-delphi/dmytrotsko-patch-4
dmytrotsko May 24, 2024
3a4e108
Update time_label to time_type in SignalFilter
BrainIsDead May 27, 2024
11ede81
OKRS24-204 Added missing 'nation' geo value to plot/export data section.
dmytrotsko May 27, 2024
ed8e779
Merge pull request #114 from cmu-delphi/OKRS24-170
dmytrotsko May 28, 2024
80b561e
Merge pull request #118 from cmu-delphi/OKRS24-186-Signals-Change-dat…
BrainIsDead May 28, 2024
f559667
Merge pull request #121 from cmu-delphi/OKRS24-185-Signals-Change-tim…
BrainIsDead May 28, 2024
22be36a
Merge pull request #117 from cmu-delphi/OKRS24-190-Signal-Detail-Use-…
BrainIsDead May 28, 2024
42ba243
Update settings.py
dmytrotsko May 28, 2024
75eba26
Merge pull request #125 from cmu-delphi/dmytrotsko-patch-5
dmytrotsko May 28, 2024
26f74b6
Merge pull request #115 from cmu-delphi/OKRS24-182
dmytrotsko May 28, 2024
2403047
Merge pull request #120 from cmu-delphi/OKRS24-164
dmytrotsko May 28, 2024
176bd87
Merge pull request #124 from cmu-delphi/OKRS24-204
dmytrotsko May 28, 2024
955591c
Merge branch 'development' into OKRS24-165
dmytrotsko May 28, 2024
8c88f58
Merge pull request #119 from cmu-delphi/OKRS24-165
dmytrotsko May 28, 2024
4be11d9
Update settings.py
dmytrotsko May 28, 2024
e4fbdef
Merge pull request #126 from cmu-delphi/dmytrotsko-patch-6
dmytrotsko May 28, 2024
9b3cb03
Fixed links in footer.
dmytrotsko May 29, 2024
5c48bff
Merge pull request #127 from cmu-delphi/footer_links
dmytrotsko May 29, 2024
2452cc9
Fixed failing test
dmytrotsko May 29, 2024
264552d
🛠️ src/signal_documentation/settings.py -> Added strtobool import
BrainIsDead May 29, 2024
2e9284e
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead May 29, 2024
b7623f4
🛠️ src/templates/signals/signals.html -> Updated info button to use p…
BrainIsDead May 29, 2024
0f730d7
OKRS24-107 Fixed data preview feature. Now it user choose params to g…
dmytrotsko May 29, 2024
b5a5cc0
OKRS24-206 Added tooltip to the search field.
dmytrotsko May 30, 2024
6a3848a
OKRS24-205 Move scroll bar to the top of the table.
dmytrotsko May 30, 2024
b16d179
🛠️ src/signals/models.py -> Added same_base_signals property
BrainIsDead May 31, 2024
6e55f7c
🛠️ src/templates/signals/signals.html -> Added value attribute to sea…
BrainIsDead May 31, 2024
2106ed5
🛠️ src/templates/signals/signals.html -> Removed <br /> tag
BrainIsDead May 31, 2024
342c582
OKRS24-205 Made scrollbar floating instead of moving it to the top of…
dmytrotsko May 31, 2024
d31f138
Merge pull request #116 from cmu-delphi/OKRS24-184-Signals-Either-mak…
dmytrotsko Jun 3, 2024
eb1d6fd
Merge pull request #128 from cmu-delphi/OKRS24-187-Signals-Add-a-filt…
dmytrotsko Jun 3, 2024
47ac730
Merge pull request #129 from cmu-delphi/OKRS24-207
dmytrotsko Jun 3, 2024
36a6234
Merge pull request #130 from cmu-delphi/OKRS24-206
dmytrotsko Jun 3, 2024
6fae323
Merge branch 'development' into OKRS24-205
dmytrotsko Jun 3, 2024
127aacd
Merge pull request #131 from cmu-delphi/OKRS24-205
dmytrotsko Jun 3, 2024
b123c3c
Resolved conflicts
dmytrotsko Jun 3, 2024
d7b671a
Merge pull request #132 from cmu-delphi/OKRS24-192-Signal-Detail-Add-…
dmytrotsko Jun 3, 2024
cf8a6bb
Merge branch 'development' into OKRS24-183-Signals-Display-search-fie…
dmytrotsko Jun 3, 2024
dbc907f
Merge pull request #133 from cmu-delphi/OKRS24-183-Signals-Display-se…
dmytrotsko Jun 3, 2024
7fb825d
Removed response example section
dmytrotsko Jun 3, 2024
97334a6
Merge pull request #134 from cmu-delphi/remove_response_example
dmytrotsko Jun 3, 2024
c25deac
Added hotfix to fix Time Type dropdown & tooltips.
dmytrotsko Jun 3, 2024
9642872
Merge pull request #135 from cmu-delphi/hotfix
dmytrotsko Jun 3, 2024
e3289e7
Add main and staging branches
korlaxxalrok Jun 4, 2024
12c5bb1
Updates to workflow description
korlaxxalrok Jun 4, 2024
16815d0
🛠️ src/datasources/admin.py -> Removed unused tuple
BrainIsDead Jun 5, 2024
cd5118d
🛠️ src/templates/signals/signals.html -> Updated data source display
BrainIsDead Jun 5, 2024
f0d8ff3
Merge pull request #136 from cmu-delphi/update-ci-build-and-deploy
korlaxxalrok Jun 5, 2024
4c2b552
Merge pull request #137 from cmu-delphi/OKRS24-214-Update-SourceSubdi…
BrainIsDead Jun 5, 2024
56add41
Merge branch 'development' of https://github.com/cmu-delphi/signal_do…
BrainIsDead Jun 6, 2024
2a83b16
chore: Add available_geography field to Signal model and update Forei…
BrainIsDead Jun 6, 2024
0af52b1
Update settings.py
dmytrotsko Jun 7, 2024
1f38766
Merge pull request #138 from cmu-delphi/dmytrotsko-patch-7
dmytrotsko Jun 7, 2024
a020fd4
Fixed import, added some missing fields parsing. Fixed available_geog…
dmytrotsko Jun 7, 2024
db32c13
Fixed geographic scope during singals import.
dmytrotsko Jun 10, 2024
6c82ce5
Merge pull request #98 from cmu-delphi/OKRS24-115-Add-new-fields-to-t…
dmytrotsko Jun 10, 2024
0a8ac7d
OKRS24-218 Changed Signal List View table. Added new columns.
dmytrotsko Jun 10, 2024
cc4b0aa
Merge pull request #139 from cmu-delphi/OKRS24-218
dmytrotsko Jun 10, 2024
d335547
Merge pull request #140 from cmu-delphi/pre-development
dmytrotsko Jun 10, 2024
f4d7f26
OKRS24-217 Save stage commit
dmytrotsko Jun 10, 2024
32879df
OKRS24-217 Updated filters.
dmytrotsko Jun 11, 2024
77885ab
Merge pull request #141 from cmu-delphi/OKRS24-217
dmytrotsko Jun 11, 2024
157a7df
Merge pull request #142 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
3f5e5e8
updated docker-compose file.
dmytrotsko Jun 11, 2024
285c8a0
Merge pull request #143 from cmu-delphi/update_docker_compose
dmytrotsko Jun 11, 2024
f56fb19
Added typical_reporting_lag to the list of SignalResource Meta fields.
dmytrotsko Jun 11, 2024
8ce03d7
Merge pull request #144 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
fe93ccd
Added missing fields into resources.py files.
dmytrotsko Jun 11, 2024
64f201a
Merge pull request #145 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
c09c8da
Added missing fields into resources.py files.
dmytrotsko Jun 11, 2024
cde0f4e
Merge pull request #146 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
c6b19a8
Added missing fields into resources.py files.
dmytrotsko Jun 11, 2024
a281f11
Merge pull request #147 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
82e1f58
Added missing fields into resources.py files.
dmytrotsko Jun 11, 2024
4627641
Merge pull request #148 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
282265b
Added DoesNotExist handling.
dmytrotsko Jun 11, 2024
25cff71
Removed base_signal filter.
dmytrotsko Jun 11, 2024
55a9c08
Updated Geography display names.
dmytrotsko Jun 11, 2024
fcac7a8
Added Geo-Level ordering in filters list
dmytrotsko Jun 11, 2024
bafb2aa
Merge pull request #149 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
391400e
Renamed Outpatient Visit -> Outpatient / ED
dmytrotsko Jun 11, 2024
0f31332
Merge pull request #150 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
275e8b8
Moved Country filter above Geo Level. Added Geographic Scope to the a…
dmytrotsko Jun 11, 2024
07f329d
Merge pull request #151 from cmu-delphi/pre-development
dmytrotsko Jun 11, 2024
ac2a5fc
Changed tooltips titles.
dmytrotsko Jun 12, 2024
c2753fc
Updated tooltips
dmytrotsko Jun 12, 2024
42921d5
Added 'Signals With The Same Base' table to the Signal Detailed View.
dmytrotsko Jun 12, 2024
d961097
Minor naming adjustments.
dmytrotsko Jun 12, 2024
6e19364
Merge pull request #152 from cmu-delphi/pre-development
dmytrotsko Jun 13, 2024
e4dcc69
🛠️ forms.py -> Modified source field to use MultipleChoiceField with …
Jun 13, 2024
c79fc12
Merge pull request #153 from cmu-delphi/OKRS24-220
dmytrotsko Jun 13, 2024
ac23ed5
OKRS24-221 Fixed data visualisation section.
dmytrotsko Jun 14, 2024
7395e09
Merge pull request #154 from cmu-delphi/OKRS24-221
dmytrotsko Jun 14, 2024
4cf46e3
🛠️ forms.py -> Updated source field choices
Jun 14, 2024
822cb18
OKRS24-222 Fixed responsiveness in 'Signals with the same base' table.
dmytrotsko Jun 17, 2024
93f1e64
Merge pull request #156 from cmu-delphi/OKRS24-222
dmytrotsko Jun 17, 2024
75b05f2
OKRS24-220 Fixed Data Source filter.
dmytrotsko Jun 17, 2024
ca06d22
Merge pull request #155 from cmu-delphi/OKRS24-220
dmytrotsko Jun 17, 2024
9154e1a
Updates the Nginx location block to work properly when we set `MAIN_P…
korlaxxalrok Jun 18, 2024
3d134a1
Updates the README to include some notes about testing the Nginx prox…
korlaxxalrok Jun 18, 2024
f60d64f
Update README
korlaxxalrok Jun 18, 2024
c5ead64
OKRS24-224 Fixed 'SourceSubdivision' table does not exist on the fres…
dmytrotsko Jun 19, 2024
2eda562
Merge pull request #158 from cmu-delphi/OKRS24-224
dmytrotsko Jun 19, 2024
cf27fa7
Fixed 'Data Source' filter.
dmytrotsko Jun 19, 2024
8b02fe8
Merge pull request #159 from cmu-delphi/data_source_filter_fix
dmytrotsko Jun 19, 2024
5d25c4a
Merge pull request #157 from cmu-delphi/update-nginx-proxy-config
korlaxxalrok Jun 20, 2024
21c54cf
OKRS24-223 Fixed Celery taks to get weekly based dates properly. Adde…
dmytrotsko Jun 20, 2024
b06f4ee
use api.delphi.cmu.edu instead of api.covidcast
melange396 Jun 20, 2024
c4fcf67
Added new env variable 'COVIDCAST_URL' to the settings.py
dmytrotsko Jun 25, 2024
c390176
Merge pull request #161 from cmu-delphi/api_host_rename
dmytrotsko Jun 25, 2024
64a98d3
Merge pull request #160 from cmu-delphi/OKRS24-223
dmytrotsko Jun 25, 2024
d9f8da6
OKRS24-235 Added caching.
dmytrotsko Jun 27, 2024
77c5a3f
OKRS24-235 Added eager loading to reduce number of database calls.
dmytrotsko Jun 27, 2024
d6489dd
Merge pull request #162 from cmu-delphi/OKRS24-235
dmytrotsko Jun 27, 2024
f2a88e8
Use main instead of master
korlaxxalrok Jul 9, 2024
7b88f25
Merge pull request #163 from cmu-delphi/set-up-main-branch-ci
korlaxxalrok Jul 10, 2024
70655df
Merge pull request #164 from cmu-delphi/development
korlaxxalrok Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .ci.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is used to allow CI to start the compose services. It will typcially
# not need to be modified.

MYSQL_DATABASE=mysql_database
MYSQL_USER=mysql_user
MYSQL_PASSWORD=mysql_password
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=test123!
MYSQL_HOST=db

ALLOWED_HOSTS='127.0.0.1,localhost'
CORS_ORIGIN_WHITELIST='http://127.0.0.1:3000,http://localhost:3000'
CSRF_TRUSTED_ORIGINS='http://127.0.0.1:8000,http://localhost:8000'

SECRET_KEY='secret_key'
DEBUG='True'

# Add the following to your local .env file. They will be used in the CI process
# and you can largely forget about them, but including them in your .env file
# will act like a safe default and help suppress warnings.
REGISTRY=""
TAG=""
23 changes: 19 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
POSTGRES_DB=postgres_db_name
POSTGRES_USER=postgres_db_user
POSTGRES_PASSWORD=postgres_db_password
POSTGRES_PORT=postgres_db_port
MYSQL_DATABASE=mysql_database
MYSQL_USER=mysql_user
MYSQL_PASSWORD=mysql_password
MYSQL_PORT=mysql_port
MYSQL_HOST=mysql_host
MYSQL_ROOT_PASSWORD=mysql_root_password

ALLOWED_HOSTS='127.0.0.1,localhost'
CORS_ORIGIN_WHITELIST='http://127.0.0.1:3000,http://localhost:3000'
CSRF_TRUSTED_ORIGINS='http://127.0.0.1:8000,http://localhost:8000'

SECRET_KEY='secret_key'
DEBUG='True'

# Sentry
# Modify the Sentry config here. A DSN string is the minimum. Check the
# application's Sentry init section and the Sentry documentation for the
# defaults and options that may be set. If you don't want to use Sentry you can
# leave this as is.
#SENTRY_DSN=''

# Add the following to your local .env file. They will be used in the CI process
# and you can largely forget about them, but including them in your .env file
# will act like a safe default and help suppress warnings.
REGISTRY=""
TAG=""
9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: 'Build and deploy application containers'
on:
push:
jobs:
build-tag-push-deploy:
runs-on: ubuntu-latest
# CI/CD will run on these branches
if: >
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/staging' ||
github.ref == 'refs/heads/development'
strategy:
matrix:
# Specify the docker-compose services to build images from
service: [sdwebapp, sdnginx]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: cmu-delphi-deploy-machine
password: ${{ secrets.CMU_DELPHI_DEPLOY_MACHINE_PAT }}
- name: Create container image tags
id: image-tag
run: |
baseRef="${GITHUB_REF#*/}"
baseRef="${baseRef#*/}"
case "${baseRef}" in
main)
image_tag="latest"
;;
*)
image_tag="${baseRef//\//_}" # replace `/` with `_` in branch name
;;
esac
echo "IMAGE_TAG=${image_tag}" >> $GITHUB_OUTPUT
- name: Copy env file
run: |
cp ./.ci.env ./.env
- name: Set up docker-compose
uses: ndeloof/[email protected]
- name: docker-compose build --push
run: |
docker-compose build --push ${{ matrix.service }}
env:
TAG: ":${{ steps.image-tag.outputs.IMAGE_TAG }}"
REGISTRY: "ghcr.io/${{ github.repository_owner }}/"
- name: docker-compose down
run: |
docker-compose down
- name: Trigger smee.io webhook to pull new container images
run: |
curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
-X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "repository=ghcr.io/${{ github.repository }}-${{ matrix.service }}&tag=${{ steps.image-tag.outputs.IMAGE_TAG }}"
52 changes: 52 additions & 0 deletions .github/workflows/generate-sphynx-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Update Sphinx Documentation

on:
pull_request:
branches:
- develop
types: [opened, synchronize, reopened]

jobs:
update-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout source branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
sudo apt-get update -y
sudo apt-get install mysql-client -y
sudo apt-get install graphviz graphviz-dev -y
pip install pipenv
pipenv requirements > requirements.txt
pip install -r requirements.txt


- name: Generate documentation
run: |
cd src/docs
make clean
make html

- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "<>"

- name: Commit and push changes
run: |
git add -A
git commit -m "Update Sphinx documentation"
git push
92 changes: 92 additions & 0 deletions .github/workflows/sync-issue-to-jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Sync GitHub issues to Jira
on: [issues]

jobs:
sync-issues:
name: Sync issues to Jira
runs-on: ubuntu-latest
steps:
- name: Get the repository name
id: repo_name
run: echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2)" >> $GITHUB_OUTPUT
- name: Sync issues to Jira
env:
issue_id: ${{ github.event.issue.html_url }}
issue_title: ${{ github.event.issue.title }}
issue_body: ${{ github.event.issue.body }}
issue_author: ${{ github.event.issue.user.login }}
run: |
# Add your action code here
set -eux

if [ ${{ github.event_name }} != "issues" ]; then
echo "This action only supports the issues event"
exit 1
fi
if [ ${{ github.event.issue.pull_request }} ]; then
echo "This action does not support pull requests"
exit 0
fi
# Issue creation with label will trigger 2 events and run twice: one create, one labelled.
# let just focus on labelling then for creating issues Jira-side.
if [ ${{ github.event_name }} == "issues" ] && [ ${{ github.event.action }} == "opened" ]; then
echo "Ignoring creation of issues as a label will trigger a second event."
exit 0
fi
# We only operate on labelled issues or issues that are just unlabeled with our desired label which is 'jira'
## check if one label of labels is our jira label
toconsider=${{ contains(github.event.issue.labels.*.name, 'jira') }}
if [ "${toconsider}" == false ]; then
echo "Our desired label not found on issue or not unlabeled, skipping"
exit 0
fi
# And finally, for the "labeled" event, we are only interested if the new added label is our desired one.
if [ ${{ github.event.action }} == "labeled" ] && [ ${{ github.event.label.name }} != 'jira' ]; then
echo "Not interested in this action, skipping"
exit 0
fi

# Convert markdown to JIRA using mistletoe package which is available starting with impish.
# Since GH runners only have LTS versions it's safe to only check for focal which doesn't have the package.
if [ $(lsb_release -c -s) == "focal" ]; then
echo "Converting Markdown to JIRA is only possible starting with Ubuntu 22.04 (jammy). Pushing verbatim content to JIRA..."
else
TMPDIR=$(mktemp -d)
trap 'rm -rf -- "$TMPDIR"' EXIT

sudo apt install -y python3-mistletoe
echo ${issue_body} > $TMPDIR/body.md
issue_body=$(PYTHONPATH=/usr/share/doc/python3-mistletoe mistletoe -r examples.jira_renderer.JIRARenderer $TMPDIR/body.md)
fi

issue_description="*Issue created by ${issue_author}}*

Description: ${issue_body}

GitHub URL: ${issue_id}"
# Choose Jira action based on event type and action
action=""
if [ ${{ github.event.action }} == "labeled" ]; then
action=Create
fi

echo "PUSHING: $issue_id $action $issue_title $issue_description"
# Push to Jira as a json data format
data=$(jq -n \
--arg id "$issue_id" \
--arg title "$issue_title" \
--arg description "$issue_description" \
--arg action "$action" \
--arg project "${{ steps.repo_name.outputs.REPO_NAME }}" \
'{data: {id: $id, title: $title, description: $description, action: $action, project: $project}}')
curl -X POST -H "Content-Type: application/json" -d "${data}" '${{ secrets.JIRA_WEBHOOK }}'
shell: bash









79 changes: 79 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Django Tests
on: [pull_request, push]

jobs:
test:
runs-on: ubuntu-latest

env:
MYSQL_ROOT_PASSWORD: mysql_root_password
MYSQL_DATABASE: mysql_database
MYSQL_USER: mysql_user
MYSQL_PASSWORD: mysql_password
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306

services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_ROOT_PASSWORD }}
MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }}
MYSQL_USER: ${{ env.MYSQL_USER }}
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }}
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
sudo apt-get update -y
sudo apt-get install mysql-client -y
sudo apt-get install graphviz graphviz-dev -y
pip install pipenv
pipenv requirements > requirements.txt
pip install -r requirements.txt

- name: Make migrations
env:
MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_ROOT_PASSWORD }}
MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }}
MYSQL_USER: ${{ env.MYSQL_USER }}
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }}
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: ${{ env.MYSQL_PORT }}

run: |
mysql -u root -p"${{ env.MYSQL_ROOT_PASSWORD }}" -e "GRANT ALL PRIVILEGES ON *.* TO '${{ env.MYSQL_USER }}'@'%';"
python3 ./src/manage.py migrate

- name: Run linters
run: |
pip install flake8
flake8 .

- name: Run tests
env:
MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_ROOT_PASSWORD }}
MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }}
MYSQL_USER: ${{ env.MYSQL_USER }}
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }}
MYSQL_HOST: ${{ env.MYSQL_HOST }}
MYSQL_PORT: ${{ env.MYSQL_PORT }}

run: |
python3 ./src/manage.py test
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.env
.secrets
/.vscode/
/src/media/
/src/static/
/src/staticfiles/
*log
*.mo
*.pyc
htmlcov/
.coverage
.coverage.*
coverage.xml
*.cover
celerybeat-schedule.*
5 changes: 0 additions & 5 deletions .isort.cfg

This file was deleted.

Loading
Loading