TV Show Project Level 300: Swap back to your old codebase
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
从 episodes.js 和现有的 getAllEpisodes 流程开始,然后检查网站如何使用剧集数据进行搜索、滚动和选择。阅读 TVMaze 剧集列表 API 文档,并测试加载状态和模拟错误状态。完成的标准是移除 episodes.js、每次访问只获取一次 URL,并让用户在等待或发生错误时看到明确的反馈。
由索引模型根据 Issue 内容生成。
描述
Level 300
For level 300, you should switch back to your original codebase.
You should have reviewed and merged your partner's level 200 changes through a PR to your own repo.
Remember to pull the latest changes onto your local machine.
Once again, compare their implementation to yours. Think:
- How is it different?
- What do you prefer about your implementation?
- What do you prefer about their implementation?
- What did you learn that you didn't know before?
Have a discussion about your answers to these questions. In class, together, give a 3 minute talk about your conclusions.
Refactoring
Like with level 200, feel free to change anything in your codebase which you think will make it easier to work with, or to build new features.
Make a branch and pull request for yourself, and then have your partner review, making sure they understand the changes made.
Adding new functionality
Level 300 is about getting rid of our static data from episodes.js, and instead using an API.
Requirements
- You must delete the
episodes.jsfile from your repository. - Your website must still work the same, but by using a
fetchrequest to https://api.tvmaze.com/shows/82/episodes. This URL should serve the exact same content as was returned bygetAllEpisodesinepisodes.js. - You must fetch this URL only once per visit to your website. You should not re-fetch when someone searches, scrolls, or selects an episode from the drop-down.
- If you don't have data yet, you should show something to tell the user to wait for the data.
- If an error occurred loading the data, notify the user.
- Note: real users don't look in the console -
console.logorconsole.errorare not sufficient for this requirement. - You will need to simulate an error to test this out yourself.
Documentation
You can see that this endpoint has been documented here: https://www.tvmaze.com/api#show-episode-list
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 276
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeYourFuture/Module-Data-Flows 的其他 Issue
-
🏕 Priority Mandatory 📅 Sprint 3 Core Module-Data-Flows Submit:None 🦔 Size Tiny
难度 1/5 1 小时以内 新手友好度 85/100
-
🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 Core Module-Data-Flows Submit:None
难度 1/5 1 小时以内 新手友好度 72/100
-
📅 Sprint 1 📅 Sprint 2 📅 Sprint 3 Optional Recurring Submit:None
难度 1/5 1 小时以内 新手友好度 25/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 3 Core Module-Data-Flows Submit:None
难度 2/5 1-3 小时 新手友好度 35/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 2 Core Module-Data-Flows Submit:None
难度 2/5 1-3 小时 新手友好度 35/100
查看 CodeYourFuture/Module-Data-Flows 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
Issue-Bug
难度 2/5 1-3 小时 新手友好度 68/100
sugarlabs/musicblocks#8924 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled 未关闭customer-eng status: needs triage
难度 2/5 1-3 小时 新手友好度 84/100