Skip to content

Conversation

@molcay
Copy link
Contributor

@molcay molcay commented Nov 18, 2025

The copy button for the run config on the DAG run details page was not working properly. When you click it only copy the last config run.
After doing some research on this, I found out that there is a problem with the hook: useClipboard and I found an issue in their repository about a work around: chakra-ui/chakra-ui#6759.

The possible solutions are like the following:

  1. Upgrade the version (I did not test this, because I am not sure if it will be easy with all dependency tree)
  2. Apply the workaround (I tested this, and it looks like it is working)

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@bbovenzi
Copy link
Contributor

Actually let's update our chakra version. We should keep it up to date anyway

@molcay
Copy link
Contributor Author

molcay commented Nov 20, 2025

Hi @bbovenzi,

I was hesitant to try the version upgrade. I am not sure but I think we don't have any automated UI tests, right?
If I upgrade the version how can I check the upgrade is not breaking any other places?

Also, which version to upgrade? Currently;

  • we have the "@chakra-ui/react": "2.4.2" dependency which has the "@chakra-ui/hooks" "2.1.2" dependency

To upgrade I will change the @chakra-ui/react version but which one? the latest version for the v 2.x is 2.10.9. They also have v3.x but I think upgrading to the major version is a bit risky.
Which version would be our target? the latest version from the 2? or upgrade enough to fix this issue?

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per our policy the support period for bugfixes in AF2 has passed.

https://lists.apache.org/thread/hhdrjwxxlcz8jt0519tyqysr547oc9no

This is a minor bug fix and we are focusing or efforts on AF3. (or security related fixes for AF2)

Closing this one.

Feel free to re-open if I misunderstood something.

kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 2, 2025
Cherry-pick PR #58433 from Community:
Fix the "Copy" button for the run config on DAG run details (#58433)
[b/449170849]
The community PR is not merged because according to the policy, the community won't accept new bug fixes for Airflow 2. For reference, you can check: apache/airflow#58433 (review)

Change-Id: Ifac83d7b8af9cc23c1e9a091e841f616a1551689
GitOrigin-RevId: 62ee6ace0b060407be2df3737398d4b4d788cf10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants