You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use the total number of Github stars to sort the projects. But this metric can usually grow over time and so it favors old projects over new ones. In Scaladex we would like to promote new promising libraries and encourage the community to use them, to sponsor them and to contribute them. We call them trending libabries.
In order to determine which library is trending we can use the number of stars received during the last month or the last year.
Identified Obstacle
How to get and update the number of given stars during a sliding period of time? Is it possible to get the information directly using Github API. Otherwise we can store timeseries of total number of stars and compute the difference in SQL.
Implementation Guideline
For timeseries:
Create a table to persist all number of stars.
Use the GithubUpdater to store the number of stars in this table
Add the starsLastMonth and starsLastYear in the GithubInfoDocument that is indexed in Elasticsearch.
Create the request in SqlDatabase to compute these numbers
Add corresponding Sorting criteria and implement them in ElasticsearchEngine
Add these sorting criteria in the search page and the awesome page
Expectations
The SQL request should be tested.
The implementation of the new Sorting criteria should be tested.
We can easily find the most trending project in the search page and the awesome page.
The text was updated successfully, but these errors were encountered:
Motivation
Currently we use the total number of Github stars to sort the projects. But this metric can usually grow over time and so it favors old projects over new ones. In Scaladex we would like to promote new promising libraries and encourage the community to use them, to sponsor them and to contribute them. We call them trending libabries.
In order to determine which library is trending we can use the number of stars received during the last month or the last year.
Identified Obstacle
How to get and update the number of given stars during a sliding period of time? Is it possible to get the information directly using Github API. Otherwise we can store timeseries of total number of stars and compute the difference in SQL.
Implementation Guideline
For timeseries:
GithubUpdater
to store the number of stars in this tablestarsLastMonth
andstarsLastYear
in theGithubInfoDocument
that is indexed in Elasticsearch.SqlDatabase
to compute these numbersSorting
criteria and implement them inElasticsearchEngine
Expectations
Sorting
criteria should be tested.The text was updated successfully, but these errors were encountered: