Skip to content

Commit c434cbc

Browse files
committed
1 parent 52dd46d commit c434cbc

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

clients/python/CHANGELOG.md

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

20+
# v3.1.0
21+
22+
## New Features:
23+
24+
- Add `map_index` filter to TaskInstance API queries ([#55614](https://github.com/apache/airflow/pull/55614))
25+
- Add `has_import_errors` filter to Core API GET /dags endpoint ([#54563](https://github.com/apache/airflow/pull/54563))
26+
- Add `dag_version` filter to get_dag_runs endpoint ([#54882](https://github.com/apache/airflow/pull/54882))
27+
- Implement pattern search for event log endpoint ([#55114](https://github.com/apache/airflow/pull/55114))
28+
- Add asset-based filtering support to DAG API endpoint ([#54263](https://github.com/apache/airflow/pull/54263))
29+
- Add Greater Than and Less Than range filters to DagRuns and Task Instance list ([#54302](https://github.com/apache/airflow/pull/54302))
30+
- Add `try_number` as filter to task instances ([#54695](https://github.com/apache/airflow/pull/54695))
31+
- Add filters to Browse XComs endpoint ([#54049](https://github.com/apache/airflow/pull/54049))
32+
- Add Filtering by DAG Bundle Name and Version to API routes ([#54004](https://github.com/apache/airflow/pull/54004))
33+
- Add search filter for DAG runs by triggering user name ([#53652](https://github.com/apache/airflow/pull/53652))
34+
- Enable multi sorting (AIP-84) ([#53408](https://github.com/apache/airflow/pull/53408))
35+
- Add `run_on_latest_version` support for backfill and clear operations ([#52177](https://github.com/apache/airflow/pull/52177))
36+
- Add `run_id_pattern` search for Dag Run API ([#52437](https://github.com/apache/airflow/pull/52437))
37+
- Add tracking of triggering user to Dag runs ([#51738](https://github.com/apache/airflow/pull/51738))
38+
- Expose DAG parsing duration in the API ([#54752](https://github.com/apache/airflow/pull/54752))
39+
40+
## New API Endpoints:
41+
42+
- Add Human-in-the-Loop (HITL) endpoints for approval workflows ([#52868](https://github.com/apache/airflow/pull/52868), [#53373](https://github.com/apache/airflow/pull/53373), [#53376](https://github.com/apache/airflow/pull/53376), [#53885](https://github.com/apache/airflow/pull/53885), [#53923](https://github.com/apache/airflow/pull/53923), [#54308](https://github.com/apache/airflow/pull/54308), [#54310](https://github.com/apache/airflow/pull/54310), [#54723](https://github.com/apache/airflow/pull/54723), [#54773](https://github.com/apache/airflow/pull/54773), [#55019](https://github.com/apache/airflow/pull/55019), [#55463](https://github.com/apache/airflow/pull/55463), [#55525](https://github.com/apache/airflow/pull/55525), [#55535](https://github.com/apache/airflow/pull/55535), [#55603](https://github.com/apache/airflow/pull/55603), [#55776](https://github.com/apache/airflow/pull/55776))
43+
- Add endpoint to watch dag run until finish ([#51920](https://github.com/apache/airflow/pull/51920))
44+
- Add TI bulk actions endpoint ([#50443](https://github.com/apache/airflow/pull/50443))
45+
- Add Keycloak Refresh Token Endpoint ([#51657](https://github.com/apache/airflow/pull/51657))
46+
47+
## Deprecations:
48+
49+
- Mark `DagDetailsResponse.concurrency` as deprecated ([#55150](https://github.com/apache/airflow/pull/55150))
50+
51+
## Bug Fixes:
52+
53+
- Fix dag import error modal pagination ([#55719](https://github.com/apache/airflow/pull/55719))
54+
55+
2056
# v3.0.2
2157

2258
## Major changes:

clients/python/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.2
1+
3.1.0

dev/breeze/src/airflow_breeze/commands/release_management_commands.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,10 +2554,8 @@ class ProviderPRInfo(NamedTuple):
25542554
# Retrieve linked issues
25552555
if pr_number in pull_requests and pull_requests[pr_number].body:
25562556
body = " ".join(pull_requests[pr_number].body.splitlines())
2557-
body_without_code_blocks = remove_code_blocks(body)
25582557
linked_issue_numbers = {
2559-
int(issue_match.group(1))
2560-
for issue_match in ISSUE_MATCH_IN_BODY.finditer(body_without_code_blocks)
2558+
int(issue_match.group(1)) for issue_match in ISSUE_MATCH_IN_BODY.finditer(body)
25612559
}
25622560
for linked_issue_number in linked_issue_numbers:
25632561
try:
@@ -3205,7 +3203,7 @@ def split_version_and_suffix(file_name: str, suffix: str) -> VersionedFile:
32053203
]
32063204

32073205

3208-
def _get_python_client_version(version_suffix):
3206+
def _get_python_client_version(version_suffix=None):
32093207
from packaging.version import Version
32103208

32113209
python_client_version = VERSION_FILE.read_text().strip()
@@ -3219,7 +3217,8 @@ def _get_python_client_version(version_suffix):
32193217
f"suffix in the version ({version})[/]"
32203218
)
32213219
sys.exit(1)
3222-
return version.base_version + version_suffix
3220+
return version.base_version + version_suffix
3221+
return python_client_version
32233222

32243223

32253224
def _generate_python_client_sources(python_client_version: str) -> None:
@@ -3438,7 +3437,6 @@ def fix_anyof_null_and_required(obj):
34383437
for scheme in security_schemes.split(","):
34393438
security.append({scheme: []})
34403439
openapi_yaml["security"] = security
3441-
python_client_version = _get_python_client_version(version_suffix)
34423440
TARGET_API_YAML_PATH.write_text(yaml.dump(openapi_yaml))
34433441

34443442
def patch_trigger_dag_run_post_body():
@@ -3492,7 +3490,7 @@ def visit_FunctionDef(self, node: ast.FunctionDef) -> ast.FunctionDef:
34923490
ast.fix_missing_locations(tree)
34933491
TRIGGER_MODEL_PATH.write_text(ast.unparse(tree), encoding="utf-8")
34943492

3495-
_generate_python_client_sources(python_client_version=python_client_version)
3493+
_generate_python_client_sources(python_client_version=_get_python_client_version())
34963494

34973495
# Call this after codegen and before packaging
34983496
try:

0 commit comments

Comments
 (0)