Skip to content

Commit 133e813

Browse files
committed
Update Python Client to 3.2.2rc1
1 parent 804a8e9 commit 133e813

96 files changed

Lines changed: 3104 additions & 707 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@
1717
under the License.
1818
-->
1919

20+
# v3.2.2
21+
22+
## Improvements:
23+
24+
- UI: Filter task instances by rendered map index (#66008) (#67163)
25+
- UI: Enable queue up new tasks (#63484) (#66869)
26+
- Pass ``try_number`` to extra links API (#65661) (#66171)
27+
- Update search parameters to better leverage DB indexes (#64963) (#65964)
28+
- Add cursor-based pagination for ``get_dag_runs`` endpoint (#65604) (#65746)
29+
- Support ordering ``XCom`` entries in the REST API and UI (#65418) (#65600)
30+
- UI: Add Dag runs filters for Consuming Asset (#63624) (#65306)
31+
- Align Dag capitalization from "DAG" to "Dag" in ``core_api`` (#66211) (#66304)
32+
33+
## Bug Fixes:
34+
35+
- Fix backfill params not overriding existing Dag run conf (#64939) (#65599)
36+
- Fix ``PATCH /dags`` pagination bug and document wildcard ``dag_id_pattern`` (#65309)
2037

2138
# v3.2.1
2239

airflow_client/client/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "3.2.1"
17+
__version__ = "3.2.2"
1818

1919
# Define package exports
2020
__all__ = [
@@ -91,6 +91,7 @@
9191
"BulkUpdateActionConnectionBody",
9292
"BulkUpdateActionPoolBody",
9393
"BulkUpdateActionVariableBody",
94+
"ClearTaskInstanceCollectionResponse",
9495
"ClearTaskInstancesBody",
9596
"ClearTaskInstancesBodyTaskIdsInner",
9697
"Config",
@@ -158,6 +159,7 @@
158159
"LastAssetEventResponse",
159160
"LocationInner",
160161
"MaterializeAssetBody",
162+
"NewTaskResponse",
161163
"PatchTaskInstanceBody",
162164
"PluginCollectionResponse",
163165
"PluginImportErrorCollectionResponse",
@@ -187,6 +189,7 @@
187189
"TaskInstanceResponse",
188190
"TaskInstanceState",
189191
"TaskInstancesBatchBody",
192+
"TaskInstancesInner",
190193
"TaskInstancesLogResponse",
191194
"TaskOutletAssetReference",
192195
"TaskResponse",
@@ -287,6 +290,7 @@
287290
from airflow_client.client.models.bulk_update_action_connection_body import BulkUpdateActionConnectionBody as BulkUpdateActionConnectionBody
288291
from airflow_client.client.models.bulk_update_action_pool_body import BulkUpdateActionPoolBody as BulkUpdateActionPoolBody
289292
from airflow_client.client.models.bulk_update_action_variable_body import BulkUpdateActionVariableBody as BulkUpdateActionVariableBody
293+
from airflow_client.client.models.clear_task_instance_collection_response import ClearTaskInstanceCollectionResponse as ClearTaskInstanceCollectionResponse
290294
from airflow_client.client.models.clear_task_instances_body import ClearTaskInstancesBody as ClearTaskInstancesBody
291295
from airflow_client.client.models.clear_task_instances_body_task_ids_inner import ClearTaskInstancesBodyTaskIdsInner as ClearTaskInstancesBodyTaskIdsInner
292296
from airflow_client.client.models.config import Config as Config
@@ -354,6 +358,7 @@
354358
from airflow_client.client.models.last_asset_event_response import LastAssetEventResponse as LastAssetEventResponse
355359
from airflow_client.client.models.location_inner import LocationInner as LocationInner
356360
from airflow_client.client.models.materialize_asset_body import MaterializeAssetBody as MaterializeAssetBody
361+
from airflow_client.client.models.new_task_response import NewTaskResponse as NewTaskResponse
357362
from airflow_client.client.models.patch_task_instance_body import PatchTaskInstanceBody as PatchTaskInstanceBody
358363
from airflow_client.client.models.plugin_collection_response import PluginCollectionResponse as PluginCollectionResponse
359364
from airflow_client.client.models.plugin_import_error_collection_response import PluginImportErrorCollectionResponse as PluginImportErrorCollectionResponse
@@ -383,6 +388,7 @@
383388
from airflow_client.client.models.task_instance_response import TaskInstanceResponse as TaskInstanceResponse
384389
from airflow_client.client.models.task_instance_state import TaskInstanceState as TaskInstanceState
385390
from airflow_client.client.models.task_instances_batch_body import TaskInstancesBatchBody as TaskInstancesBatchBody
391+
from airflow_client.client.models.task_instances_inner import TaskInstancesInner as TaskInstancesInner
386392
from airflow_client.client.models.task_instances_log_response import TaskInstancesLogResponse as TaskInstancesLogResponse
387393
from airflow_client.client.models.task_outlet_asset_reference import TaskOutletAssetReference as TaskOutletAssetReference
388394
from airflow_client.client.models.task_response import TaskResponse as TaskResponse

airflow_client/client/api/asset_api.py

Lines changed: 104 additions & 36 deletions
Large diffs are not rendered by default.

airflow_client/client/api/connection_api.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,8 @@ def get_connections(
11341134
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
11351135
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
11361136
order_by: Annotated[Optional[List[StrictStr]], Field(description="Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`")] = None,
1137-
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.")] = None,
1137+
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.")] = None,
1138+
connection_id_prefix_pattern: Annotated[Optional[StrictStr], Field(description="Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.")] = None,
11381139
_request_timeout: Union[
11391140
None,
11401141
Annotated[StrictFloat, Field(gt=0)],
@@ -1158,8 +1159,10 @@ def get_connections(
11581159
:type offset: int
11591160
:param order_by: Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`
11601161
:type order_by: List[str]
1161-
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.
1162+
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.
11621163
:type connection_id_pattern: str
1164+
:param connection_id_prefix_pattern: Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.
1165+
:type connection_id_prefix_pattern: str
11631166
:param _request_timeout: timeout setting for this request. If one
11641167
number provided, it will be total request
11651168
timeout. It can also be a pair (tuple) of
@@ -1187,6 +1190,7 @@ def get_connections(
11871190
offset=offset,
11881191
order_by=order_by,
11891192
connection_id_pattern=connection_id_pattern,
1193+
connection_id_prefix_pattern=connection_id_prefix_pattern,
11901194
_request_auth=_request_auth,
11911195
_content_type=_content_type,
11921196
_headers=_headers,
@@ -1217,7 +1221,8 @@ def get_connections_with_http_info(
12171221
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
12181222
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
12191223
order_by: Annotated[Optional[List[StrictStr]], Field(description="Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`")] = None,
1220-
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.")] = None,
1224+
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.")] = None,
1225+
connection_id_prefix_pattern: Annotated[Optional[StrictStr], Field(description="Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.")] = None,
12211226
_request_timeout: Union[
12221227
None,
12231228
Annotated[StrictFloat, Field(gt=0)],
@@ -1241,8 +1246,10 @@ def get_connections_with_http_info(
12411246
:type offset: int
12421247
:param order_by: Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`
12431248
:type order_by: List[str]
1244-
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.
1249+
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.
12451250
:type connection_id_pattern: str
1251+
:param connection_id_prefix_pattern: Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.
1252+
:type connection_id_prefix_pattern: str
12461253
:param _request_timeout: timeout setting for this request. If one
12471254
number provided, it will be total request
12481255
timeout. It can also be a pair (tuple) of
@@ -1270,6 +1277,7 @@ def get_connections_with_http_info(
12701277
offset=offset,
12711278
order_by=order_by,
12721279
connection_id_pattern=connection_id_pattern,
1280+
connection_id_prefix_pattern=connection_id_prefix_pattern,
12731281
_request_auth=_request_auth,
12741282
_content_type=_content_type,
12751283
_headers=_headers,
@@ -1300,7 +1308,8 @@ def get_connections_without_preload_content(
13001308
limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
13011309
offset: Optional[Annotated[int, Field(strict=True, ge=0)]] = None,
13021310
order_by: Annotated[Optional[List[StrictStr]], Field(description="Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`")] = None,
1303-
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.")] = None,
1311+
connection_id_pattern: Annotated[Optional[StrictStr], Field(description="SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.")] = None,
1312+
connection_id_prefix_pattern: Annotated[Optional[StrictStr], Field(description="Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.")] = None,
13041313
_request_timeout: Union[
13051314
None,
13061315
Annotated[StrictFloat, Field(gt=0)],
@@ -1324,8 +1333,10 @@ def get_connections_without_preload_content(
13241333
:type offset: int
13251334
:param order_by: Attributes to order by, multi criteria sort is supported. Prefix with `-` for descending order. Supported attributes: `conn_id, conn_type, description, host, port, id, team_name, connection_id`
13261335
:type order_by: List[str]
1327-
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported.
1336+
:param connection_id_pattern: SQL LIKE expression — use `%` / `_` wildcards (e.g. `%customer_%`). or the pipe `|` operator for OR logic (e.g. `dag1 | dag2`). Regular expressions are **not** supported. **Performance note:** this full-match pattern is evaluated as ``ILIKE '%term%'`` and most of the time prevents the database from using B-tree indexes, which can be very slow on large tables. Prefer the equivalent ``connection_id_prefix_pattern`` parameter when possible.
13281337
:type connection_id_pattern: str
1338+
:param connection_id_prefix_pattern: Prefix match — returns items whose value starts with the given string (case-sensitive, index-friendly). Use the pipe `|` operator for OR logic (e.g. `dag1|dag2`). Use `~` to match all. Wildcard characters (`%`, `_`) are treated as literal characters. Trailing non-alphanumeric characters in the prefix are stripped before matching so the range scan stays index-compatible under locale-aware collations — e.g. `test_` effectively matches items starting with `test`, and `s3://` matches items starting with `s3`.
1339+
:type connection_id_prefix_pattern: str
13291340
:param _request_timeout: timeout setting for this request. If one
13301341
number provided, it will be total request
13311342
timeout. It can also be a pair (tuple) of
@@ -1353,6 +1364,7 @@ def get_connections_without_preload_content(
13531364
offset=offset,
13541365
order_by=order_by,
13551366
connection_id_pattern=connection_id_pattern,
1367+
connection_id_prefix_pattern=connection_id_prefix_pattern,
13561368
_request_auth=_request_auth,
13571369
_content_type=_content_type,
13581370
_headers=_headers,
@@ -1379,6 +1391,7 @@ def _get_connections_serialize(
13791391
offset,
13801392
order_by,
13811393
connection_id_pattern,
1394+
connection_id_prefix_pattern,
13821395
_request_auth,
13831396
_content_type,
13841397
_headers,
@@ -1418,6 +1431,10 @@ def _get_connections_serialize(
14181431

14191432
_query_params.append(('connection_id_pattern', connection_id_pattern))
14201433

1434+
if connection_id_prefix_pattern is not None:
1435+
1436+
_query_params.append(('connection_id_prefix_pattern', connection_id_prefix_pattern))
1437+
14211438
# process the header parameters
14221439
# process the form parameters
14231440
# process the body parameter

0 commit comments

Comments
 (0)