<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">Master</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">One <code class="notranslate">&lt;script&gt;</code> tag for each chunk.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">There are duplicate <code class="notranslate">&lt;script&gt;</code> tags for the shared chunks. If you view page source, there will be multiple <code class="notranslate">vendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js</code></p>
<p dir="auto">For example on the top of the page.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script src=&quot;/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/static/assets/dist/vendors-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/static/assets/dist/theme.0fe210d7.entry.js&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-welcome.0fe210d7.chunk.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/static/assets/dist/addSlice-common-dashboard-explore-profile-sqllab-welcome.0fe210d7.chunk.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/static/assets/dist/common.0fe210d7.entry.js&quot;&gt;&lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/vendors-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/theme.0fe210d7.entry.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>

<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-theme-welcome.0fe210d7.chunk.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/vendors-addSlice-common-dashboard-explore-profile-sqllab-welcome.0fe210d7.chunk.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/addSlice-common-dashboard-explore-profile-sqllab-welcome.0fe210d7.chunk.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">/static/assets/dist/common.0fe210d7.entry.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Because each entry in the js manifest lists an array of chunks each entry point needs, independent of other entry points. When we render this directly to FAB template, it does not de-dup.</p>
<p dir="auto">XHR Performance-wise not too bad as browser only fetches and parses once, but for correctness, if the chunk executes something, it executes multiple times.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Open Superset, view source.</p>
<p dir="auto">Hello,<br>
I'm very new to Superset, so please forgive me if it's a newbie question or has been asked a lot.</p>
<p dir="auto">I'm testing Superset with a couple of databases that all have the same type of application writing data to them. So all the databases obviously have the same tables in them.<br>
Now after I added two databases and tables as datasets, I get Datasets with identical names, and I can't see a way to differentiate between them. When I want to create a new chart and want to choose a dataset, they're indistinguishable:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2715287/115414724-917f5500-a1f6-11eb-9a79-c36780540747.png"><img src="https://user-images.githubusercontent.com/2715287/115414724-917f5500-a1f6-11eb-9a79-c36780540747.png" alt="superset-duplicate-names--507675505" style="max-width: 100%;"></a></p>
<p dir="auto">Is there any way to give the Datasets a specific name or similar, to differentiate them?</p>
<p dir="auto">Thank you for your insights!</p>