microsoftgraph / microsoftgraph/msgraph-beta-sdk-php

Cannot request events delta without startDateTime

Đang mở
#321 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.

dependency:metadata ToTriage type:bug
Ngôn ngữ chính
PHP
Star
13
Fork
8
Merge trung bình
14 giờ 58 phút
Pull request đã merge (30 ngày)
3

Mô tả

Describe the bug

Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.

Expected behavior

When performing a normal call without any optional param to get a full delta, no error should append.

How to reproduce
$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
    new DeltaRequestBuilderGetRequestConfiguration([
        'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
    ])
)
->wait()
SDK Version

2.8.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
{
    "error": {
        "code": "ErrorInvalidParameter",
        "message": "The value '' of parameter 'StartDateTime' is invalid."
    }
}
Configuration

No response

Other information

No response

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu với src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php và so sánh template URL của nó với tài liệu Event delta được liên kết trong issue. Tái tạo yêu cầu delta của lịch mà không có startDateTime; hoàn tất khi yêu cầu thành công mà không gặp lỗi StartDateTime không hợp lệ, trong khi các yêu cầu cung cấp tham số này vẫn hoạt động.

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

Đánh giá

Công nghệ
php
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
48/100

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.