-
Notifications
You must be signed in to change notification settings - Fork 34
Auth after onboarding ab #386
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
Conversation
| self.analytics = analytics | ||
| } | ||
|
|
||
| typealias GroupType = Group |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай наверх вынесем
| } | ||
| } | ||
|
|
||
| extension AuthAfterOnboardingSplitTest.Group { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кажется, что экстеншен не нужен. Енум же AuthAfterOnboardingSplitTest.Group, можно сразу всё описать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне кстати кажется, что здесь с экстеншном удобнее. Давай просто договоримся, что там будем пилить все, что касается поведения групп (все, что не в этом экстеншне, можно +- копипастить из теста в тест, смысловой нагрузки там мало)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделаем так, как решит третий @vanyaland
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В данном случае расширение ради одной переменной мне кажется излишне и можно сразу описать Group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙄
LaunchDefaultsContainer.swift
Outdated
| if let startVersion = defaults.value(forKey: startVersionKey) as? String { | ||
| return startVersion | ||
| } else { | ||
| let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно попробовать безопаснее
|
Пофиксил |
Задача: #APPS-2078
Описание:
Немного переписал то, как работает модуль для сплит-тестов. Теперь группа отсылаетя как user property при запуске приложения, а для каждого теста можно определять, должен ли пользователь в a/b-тесте участвовать.
Суть теста описана в задаче.