Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-anonymized adaptive leaderboards #289

Merged
merged 4 commits into from
Apr 27, 2018
Merged

Conversation

kvld
Copy link
Contributor

@kvld kvld commented Apr 26, 2018

Задача: #APPS-1868

Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Деанонимизировали лидерборды

Описание:
Используем новый флаг из API is_not_fake: подгружаем информацию о реальных пользователях и транслитерируем имена при необходимости.

@kvld kvld added this to the 1.58 milestone Apr 26, 2018
@kvld kvld self-assigned this Apr 26, 2018
@kvld kvld requested a review from Ostrenkiy April 26, 2018 11:48
@kvld kvld changed the title Deanonimyzed adaptive leaderboards De-anonymized adaptive leaderboards Apr 26, 2018
loadedScoreboard = scoreboard
usersForDeanonIds = scoreboard.leaders.filter({ !$0.isFake }).map { $0.userId }

let cachedUsers = User.fetch(usersForDeanonIds)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю, стоит сделать асинхронный фетч по id здесь.
Синхронные запросы suck.

Copy link
Contributor

@Ostrenkiy Ostrenkiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот сейчас классненько!

@kvld kvld merged commit 6a32133 into dev Apr 27, 2018
@kvld kvld deleted the feature/deanonimyzed-leaderboards branch April 27, 2018 14:55
@Ostrenkiy Ostrenkiy mentioned this pull request May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants