TV Show Project Level 300: Swap back to your old codebase
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
Hướng nghiên cứu
Bắt đầu với episodes.js và luồng getAllEpisodes hiện có, sau đó xem lại cách website sử dụng dữ liệu tập phim cho việc tìm kiếm, cuộn và lựa chọn. Đọc tài liệu API danh sách tập phim của TVMaze và kiểm thử các trạng thái đang tải và lỗi mô phỏng. Được xem là hoàn thành khi episodes.js đã được xóa, URL được lấy một lần cho mỗi lượt truy cập và người dùng nhận được phản hồi hiển thị trong khi chờ hoặc khi xảy ra lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 0
- Fork
- 276
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeYourFuture/Module-Data-Flows
-
Complete the ITP end survey Đang mở🏕 Priority Mandatory 📅 Sprint 3 Core Module-Data-Flows Submit:None 🦔 Size Tiny
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Prepare a demo for Q&A workshop Đang mở🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 Core Module-Data-Flows Submit:None
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 3 Core Module-Data-Flows Submit:None
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 2 Core Module-Data-Flows Submit:None
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Sprint 1 Core Module-Data-Flows Submit:None
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 35/100
Tất cả issue của CodeYourFuture/Module-Data-Flows
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100