You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copying DAG ID from UI and pasting in Slack includes schedule #22320
(Yes, I know the title says Slack and it might not seem like an Airflow issue, but so far this is the only application I noticed this on. There might be others.)
PR #11503 was a fix to issue #11500 to prevent text-selection of scheduler interval when selecting DAG ID. However it does not fix pasting the text into certain applications (such as Slack), at least on a Mac.
@ryanahamilton thanks for the fix, but this is fixed in the visible sense (double clicking the DAG ID to select it will now not show the schedule interval and next run as selected in the UI), however if you copy what is selected for some reason it still includes schedule interval and next run when pasted into certain applications.
I can't be sure why this is happening, but certain places such as pasting into Google Chrome, TextEdit, or Visual Studio Code it will only include the DAG ID and a new line. But other applications such as Slack (so far only one I can tell) it includes the schedule interval and next run, as you can see below:
Schedule interval and next run not shown as selected on the DAG page:
Schedule interval and next run not pasted in Google Chrome and TextEdit:
Schedule interval and next run pasted and visible in Slack:
What you think should happen instead
When you select the DAG ID on the DAG page, copy what is selected, and then paste into a Slack message, only the DAG ID should be pasted.
How to reproduce
Select the DAG ID on the DAG page (such as double-clicking the DAG ID), copy what is selected, and then paste into a Slack message.
Operating System
macOS 1.15.7 (Catalina)
Versions of Apache Airflow Providers
No response
Deployment
Astronomer
Deployment details
No response
Anything else
This is something that possibly could be a Slack bug (one could say that Slack should strip out anything that is user-select: none), however it should be possible to fix the HTML layout so user-select: none is not even needed to prevent selection. It is sort of a band-aid fix.
Activity
eladkal commentedon Mar 16, 2022
I can confirm this indeed happens with paste ( CMD + V)
However if you will paste with CMD + SHIFT + V - it will behave as you expect
alexbegg commentedon Mar 16, 2022
Good catch on the CMD + SHIFT + V, I do that sometimes when I didn't want to paste HTML. I'll keep that in mind.
It will be nice though if selecting the text just selects that DAG ID and not the other stuff.
potiuk commentedon Mar 21, 2022
Change it into feature. And yeah feel free to work on it @alexbegg :)
vchiapaikeo commentedon Dec 29, 2022
Is anyone still working on this? Happy to take this on if no one is.
potiuk commentedon Dec 29, 2022
Feel free - if @alexbegg won't object :)