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 seeder for Hanuman Chalisa #45

Merged
merged 10 commits into from
Mar 8, 2024

Conversation

rtshkmr
Copy link
Member

@rtshkmr rtshkmr commented Feb 25, 2024

Status: Completed

Key things done & learnings:

  1. seeder functions cleared up, organised
  2. learnt quite a bit about the querying functions. specifically, on the following cases:
    • preload within the query vs repo.preload is different
    • translations changeset, there was the learning where a bunch of unnecessary assocs were being done because of hardcoded values insertion into the changeset. the learning is to keep assocs specific to the source type that is being used (e.g. don't associate attributes related to chap when the changeset for that translation only relates to verse)

Also:
- cleans up the pattern for adding new seeders
- groups seed functions within SourceSeeders
@rtshkmr rtshkmr self-assigned this Feb 25, 2024
rtshkmr and others added 5 commits February 24, 2024 22:09
There's an odd behaviour with translations.

tldr;

1. I create chapter properly
2. I create translation for chapter properly
3. i query chapter, then preload the translations for the chap, then i get both the one I actually inserted + the gita chap 1 translation
Observations:
1. Reminder about the case where if the user has multiple browser tabs
open pointing to our application, then the handshake will get messed up,
the player views will crash -- it's even more apparent when there are
more than one voices

2. the player still does the pre-load behaviour, where the playback
continues until the player is interacted with, when I navigate from one
chapter to another. Steps:
  1. play hanuman chalisa chapter's audio
  2. instead of a refresh, navigate to gita::chapter1
  3. observe that the playback for chalisa continues (but the player is
  actually in a !playing? state [as seen by the play button being displayed])
  4. observe that the new handshake actually is handled properly
  5. the audio player only starts playing the gita chapter's audio once
  the user interacts with the player and clicks on the play button
@rtshkmr rtshkmr force-pushed the chore/add-hanuman-chalisa-seeder branch from c60957a to b008965 Compare February 25, 2024 18:10
Conflicts:
- lib/vyasa/written.ex: minor, kept the sensible one
This commit finally made me feel that I understood the lang & the
framework to a working-degree of familiarity. Really happy with myself.

The seeking by clicking works well !!!
Copy link
Contributor

@ks0m1c ks0m1c left a comment

Choose a reason for hiding this comment

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

Chalisa LGTM I will handle the prod chores

lib/vyasa/written.ex Outdated Show resolved Hide resolved
lib/vyasa_web/live/source_live/chapter/index.html.heex Outdated Show resolved Hide resolved
ks0m1c and others added 2 commits March 3, 2024 11:01
@ks0m1c ks0m1c merged commit b4b59cd into feature/hanuman Mar 8, 2024
@ks0m1c ks0m1c deleted the chore/add-hanuman-chalisa-seeder branch March 8, 2024 01:14
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