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

User feed serving #32

Open
3 tasks done
komal-sai-yral opened this issue Jul 11, 2024 · 11 comments
Open
3 tasks done

User feed serving #32

komal-sai-yral opened this issue Jul 11, 2024 · 11 comments
Assignees

Comments

@komal-sai-yral
Copy link
Contributor

komal-sai-yral commented Jul 11, 2024

  1. on chain (2 days)
    1. apis to store view history and successful plays
    2. logic to refresh view history and successful plays
// Format for data in canisters
pub struct WatchHistoryItem {
    post_id: u64,
    publisher_canister_id: Principal,
    viewed_at: SystemTime,
    cf_video_id: String,
    percentage_watched: f32,
}

pub struct SuccessHistoryItem {
    post_id: u64,
    publisher_canister_id: Principal,
    interacted_at: SystemTime,
    cf_video_id: String,
}

  1. Off chain agent (2-3 days)

    1. logic to push success and view data onchain
    2. push to upstash queue
  2. FE (5 days)

    1. Fetch next list of videos after N (?) watches
    2. Fallback to calling postcache if above fails
    3. proper testing
@komal-sai-yral komal-sai-yral self-assigned this Jul 11, 2024
@harshita-srivastava-yral
Copy link

harshita-srivastava-yral commented Jul 31, 2024

Next step:

  • Abhishek's cannister update to go today and Komal's to go tomorrow.
  • Komal has started working on frontend side.

@harshita-srivastava-yral
  • Monday EOD we should have a staging link for testing

@Natasha-GB
Copy link

  • Logic on FE completed

@Natasha-GB
Copy link

  • hotornot.wtf changes need to be incorporated
  • Conditional logic based on env var (separate task) @Natasha-GB
  • Use feature flag for an isolated module/release via A/B testing

@Natasha-GB
Copy link

Natasha-GB commented Aug 13, 2024

  • Timestamp metadata to be worked on

@Natasha-GB
Copy link

  • Timestamp added already

@harshita-srivastava-yral
  • Auth needs to be changed
  • By tomorrow EOD we should be able to merge it

@Natasha-GB
Copy link

  • FE changes done, PR will be raised today
  • Should be able to deploy tomorrow

@harshita-srivastava-yral
Copy link

harshita-srivastava-yral commented Aug 23, 2024

  • ML feed has been merged into main
  • Preview link to be shared with product to understand the user experience of HOT or NOT app

@harshita-srivastava-yral
  • We are good to deploy the ML feed on HOT or NOT wtf.
  • We will need to plan for traffic on HOT or NOT.wtf
  • Event segregation for YRAL and HON.wtf is to be done

@Natasha-GB
Copy link

  • Hotornot.wtf connection done
  • Event segregation to be worked on

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

No branches or pull requests

3 participants