Skip to content

Conversation

kvld
Copy link
Contributor

@kvld kvld commented Apr 10, 2018

Задача: #APPS-1835

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

Описание:
Из-за того, что в CourseListPresenter обновляем кеш в блоке didSet, кеш перезатирался на пустой. Теперь обновляем его вручную и только тогда, когда данные в памяти актуальнее, чем кешированные.

@kvld kvld self-assigned this Apr 10, 2018
@kvld kvld added this to the 1.57 milestone Apr 10, 2018
@kvld kvld requested a review from Ostrenkiy April 17, 2018 09:09
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.

Пока не запускал, но по коду ОК

private var id: String
var listType: CourseListType

// Only cached courses?
Copy link
Contributor

Choose a reason for hiding this comment

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

да, этот флаг нужен, чтобы отображать только закешированные курсы (требуется для отображения закешированных CourseList-ов, чтобы не кидались лишние запросы)

@kvld
Copy link
Contributor Author

kvld commented Apr 17, 2018

Мерджу?

@kvld kvld merged commit 7adc31b into dev Apr 17, 2018
@kvld kvld deleted the fix/home-offline branch April 17, 2018 21:19
@kvld kvld mentioned this pull request Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants