Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

full-day workshop: Include the page data owner in the filter exercise

Đang mở
#265 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
flask, python
Lĩnh vực
documentation, testing

Hướng nghiên cứu

Bắt đầu với hướng dẫn workshop Step 6 và kiểm tra app/server/app.py, app/server/test_app.py, app/client/src/pages/index.astro và app/client/src/components/DogList.astro. Cập nhật các yêu cầu về ngữ cảnh và hành vi đã được quy định để việc lọc được kết nối với API, việc xóa bộ lọc và xử lý trang được nêu rõ, sau đó chạy các unit test đã cập nhật để xác minh việc lọc endpoint cho các trường hợp chỉ theo giống, chỉ theo tình trạng sẵn có và kết hợp cả hai.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

priority: P1

Problem

Step 6 says filtering requires the Flask backend, tests, and Astro frontend, but tells learners to supply only:

  • app/server/app.py
  • app/server/test_app.py
  • app/client/src/components/DogList.astro

app/client/src/pages/index.astro owns the /api/dogs request, reads URL query parameters, and renders pagination. DogList.astro only renders the dogs prop. Omitting the page owner encourages a partial implementation that cannot reliably connect controls to server-side query parameters or preserve pagination behavior.

Suggested change

Include index.astro in the prescribed context and add implementation-agnostic behavior checks.

Acceptance criteria

  • Step 6 includes app/client/src/pages/index.astro in Copilot context.
  • The prompt requirements describe how control changes reach the API.
  • Breed-only, availability-only, and combined filtering are validated.
  • Clearing filters restores the full list.
  • Filter changes handle the current page deliberately, such as resetting to page 1.
  • Updated unit tests prove endpoint filtering rather than only the original response shape.
Ngôn ngữ chính
Python
Star
80
Fork
168
Merge trung bình
31 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github-samples/pets-workshop

Tất cả issue của github-samples/pets-workshop

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.