Comments (12)
I also always wanted to contribute this but never came to this. I'd favor making this consistent like the DAG Run Conf which is rendered as a struct with a copy option.
Same applies for XCom results, too.
from airflow.
It has been made as a separate section in 2.9.1 in this PR. I guess the removal was intentional.
cc: @bbovenzi
from airflow.
@tirkarthi Hmm, that's a bit disappointing. I hate clicking more than times that I have to, or was previously used to.
from airflow.
Isn't rendered template available in details tab at the bottom? Is the new section missing some details from old page?
from airflow.
@tirkarthi Ah, ok, well, I suppose it depends on what is being rendered. For example, SQL being run via the BigQueryInsertJobOperator
looks like this when you go to the specific rendered template page which used to be available from Details
.
![Screenshot 2024-05-10 at 14 40 28](https://private-user-images.githubusercontent.com/967119/329596131-51cb21d4-8ee1-42d4-a374-e822ffdda9b9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1ODkzNzEsIm5iZiI6MTcxOTU4OTA3MSwicGF0aCI6Ii85NjcxMTkvMzI5NTk2MTMxLTUxY2IyMWQ0LThlZTEtNDJkNC1hMzc0LWU4MjJmZmRkYTliOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOFQxNTM3NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYTdjYmM4ZWQ4NjNlMzFjYjA2OWZkODI0ODlkY2U1NmZiOWQ1NmQwNzA2NTY1YjczYzdjZGVkYmI3YjU1YjdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cQijeHnUggCYgtmcKW0MXGypUd6PMrPcbB1ZpqIq2dg)
Whereas it looks like this now.
![Screenshot 2024-05-10 at 14 40 46](https://private-user-images.githubusercontent.com/967119/329596174-195d4671-a0f9-43f7-bce3-8cad99e9cb9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1ODkzNzEsIm5iZiI6MTcxOTU4OTA3MSwicGF0aCI6Ii85NjcxMTkvMzI5NTk2MTc0LTE5NWQ0NjcxLWEwZjktNDNmNy1iY2UzLThjYWQ5OWU5Y2I5Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOFQxNTM3NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZjgzZTEzMTkwMzM3MDljOTZkOGQ3YTBkNmZmMDI1MGZkY2E4MWM0NzkxYjk1ZDQ4OWFlOTBkYTVmM2U1ODdiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.1ZiJko3_Pb2-af53XeTltTO5pAvJl1Dv_rBDhpfqKz0)
The important thing is that it's not possible to copy and paste the SQL directly from the UI and the previous page is now several clicks away.
from airflow.
Thanks, the legacy page uses renderers along with pformat which indents the dict. Maybe the issue can updated to have formatting for the values like the legacy page.
from airflow.
@tirkarthi It's not just about dict, but also the SQL contained within it. If the new page could render both in a similar way then great!
from airflow.
Yes, we should render the json and sql better in the grid view. We should add a copy button too.
from airflow.
@bbovenzi Great thanks! I'll change this to a feature request then.
from airflow.
I was working on this issue and it looks complex since the legacy page uses the task template fields to get the relevant renderer and uses pygment lexer for highlighting along with lot of other inference for the objects. The issue is that in this case there is configuration which is a json and configuration.query.query which is a sql with both of them template fields. But in the API response the rendered template field string is just returned without any lexer information. Also the legacy page has access to dagbag and the corresponding task which the API endpoints don't have.
I have made some progress on this issue and can raise a PR once I get to a working state.
Thanks
from airflow.
Another thing is that case in the fields in the response like bash_command
is turned to bashCommand
at the react layer which gets rendered in the UI as bashCommand
which is also incorrect and a bug IMO.
from airflow.
I have created #39918 as a possible solution. Thanks.
from airflow.
Related Issues (20)
- Improve SFTPOperator with directory transfer and DELETE operation HOT 1
- add ower to TaskInstance class HOT 1
- Status of testing Providers that were prepared on June 22, 2024 HOT 38
- openlineage: Non-local executor's initializer breaking the Airflow DB connection HOT 4
- ODBC Provider Configuration
- admin canot see admin components HOT 2
- Azure Datalake Storage V2 ObjectStoragePath connection issues HOT 1
- PythonVirtualOperator fails silently when virtualenv is not installed. HOT 12
- RedshiftDataOperator fails when `return_sql_result` is true, and SQL statements are provided HOT 1
- ElasticsearchSQLHook fails with AttributeError: __enter__ HOT 4
- Airflow log cannot be displayed on logs page HOT 9
- ProcessingJobName is not preserved after execution returns from deferred state in SM proceesing job HOT 1
- deferred tasks get kill during heartbeat callback in some rare cases
- Enhance Variable.set to create versions in GCP Secret Manager when backend is connected
- Task processes killed with SIGTERM signal - task PID of job runner does not match
- Add task status filters to Task Duration Histogram view HOT 1
- Deferred operator do not preserve attribute values set during execution HOT 1
- Missing `usePgbouncer` key for Triggerer
- Logging out from Web UI raises Airflow 405 error HOT 8
- Vertex AI job operators in deferrable mode assume job uses Managed Model HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airflow.