Why the version_downloads of search API is 0?

14 views
Skip to first unread message

Masamitsu terasawan

unread,
Oct 5, 2020, 11:08:49 AM10/5/20
to rubygems.org
Hi. Does anyone know the reason?

e.g. ruby-prof

version_downloads: 781875

but,

version_downloads: 0

Aditya Prakash

unread,
Oct 5, 2020, 12:16:11 PM10/5/20
to rubyge...@googlegroups.com
Hi Masamitsu,

You have found a bug. Search results are served from elasticsearch and there we are only updating gem downloads (`downloads` key). We should be updating `version_downloads` as well.
https://github.com/rubygems/rubygems.org/blob/master/app/models/gem_download.rb#L107-L112

I will try to get this fixed as soon as possible.

--
You received this message because you are subscribed to the Google Groups "rubygems.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubygems-org...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubygems-org/1d36ab23-d172-4642-8de4-712ca82b3e91n%40googlegroups.com.

Masamitsu terasawan

unread,
Oct 6, 2020, 3:12:45 AM10/6/20
to rubygems.org
Hi, Aditya,

I see. There’s no rush, do it when you have time.

Best,
2020年10月6日火曜日 1:16:11 UTC+9 aditya.p...@gmail.com:
Reply all
Reply to author
Forward
0 new messages