Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fetch a list of podcasts with their meta-information #39

Closed
illright opened this issue Feb 7, 2022 · 3 comments · Fixed by #54
Closed

Fetch a list of podcasts with their meta-information #39

illright opened this issue Feb 7, 2022 · 3 comments · Fixed by #54
Assignees
Milestone

Comments

@illright
Copy link
Collaborator

illright commented Feb 7, 2022

Integrate with the Supabase backend to fetch a list of all podcasts with all of their meta information and the URL to the audio file. For now, just dump it as JSON somewhere.

Acceptance criteria:

  • Every podcast from Supabase is fetched along with all of its meta information (we'll filter it out later)
  • No private tokens are leaked in the client build
  • Fetching works on both the main deployment and the preview deployments (on subdomains of cast-iu.pages.dev)
  • The data is fetched in the format of proposed TS interfaces

Interfaces:

interface Podcast {
  id: number;
  title: string;
  author: string;
  coverUrl: string;
  episodes: Episode[];
}

interface Episode {
  id: number;
  title: string;
  duration: number;
  audioUrl: string;
  favorite?: boolean;  // omit this field for now
}
@illright illright added this to the Sprint 2 milestone Feb 7, 2022
@illright illright modified the milestones: Sprint 2, Sprint 3 Feb 14, 2022
@illright illright assigned VanishMax and unassigned alkaitagi Feb 17, 2022
@illright
Copy link
Collaborator Author

I think it will be best to use GraphQL to be free about the resulting data format

@aabounegm
Copy link
Owner

Are the author and coverUrl supposed to be required/non-nullable? In #41 it seems from the screenshot that they can be null

@illright
Copy link
Collaborator Author

Yeah, they should be non-nullable. @VanishMax, could you please ensure they are?

@VanishMax VanishMax linked a pull request Feb 18, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants