microsoft / microsoft/azure-devops-python-api
"filter_contains" argument causes get_refs to find no matches
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 684
- Fork
- 218
- Merge trung bình
- 8 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Hi,
I have a piece of code that uses get_refs with a prefix filter argument. I observed the results and then I put in filter_contains a character that I can see exists in all the refs returned from the first call to get_refs. The call with the filter_contains returns 0 refs.
refs = self._connection.clients_v5_1.get_git_client().get_refs(repository_id = repo_id,
project = project_id,
filter = prefix_filter,
peel_tags = True,
include_statuses = True,
latest_statuses_only = True,
top = 100,
continuation_token = continuation_token)
In this example, all relevant ref name field contain the character 'V'. The call:
refs = self._connection.clients_v5_1.get_git_client().get_refs(repository_id = repo_id,
project = project_id,
filter = prefix_filter,
peel_tags = True,
include_statuses = True,
latest_statuses_only = True,
top = 100,
continuation_token = continuation_token,
filter_contains = "V")
results in refs containing 0 results, and the call returns almost immediately, as opposed to taking several seconds in the first call.
Thanks.
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.
Hướng nghiên cứu
Bắt đầu từ entry point get_refs của client Python và kiểm tra cách các đối số filter và filter_contains được gửi đi. Tái hiện trường hợp đã được báo cáo với các refs chứa 'V', sau đó xác minh rằng filter_contains trả về các refs khớp đó thay vì một kết quả rỗ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ệ
- python
- Lĩnh vực
- api, devops
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100