-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Extra column which shows date of 1st reported case. #337
Comments
@JunaidBabu I would like to work on this issue |
I'd like to take this up |
@JunaidBabu Is this issue still open? |
Can someone work on API for this? Data that is to be populated in the column isn't present in the current API and it is not possible to calculate the same. |
@pk1997 yeah I would like work on the API for this issue. Let distribute the work and Integrate this feature. |
@strikertanmay Sure. Let me know once you are done with API. BTW do we have slack channel or something for communication |
@pk1997 Please tell me the response structure which u needed to populate the table. I will modify the api response on that basis. |
@strikertanmay In API response of 'https://api.covid19india.org/data.json', In statewise array, send a field saying first_reported with date in it. Hope this helps |
Okay I get it. If I change in state_district_wise.json (https://api.covid19india.org/state_district_wise.json)as this will cover both district and state, it will worked for you ? |
@strikertanmay Even though yours is a good idea to cover both, I feel its bad design to involve state data in district wise data. Add first reported for the state in https://api.covid19india.org/data.json API and first reported of the district in https://api.covid19india.org/state_district_wise.json API so that it will be a clean code |
I'm also not truly satisfied with my idea and your concern is totally valid. Actually I explored but not found any way to update the data.json just like there is a way for state_district_wise.json. We can do one more thing as all states have first_reported cases and there is no update in this field so you can also hardcoded it for the state. And for district_wise I will update the API and it will populate through API response |
Sure lets do that |
|
Can you help me curate an object contains ifo first reported case of each and every state. |
Yeah sure.. |
Sure Thanks |
@pk1997 Please view the PR and suggest if any change required. |
PR link please ? |
Gotcha. That should have been done in frontend repo. Anyway thanks for the help I got what I needed |
U can directly fetch data by requesting api/state_wise_first_reported.json. According to me this will be good to fetched all data from api. hope u get my point |
Got it. |
Will do that once your pr is up and running |
Hey there @strikertanmay I respect your work but can you change date format, US uses months first so lets keep it like this. I will give you JSON please paste the same
This will look good too on the actual table |
Okay, I will change for the state data. But For district data, will u change the format during populating or I will have to change in JSON itself? |
Closed in favor of #1496 |
This feature will help people to get information that may be important sometimes as the date of first reported case shows the level of danger in the particular state/district. This will also help doctors, analysts, and other people to take important decisions if required.
Simply add one column in the table which shows the date of first reported case in each state as well as in each district.
Look on this website https://www.worldometers.info/coronavirus/ which also have a same column which I'm talking about.
The text was updated successfully, but these errors were encountered: