[Bug] - DeprecationWarning on instantiation of Client
Đá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
- 55/100
Hướng nghiên cứu
Start by reviewing the deprecation implementation referenced in issue #107 and the Client initialization path that produces the AnalyticsRulesV1 warning. Reproduce the provided Client(config) example, then verify that normal instantiation no longer emits this warning while the intended deprecation behavior remains covered.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi there,
It looks like based on how the deprecations were implemented in #107 results in a DeprecationWarning on instantiating a client, e.g:
>>> config = {
... "api_key": "your_api_key",
... "nodes": [
... {"host": "localhost", "port": "8108", "protocol": "http"}
... ],
... "connection_timeout_seconds": 2,
... }
>>> client = Client(config)
Deprecation warning: AnalyticsRulesV1 is deprecated on v30+. Use client.analytics instead.
It would be great for this not to happen, since it fills up logs with noise.
- Ngôn ngữ chính
- Python
- Star
- 247
- Fork
- 66
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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.
Issue khác của typesense/typesense-python
-
IPv6 node addresses produce an invalid request URLCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
typesense/typesense-python#154 ·
-
`MultiSearchResponse` type does not account for union search response shapeCó thể đã có người làm @tharropoulos đã nhận 171 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`Có thể đã có người làm @tharropoulos đã nhận 244 ngày trước. Đang mở
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 68/100
typesense/typesense-python#124 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
typesense/typesense-python#100 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
typesense/typesense-python#122 · 3 bình luận ·
Tất cả issue của typesense/typesense-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
gramaziokohler/compas_timber#870 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
autowarefoundation/autoware_carla_scenario#500 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue priority: low size: XS testing
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
cubrid-lab/cubrid-mcp-server#385 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue priority: low size: S testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100