-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial Launch Branch (Do not merge) #21
base: launch_branch
Are you sure you want to change the base?
Conversation
@@ -25,6 +25,7 @@ data class Publication( | |||
val slug: String, | |||
val shoutouts: Double, | |||
val websiteURL: String, | |||
val contentTypes: List<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.
I think this would be better as a list of ENUMS than raw strings so it scales better from the source of truth;
should be
val contentTypes: List<ContentType>,
val websiteURL: String,
val numArticles: Double,
val mostRecentArticle: Article? = null,
val socials: List<Social>
)
enum class ContentType {
MAGAZINES, ARTICLES
}
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.
Implemented these changes on emily-content-type (so that they can eventually be merged into main), then incorporated those changes into this branch. This way we can have the enum change in main next semester, and keep the filtering only in this branch.
@@ -55,12 +55,14 @@ class ArticleRepository @Inject constructor(private val networkApi: NetworkApi) | |||
rssURL = publication.rssURL, | |||
slug = publication.slug, | |||
shoutouts = publication.shoutouts, | |||
contentTypes = publication.contentTypes, |
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.
Instead of contentTypes = publication.contentTypes, we can create the enums from the content type itself:
contentTypes = publication.contentTypes.map {
ContentType.valueOf(it.uppercase())
})
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.
Ditto everywhere
Overview
Prepare a branch to launch to the play store.
Changes Made
Test Coverage
Manual testing
Next Steps
Launch!