Skip to content

Issue fix 54200 3.0.3 v#54898

Closed
shreyaskj-0710 wants to merge 604 commits intoapache:mainfrom
shreyaskj-0710:Issue_fix_54200_3.0.3_v
Closed

Issue fix 54200 3.0.3 v#54898
shreyaskj-0710 wants to merge 604 commits intoapache:mainfrom
shreyaskj-0710:Issue_fix_54200_3.0.3_v

Conversation

@shreyaskj-0710
Copy link
Copy Markdown
Contributor

Fixes #54200

Description
Previously, both localStorage and cookies were used to manage the current session for the JWT token. When accessing
multiple Airflow instances from the same browser, this caused an Invalid token error.

To resolve this, I replaced the use of localStorage and cookies with sessionStorage.

Pros
Allows users to log in to multiple Airflow instances from the same browser without token conflicts.

Cons
When opening a new browser tab for an Airflow instance, users will need to re-enter their credentials.

amoghrajesh and others added 30 commits June 4, 2025 01:30
…0979)

Compat tests take quite a bit longer to run, so we need to increase
the timeout.
(cherry picked from commit e471a3a)
Remove release notes for releases >2.5 years. Users can always check versioned docs for it.

(cherry picked from commit 97913b0)
Follow-up of apache#50300 for running a single task.

(cherry picked from commit 3a9858e)
…he#50962) (apache#50967)

(cherry picked from commit dbe707c)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
…th schedule. (apache#50969) (apache#50970)

(cherry picked from commit f8c8200)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
…pache#50947) (apache#50954)

(cherry picked from commit 5796536)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
(cherry picked from commit d80a711)


https: //github.com/astral-sh/uv/releases/tag/0.7.7

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
…nd (apache#50895) (apache#50998)

(cherry picked from commit 98f9181)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
…apache#50834) (apache#50988)

(cherry picked from commit bca010b)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
I changed it to `no` as I had to change 100s of tests when porting over task.test & ti.run

(cherry picked from commit 341ab09)
…1029) (apache#51030)

Image verification runs in parallell, and whne they are using same
venv with `uv run` they can override each other's directories while
installing packaegs.
(cherry picked from commit 130cd46)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
…a` example (apache#50768) (apache#51000)

This PR fixes an inconsistency in the `assets.rst` documentation example.
The sample code used a plain string for the `alias` argument in `Metadata()`, which in reality raises:

> TypeError: Key should be either an asset or an asset alias, not <class 'str'>

This change updates the example to use a typed `AssetAlias("my-task-outputs")`, matching the SDK API and avoiding that error.
(cherry picked from commit ed67114)

Co-authored-by: QBidolet <52286815+QBidolet@users.noreply.github.com>
(cherry picked from commit 958f77f)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
…he#51044)

* Fix version check from Pypi, requires user agent else raises HTTP 406

* Fix version check from Pypi, requires user agent else raises HTTP 406, also other cases in codebase
(cherry picked from commit eb7c346)
(cherry picked from commit 422388f)

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
…che#51051) (apache#51053)

(cherry picked from commit e7a90d6)

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
…om access is needed (apache#50641) (apache#50950)

* fix(task_instances): handle upstream_mapped_index when xcom access is needed

* style(expand_input): fix expand_input and SchedulerExpandInput types

* test(task_instances): add test_dynamic_task_mapping_with_parse_time_value

* test(task_instance): add test_dynamic_task_mapping_with_xcom

* style: import typing

* style: move the SchedulerExpandInput into type checking block

* Revert "style: move the SchedulerExpandInput into type checking block"

This reverts commit c2c87ca.
(cherry picked from commit 5458e7e)

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
…pache#51057) (apache#51111)

(cherry picked from commit 1a34a42)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
* Fix bulk api annotation

* Small improvement

---------


(cherry picked from commit 3208bbb)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
(cherry picked from commit 8bee3fb)

Co-authored-by: Guan Ming(Wesley) Chiu <105915352+guan404ming@users.noreply.github.com>
…he#51148)

(cherry picked from commit f360bc8)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
…) (apache#51172)

Previously it was missing dag_id filter, but joining on start date would still be problematic. In this PR I refactor the query a bit so that all joins are guaranteed 1-1.  To get "latest" DagRun I sort by the DagRun.id column.  This is a simplifying assumption that would be more performant than sorting by start_date, since there could be more than 1 dag run with a given start date.
(cherry picked from commit b994bb2)

Co-authored-by: Daniel Standish <15932138+dstandish@users.noreply.github.com>
* Add Execution API versioning docs for Contributors (apache#50539)

Added our versioning strategy for Task Execution API in Contributing Guide.

(cherry picked from commit 188e225)

* Refine the execution api versioning doc to reflect reality (apache#51152)

(cherry picked from commit f7ceec4)

---------

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
… as flaky (apache#51193) (apache#51198)

Fixes apache#50474 (hopefully)
(cherry picked from commit 066f978)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
) (apache#51199)

When using `dag.test()` with deferred tasks, tasks that complete their trigger execution were incorrectly being set to `SUCCESS` state instead of `SCHEDULED` state. This prevented task resumption!

Dag used to test:

```python
from datetime import datetime, timedelta, timezone
from typing import Any

import pendulum

from airflow.providers.standard.triggers.temporal import DateTimeTrigger
from airflow.sdk import Context, task, BaseOperator, DAG

class DummyOperator(BaseOperator):

    def execute(self, context: Context):
        self.defer(
            trigger=DateTimeTrigger(
                moment=datetime.now(timezone.utc) + timedelta(seconds=2),
            ),
            method_name="execute_complet",
        )

    def execute_complet(self, context: Context, event: Any = None):
        assert event is not None
        return "test"

@task
def dummy_task(param):
    print("DEBUG")
    assert param == "test", "Parameter should be 'test'"

with DAG(
    dag_id="example_debug",
    start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
) as dag:
    task1 = DummyOperator(task_id="task1")
    task2 = dummy_task(task1.output)
    task1 >> task2

if __name__ == "__main__":
    dag.test()
```
(cherry picked from commit 1b83f71)

Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
…ckage (apache#51192) (apache#51220)

As we are working on a longer-term solution for example-dags, the
short-term one is to bring the standard example_dags back to the
airflow-core via symbolic link to the standard package folder.

This makes the dags to be copied to the airflow-core from the latest
main version (but those dags don't change) while not requiring to
duplicate the dags and keep them in standard provider where the
documentation for them is kept.
(cherry picked from commit 46908a1)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
@potiuk
Copy link
Copy Markdown
Member

potiuk commented Aug 25, 2025

This change has many unrelated commits and the name is just wrong. If you want to submit a change - make sure to base it on top of main and choose a good name for the PR

@shreyaskj-0710 shreyaskj-0710 deleted the Issue_fix_54200_3.0.3_v branch August 25, 2025 11:40
@shreyaskj-0710
Copy link
Copy Markdown
Contributor Author

Hi @potiuk ,

Can you please check PR - PR-54914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot login multiple airflow instances hosted in same domain at same time