life icon indicating copy to clipboard operation
life copied to clipboard

Twitter is not searching for "Remdesivir, Tocilizumab etc." even Medicine is selected tab

Open technoknol opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe. If I want to search for Remdesivir or Tocilizumab I'm unable to get it. Right now twitter query is searching for verified Oxygen, Ventilators and Bed even when I'm on medicine tab.

Describe the solution you'd like Medicine and All tab should search for Remdesivir or Tocilizumab or any other critical relative medicine.

Describe alternatives you've considered NA

Additional context NA

technoknol avatar Apr 30 '21 17:04 technoknol

I believe this issue has been resolved already. We can close it. image

minkeshj avatar May 03 '21 19:05 minkeshj

No this is not solved.

The way to solve this is,

  • map medicines to a list of medicines [medrol, dolo, ...]
  • call the Twitter search api with a new parameter called resource_type_detail=medicine&resource_meta=dolo,medrol.. (comma separated string of the above list)
  • Ping @brainless or @apoorvsingal in the search channel on slack to have them integrate this in the Twitter search backend

viksit avatar May 03 '21 19:05 viksit

@viksit It looks like the covidConnect API for twitter search only supports two kinds of resource_type filtering 1. Supply 2. Demand. Also, the search string is constructed only from the location, doesn't take into the resource type or district. In order to make the twitter search appropriate based on the resource type and district, the updates need to be done for the covidconnect API. Could you please point to where the covid connect repository is, so that I can expand the feature set for that API?

n3jain avatar May 04 '21 22:05 n3jain

@n3jain let me have a look at this today. @apoorvsingal and myself are in the covidconnect repo. If you have time right now then please feel free to make the changes, I can review the PR. The repo is at https://github.com/viksit/covidconnect

brainless avatar May 05 '21 02:05 brainless

@brainless @viksit I have raised the PR to integrate the changes done by @n3jain to support searching of medicines via covidconnect api. Now we have capability to search for required resources on twitter (previously it was a fixed hardcoded query).

minkesh avatar May 05 '21 07:05 minkesh

Please review https://github.com/coronasafe/life/pull/268

minkeshj avatar May 05 '21 16:05 minkeshj

Deployed

viksit avatar May 10 '21 07:05 viksit