<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0b2</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Others</strong>: No K8S</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">In the The <em>Logs</em> and <em>All Instances</em> buttons in the task model in the web UI are inoperative when <em>not</em> using Kubernetes.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">The buttons to have working links.</p>
<p dir="auto">The <code class="notranslate">dag.html</code> <code class="notranslate">updateModalUrls()</code> function <a href="https://github.com/apache/airflow/blob/7d5d334857114903783390333e23e07bc9df2e2e/airflow/www/templates/airflow/dag.html#L428-L434">assumes that <code class="notranslate">buttons.rendered_k8s</code> is set</a>, which is not the case when not using K8S.</p>
<p dir="auto">This then results in an error and the buttons initialised after this point are not wired up:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="18:28:17.990 Uncaught TypeError: elm is undefined
    updateButtonUrl http://.../tree?dag_id=full_pipeline:1595
    updateModalUrls http://.../tree?dag_id=full_pipeline:1616
    call_modal http://.../tree?dag_id=full_pipeline:1665
    update http://.../tree?dag_id=full_pipeline:1427
    $/&lt; http://.../static/dist/d3.min.js:1
    i http://.../static/dist/d3.min.js:1
    each http://.../static/dist/d3.min.js:3
    Y http://.../static/dist/d3.min.js:1
    each http://158.101.169.4:8080/static/dist/d3.min.js:3
    on http://158.101.169.4:8080/static/dist/d3.min.js:3
    update http://158.101.169.4:8080/tree?dag_id=full_pipeline:1420
    &lt;anonymous&gt; http://158.101.169.4:8080/tree?dag_id=full_pipeline:1339
tree:1595:7"><pre class="notranslate"><span class="pl-c1">18</span>:<span class="pl-c1">28</span>:<span class="pl-c1">17.990</span> <span class="pl-v">Uncaught</span> TypeError: <span class="pl-s1">elm</span> <span class="pl-s1">is</span> <span class="pl-c1">undefined</span>
    <span class="pl-s1">updateButtonUrl</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../tree?dag_id=full_pipeline:1595</span>
    <span class="pl-s1">updateModalUrls</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../tree?dag_id=full_pipeline:1616</span>
    <span class="pl-s1">call_modal</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../tree?dag_id=full_pipeline:1665</span>
    <span class="pl-s1">update</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../tree?dag_id=full_pipeline:1427</span>
    <span class="pl-s1">$</span><span class="pl-c1">/</span><span class="pl-c1">&lt;</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../static/dist/d3.min.js:1</span>
    <span class="pl-s1">i</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../static/dist/d3.min.js:1</span>
    <span class="pl-s1">each</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../static/dist/d3.min.js:3</span>
    <span class="pl-v">Y</span> <span class="pl-s1">http</span>:<span class="pl-c">//.../static/dist/d3.min.js:1</span>
    <span class="pl-s1">each</span> <span class="pl-s1">http</span>:<span class="pl-c">//158.101.169.4:8080/static/dist/d3.min.js:3</span>
    <span class="pl-s1">on</span> <span class="pl-s1">http</span>:<span class="pl-c">//158.101.169.4:8080/static/dist/d3.min.js:3</span>
    <span class="pl-s1">update</span> <span class="pl-s1">http</span>:<span class="pl-c">//158.101.169.4:8080/tree?dag_id=full_pipeline:1420</span>
    <span class="pl-c1">&lt;</span><span class="pl-s1">anonymous</span><span class="pl-c1">&gt;</span> http://158.101.169.4:8080/tree?dag_id=full_pipeline:1339
tree:1595:7</pre></div>
<p dir="auto">The call needs to be protected by a <code class="notranslate">k8s_or_k8scelery_executor</code> check.</p>
<p dir="auto"><strong>Apache Airflow version</strong>:2.0.0b2</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): NA</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): macOS</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
Clicking on the "Log" button in the popup for task instance in graph view doesn't link to the logs view.</p>

<p dir="auto"><strong>What you expected to happen</strong>:<br>
The log view should show up.</p>

<p dir="auto"><strong>How to reproduce it</strong>:</p>
<ol dir="auto">
<li>Run any dag.</li>
<li>Open Graph VIew.</li>
<li>Click on any task.</li>
<li>Click on the "Log" button.</li>
</ol>

<p dir="auto"><strong>Anything else we need to know</strong>:<br>
Check this in action <a href="https://youtu.be/fXEQ-yOwMrM" rel="nofollow">here</a>.</p>