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

[Onboarding + Enrollments] Canonical course-format validator only

Đang mở Phù hợp với người mới
#7 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
91/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter, supabase
Lĩnh vực
backend

Hướng nghiên cứu

Đọc ràng buộc cơ sở dữ liệu trong supabase/schemas/dogpack/tables/enrollments.sql và làm theo hướng dẫn thiết lập tại docs/getting-started/first-contribution.md. Thêm các hàm Dart thuần vào lib/onboarding/course_code.dart và kiểm thử các trường hợp được liệt kê cùng tính hợp lệ của đầu ra trong test/course_code_test.dart. Chạy flutter test test/course_code_test.dart; hoàn thành khi các trường hợp examples và các trường hợp bổ sung đều vượt qua, đồng thời mọi giá trị đã chuẩn hóa đều thỏa mãn biểu thức chính quy của cơ sở dữ liệu.

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

Mô tả

good first issue onboarding

What to build

Check whether a course code already matches DogPack’s required format, such as CSCI 1301. This helper only accepts or rejects the input; the following task handles friendlier typed spellings.

Files

Steps

  1. Add isValidCourseCode(input) using RegExp(r"^[A-Z]{4} [0-9]{4}[A-Z]?$").firstMatch(input).
  2. Accept only when match.start is 0 and match.end equals input.length. This prevents a trailing newline from being accepted as a complete match.
  3. Check CSCI 1301 and CSCI 1301L; reject lowercase, a trailing newline, the wrong number of letters/digits and extra text. This function checks the standard form without changing it.

Example

CSCI 1301/CSCI 1301L accepted; lowercase, trailing newline,3 letters,5 digits,extra text rejected.

Check it works

In test/onboarding/course_code_7_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/onboarding/course_code_7_test.dart and flutter analyze.

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Ngôn ngữ chính
PLpgSQL
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 DevDogsUGA/DogPack

Tất cả issue của DevDogsUGA/DogPack

Issue tương tự

Thêm issue về Backend & API Design

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.