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

Add support for heart languages #195

Merged
merged 9 commits into from
May 16, 2024

Conversation

mXaln
Copy link
Contributor

@mXaln mXaln commented May 15, 2024

This change is Reviewable

@mXaln mXaln requested a review from AnonymousWalker May 15, 2024 13:54
Copy link
Collaborator

@AnonymousWalker AnonymousWalker left a comment

Choose a reason for hiding this comment

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

if I remember correctly, the purpose of using the cache was to:

  1. improve performance for page-load (GLs only)
  2. avoid giving false positive - when the user click on something and then nothing is available

Maybe this could satisfy the first purpose which does not affect performance significantly. We need to verify this on dev after merging

Reviewed all commit messages.
Reviewable status: 0 of 19 files reviewed, 3 unresolved discussions (waiting on @mXaln)


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/di/DIModule.kt line 5 at r1 (raw file):

import org.bibletranslationtools.fetcher.config.DevEnvironmentConfig
import org.bibletranslationtools.fetcher.config.EnvironmentConfig
import org.bibletranslationtools.fetcher.impl.repository.*

please keep the import style consistent with how it was, this is easy to miss.


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/usecase/FetchProductViewData.kt line 25 at r1 (raw file):

                } else {
                    listOf("mp3", "wav")
                }

Originally, we were using enums to avoid hard-coded strings like these. Could we keep that practice?


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/web/controllers/BookController.kt line 81 at r1 (raw file):

            "fileTypesNavTitle" to product.titleKey,
            "fileTypesNavUrl" to "/$GL_ROUTE/${params.languageCode}",
            "booksNavUrl" to "javascript:void(0)"

this feels wrong to use here

Copy link
Contributor Author

@mXaln mXaln left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 22 files reviewed, 3 unresolved discussions (waiting on @AnonymousWalker)


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/di/DIModule.kt line 5 at r1 (raw file):

Previously, AnonymousWalker (Tony) wrote…

please keep the import style consistent with how it was, this is easy to miss.

yeah, my IDE does that. Changed manually.


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/usecase/FetchProductViewData.kt line 25 at r1 (raw file):

Previously, AnonymousWalker (Tony) wrote…

Originally, we were using enums to avoid hard-coded strings like these. Could we keep that practice?

I was following the practice that was already in the code, like in the FetchBookViewData. Changed wherever I found it.


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/web/controllers/BookController.kt line 81 at r1 (raw file):

Previously, AnonymousWalker (Tony) wrote…

this feels wrong to use here

Well it's just another type of url. Yeah, it looks like js code, but that's necessary to have it here. Could you suggest something different?

Copy link
Collaborator

@AnonymousWalker AnonymousWalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 22 files reviewed, all discussions resolved


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/web/controllers/BookController.kt line 81 at r1 (raw file):

Previously, mXaln (Maxim) wrote…

Well it's just another type of url. Yeah, it looks like js code, but that's necessary to have it here. Could you suggest something different?

Yes, #196

Copy link
Contributor Author

@mXaln mXaln left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 22 files reviewed, all discussions resolved (waiting on @AnonymousWalker)


fetcher-web/src/main/kotlin/org/bibletranslationtools/fetcher/web/controllers/BookController.kt line 81 at r1 (raw file):

Previously, AnonymousWalker (Tony) wrote…

Yes, #196

ok, that works!

Copy link

@AnonymousWalker AnonymousWalker merged commit 17680cd into audiobieldev.walink.org May 16, 2024
6 of 7 checks passed
@mXaln mXaln deleted the mm-hl-support-refactor branch May 17, 2024 12:42
@AnonymousWalker AnonymousWalker restored the mm-hl-support-refactor branch May 21, 2024 17:14
@mXaln mXaln deleted the mm-hl-support-refactor branch May 23, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants