<p dir="auto"><strong>Describe the bug</strong><br>
A clear and concise description of what the bug is.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Go to explore</li>
<li>Create time-series bar chart</li>
<li>Add annotation layer</li>
<li>Set y=constant e.g. <code class="notranslate">y=100</code> as formula</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1659771/99842765-4963e580-2b25-11eb-9516-bc63672ab803.png"><img src="https://user-images.githubusercontent.com/1659771/99842765-4963e580-2b25-11eb-9516-bc63672ab803.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected behavior</strong><br>
A horizontal line at y 100</p>
<p dir="auto"><strong>Screenshots</strong><br>
It adds a bar for each grouped bar instead.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1659771/99842565-ec682f80-2b24-11eb-8749-b669e88b401c.png"><img width="922" alt="Pasted_Image_11_20_20__11_37_AM" src="https://user-images.githubusercontent.com/1659771/99842565-ec682f80-2b24-11eb-8749-b669e88b401c.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Environment (please complete the following information):</strong></p>
<ul dir="auto">
<li>superset-ui version: current</li>
</ul>
<p dir="auto">Hello,</p>
<p dir="auto">an issue is present on Superset v1.5.2, permissions are duplicated when the display name of database is updated.</p>
<p dir="auto">Steps to reproduce :<br>
I add a database connection with the display name "ECOSQL_1".<br>
After, I only update the display name to "ECOSQL_2"</p>
<p dir="auto">I have following permissions :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/82046143/225577669-d25a5ab4-5e05-4b5d-9206-3b991201056c.png"><img src="https://user-images.githubusercontent.com/82046143/225577669-d25a5ab4-5e05-4b5d-9206-3b991201056c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">As you could see permissions "ECOSQL_1" still exist and new permissions "ECOSQL_2" are created rather than updated.</p>
<p dir="auto">This implies having to redefine the rights when it is only a simple update of the display name of connection.</p>
<p dir="auto">Thanks for your support.</p>
<p dir="auto">Best regards</p>