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

Improved unit navigation #448

Merged
merged 5 commits into from
Feb 20, 2019
Merged

Improved unit navigation #448

merged 5 commits into from
Feb 20, 2019

Conversation

kvld
Copy link
Contributor

@kvld kvld commented Feb 19, 2019

Задача: #APPS-2206

Описание:
Переходить между юнитами можно теперь всегда, когда урок открыт в контексте unit, а не только при переходе из силлабуса.

@kvld kvld added the main label Feb 19, 2019
@kvld kvld added this to the 1.78 milestone Feb 19, 2019
@kvld kvld self-assigned this Feb 19, 2019
@kvld kvld requested a review from Ostrenkiy February 19, 2019 15:25
@@ -8,6 +8,7 @@

import Foundation
import UIKit
import SVProgressHUD
Copy link
Contributor

Choose a reason for hiding this comment

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

Давай попробуем продумать приложение так, чтобы от блочащих экран SVProgressHUD избавиться.
(Естественно, не в рамках этого PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Пока всё не перепишем, об этом рано думать :)

Stepic/LessonPresenter.swift Outdated Show resolved Hide resolved
Stepic/LessonPresenter.swift Outdated Show resolved Hide resolved
// MARK: Helpers
// Remove after network layer & services refactoring

private func getUnitFromCacheOrNetwork(id: Unit.IdType) -> Promise<Unit?> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ох, кажется мне, что при текущей БД и возможной неуникальности объектов с одинаковыми id от фетча из кеша по id могут быть неожиданности и проблемы

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Да, но это больше для оффлайна, нам там не особо важна уникальность на самом деле

@kvld kvld merged commit 03b0f8b into dev Feb 20, 2019
@kvld kvld deleted the feature/next-previous-lesson branch February 20, 2019 09:17
@kvld kvld mentioned this pull request Feb 23, 2019
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