Code Monkey home page Code Monkey logo

Comments (12)

jscheffl avatar jscheffl commented on July 22, 2024 2

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.

tirkarthi avatar tirkarthi commented on July 22, 2024

It has been made as a separate section in 2.9.1 in this PR. I guess the removal was intentional.

#39122

cc: @bbovenzi

from airflow.

nathadfield avatar nathadfield commented on July 22, 2024

@tirkarthi Hmm, that's a bit disappointing. I hate clicking more than times that I have to, or was previously used to.

from airflow.

tirkarthi avatar tirkarthi commented on July 22, 2024

Isn't rendered template available in details tab at the bottom? Is the new section missing some details from old page?

from airflow.

nathadfield avatar nathadfield commented on July 22, 2024

@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

Whereas it looks like this now.

Screenshot 2024-05-10 at 14 40 46

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.

tirkarthi avatar tirkarthi commented on July 22, 2024

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.

nathadfield avatar nathadfield commented on July 22, 2024

@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.

bbovenzi avatar bbovenzi commented on July 22, 2024

Yes, we should render the json and sql better in the grid view. We should add a copy button too.

from airflow.

nathadfield avatar nathadfield commented on July 22, 2024

@bbovenzi Great thanks! I'll change this to a feature request then.

from airflow.

tirkarthi avatar tirkarthi commented on July 22, 2024

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.

tirkarthi avatar tirkarthi commented on July 22, 2024

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.

tirkarthi avatar tirkarthi commented on July 22, 2024

I have created #39918 as a possible solution. Thanks.

from airflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.