googleapis / googleapis/google-cloud-python

Remove setup_request_id fallback in generated packages when google-api-core >= 2.26.0

Đang mở
#17,813 0 bình luận 0 reaction 1 người được giao Được @hebaalazzeh nhận Xem trên GitHub
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

## Overview

During the GAPIC request-id deduplication effort (centralizing request ID generation into `google.api_core.gapic_v1.requests.setup_request_id`), a backward-compatibility fallback module (`_compat.py`) was introduced in generated client packages to maintain compatibility with older versions of `google-api-core`.

Once `google-api-core >= 2.26.0` (or the version containing `setup_request_id`) becomes the minimum required version across all generated client packages, this fallback can be removed.

## Tasks

- [ ] Remove `_compat.py.j2` template from `gapic-generator-python`.
- [ ] Update `client.py.j2` and `async_client.py.j2` to import `setup_request_id` directly from `google.api_core.gapic_v1.requests`.
- [ ] Remove `_compat.py` files from `tests/integration/goldens/`.

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

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

Đánh giá

Issue này chưa được đánh giá.

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.