-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last Run links on home page UI not correct with RBAC UI #10434
Comments
I believe the fix may be to change the following line from
|
Assigned this issue to you :) |
@kaxil I can't reproduce this with Breeze. I ran I am going to have to recreate the same setup in breeze and see if I can reproduce this issue... Here is what I found so far after clicking the "Last Run" link:
|
I think I am able to replicate it now. It is only happening if the If I view the "log" table of the metadata db it clearly shows the problem (I added the "URL" to the end for reference) URL Route with
URL Route with
Also notice the |
I tracked it down. The problem is an invalid value of I edited the code to log out the
Encoding the |
Thanks @alexbegg for the detailed investigation and the PR :) |
@kaxil that was my first PR in this repo so I am just asking, does anything need to be done on my part for this to be picked up and cherry-picked into 1.10.x? It needs to be fixed in |
I have added "1.10.13" milestone to the PR :) that should be enough |
Apache Airflow version:
1.10.11
Kubernetes version (if you are using kubernetes) (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-16T00:04:31Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-13T06:39:58Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a
): Linux airflow-web-65cb7d9cb8-qzcbv 4.15.0-1089-azure Http protocol sensor #99~16.04.1-Ubuntu SMP Fri Jun 5 15:30:32 UTC 2020 x86_64 GNU/LinuxWhat happened:
The "Last Run" link on the home page with RBAC UI is not taking you to the graph of that last run (if it has a time that is NOT
00:00:00
), instead it takes you to a graph with no activity shown. It looks like it is because it is not URL-encoding theexecution_date
in the URL.What you expected to happen:
Clicking a "Last Run" link when "Graph" is your default view it should take you to the graph of that last run, instead it a graph with no activity shown.
How to reproduce it:
Using RBAC UI, click on a link in the "Last Run" column (that has a time that is NOT
00:00:00
) it will take you to a graph view with no activity shown. The URL will show as ending in a date similar toexecution_date=2020-08-19T05:00:00+00:00
and if you change all the:
to%3A
and+
to%2B
it should take you to the correct last run.Anything else we need to know:
The URL for the link currently has
execution_date=2020-08-19T05:00:00+00:00
, whereas if you go to the actual graph page and select that same DAG run the URL is inseadexecution_date=2020-08-19T05%3A00%3A00%2B00%3A00
which works.If the link's url has the execution date URL-encoded then the link should work.
The text was updated successfully, but these errors were encountered: