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

Refactoring - `get_duration`, `get_due`, `get_dtend` to be obsoleted

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

Maintainer thường phản hồi trong vòng 1 ngày

@tobixen đang làm issue này rồi.

Từ ngày 25/5/2025.

  • #498 của @tobixen — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Locate the get_duration, get_due, and get_dtend methods in the caldav codebase, understand how they currently compute values, and refactor them to delegate to the corresponding icalendar properties while adding deprecation warnings. Run the existing test suite to confirm behavior remains correct after the changes.

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

Mô tả

deprecation

The duality between duration and dtend/due is IMO an annoying misfeature of the icalendar standard, so I made some helper methods for dealing with this - but it doesn't belong to the caldav library, it belongs to the icalendar library. Now we have the properties duration, dtend and dtstart available in the icalendar class. We should rewrite the current logic to wrap the icalendar properties and make some deprecation warnings.

Ngôn ngữ chính
Python
Star
412
Fork
113
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
41

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 python-caldav/caldav

Tất cả issue của python-caldav/caldav

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.