Commit 09b5646
Iss1019feat (#1030)
* [FEAT] create the scraper in the getEuropeVariants.js file, modify the api_gov.spec.js and getGovData.js files
* [FEAT] create the scraper in the getEuropeVariants.js file, modify the api_gov.spec.js and getGovData.js files
* [MODIFY] Rename the getEuropeVariants to --> getVariants
* [MODIFY] Add the line 22 variants to the json
* [MODIFY] change the values of keys.variants in the line 15 and 22
* [ADD/MODIFY] add the instance of the variant.js file and modify the getGovData.js since the variant scraper doesn't belong in there
* [MODIFY] change a several files in order to connect the variant scraper with the endpoint v3/covid-19/variants/countries/{country}
* [MODIFY] now the scraper works and return the data in the correct format
* [MODIFY] remove the parameters yearWeek and variant from router.get in apiVariants.js file since they're never use
* [MODIFY] add test for the getVariants.js scraper and remove console.log and commented code from the others files.
* [MODIFY] add swagger documentation
* [MODIFY] fix swagger documentation
* [MODIFY] fix eslint style problems
* [MODIFY] I commented the lines 2-5 in api_influenza.spec.js file to fix the linting problem, as there are variables assigned that are never used.
* [MODIFY] I change the --timeout value from 200000 to 300000 for the 'test' and the 'test-single' in the package.json file in order to get time enough to complete all tests
* [MODIFY] Put back the var in line 57 in order to get a right eslint performance
Co-authored-by: Ethan Winters <ebwinters@comcast.net>1 parent 6ed6260 commit 09b5646
File tree
14 files changed
+400
-123
lines changed- config
- public/apidocs
- routes
- v3/covid-19
- scrapers/covid-19
- tests
- v3
- covid-19
- influenza
14 files changed
+400
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments