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
Right now, every time we change tags, we count their popularity by resources in TagsSelectorPresenter.
We can collect this statistics in StatsStorage and use it right away
But before that, we need to make sure that statistics are collected correctly.
For example, deleting a resource without our app. In this case, we need to reduce popularity of tags of this resource.
private fun sortByPopularity(
tagsOfSelectedResources: List<TagItem>,
tagsOfUnselectedResources: List<TagItem>,
tagItemsByResources: Map<ResourceId, Set<TagItem>>
) {
val tagsOfSelectedResPopularity = Popularity
.calculate(tagsOfSelectedResources)
val tagsOfUnselectedResPopularity = Popularity
.calculate(tagsOfUnselectedResources)
val tagsPopularity = Popularity
.calculate(tagItemsByResources.values.flatten())
The text was updated successfully, but these errors were encountered:
Right now, every time we change tags, we count their popularity by resources in
TagsSelectorPresenter
.We can collect this statistics in
StatsStorage
and use it right awayBut before that, we need to make sure that statistics are collected correctly.
For example, deleting a resource without our app. In this case, we need to reduce popularity of tags of this resource.
The text was updated successfully, but these errors were encountered: