<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">main (development)</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOsS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-amazon (main)</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Official Apache Airflow Helm Chart</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">What happened</h3>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/providers/amazon/aws/utils/emailer.py#L40-L41">airflow/airflow/providers/amazon/aws/utils/emailer.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 40 to 41
      in
      <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/098765e227d4ab7873a2f675845b50c633e356da">098765e</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L40" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="40"></td>
          <td id="LC40" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mail_from</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, </td>
        </tr>

        <tr class="border-0">
          <td id="L41" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="41"></td>
          <td id="LC41" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">to</span><span class="pl-c1">=</span><span class="pl-s1">to</span>, </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    hook.send_email(
        mail_from=None,
        to=to,
        subject=subject,
        html_content=html_content,
        files=files,
        cc=cc,
        bcc=bcc,
        mime_subtype=mime_subtype,
        mime_charset=mime_charset,
    )"><pre class="notranslate"><code class="notranslate">    hook.send_email(
        mail_from=None,
        to=to,
        subject=subject,
        html_content=html_content,
        files=files,
        cc=cc,
        bcc=bcc,
        mime_subtype=mime_subtype,
        mime_charset=mime_charset,
    )
</code></pre></div>
<p dir="auto">the <code class="notranslate">mail_from=None</code> will trigger an error when sending the mail, when using AWS Simple Email Service you  need to provide a from address and has to be already verified in AWS SES &gt;  "Verified identities"</p>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto">I expected it to send a mail but it doesn't because</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">This is easily solved by providing a from address like in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    smtp_mail_from = conf.get('smtp', 'SMTP_MAIL_FROM')
    hook.send_email(
        mail_from=smtp_mail_from,"><pre class="notranslate"><code class="notranslate">    smtp_mail_from = conf.get('smtp', 'SMTP_MAIL_FROM')
    hook.send_email(
        mail_from=smtp_mail_from,
</code></pre></div>
<p dir="auto">the problem is: Can we reuse the smtp.SMTP_MAIL_FROM or do we need to create a new configuration parameter like email.email_from_address ?</p>
<ul dir="auto">
<li>smtp uses its own config smtp.smtp_mail_from</li>
<li>sendgrid uses an environment variable <code class="notranslate">SENDGRID_MAIL_FROM</code> (undocumented by the way)</li>
</ul>
<p dir="auto">So, my personal proposal is to</p>
<ul dir="auto">
<li>introduce an email.email_from_email and email.email_from_name</li>
<li>read those new configuration parameters at <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/utils/email.py#L50-L67">utils.email.send_email</a></li>
<li>pass those as arguments to the backend (kwargs <code class="notranslate">from_email</code>, <code class="notranslate">from_name</code>) . the <a href="https://github.com/apache/airflow/blob/098765e227d4ab7873a2f675845b50c633e356da/airflow/providers/sendgrid/utils/emailer.py#L70-L71">sendgrid backend can already read those  </a> although seems unused at the momemt.</li>
</ul>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.6.1</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">When using search filters for pages accessible from the <code class="notranslate">Browse</code> context menu (i.e. <code class="notranslate">Browse &gt; DAG Runs</code>), some filters do not seem to apply. Instances of this are clearest with filtering by logical date which returns all DAG Runs, with the ones matching the filter generally being towards the top. This can also be seen on the Variables page using the <code class="notranslate">ends with</code> filter.</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">When a filter is applied, it appropriately filters out the rows that do not meet the filter and only those that do are shown.</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Have DAG Runs across multiple logical dates</li>
<li>Go to <code class="notranslate">Browse &gt; DAG Runs</code></li>
<li>Filter based on a logical date (i.e. greater than 2023-05-31 12:00 AM)</li>
<li>Scroll to see that extraneous data is included</li>
</ol>
<h3 dir="auto">Operating System</h3>
<p dir="auto">CentOS Linux 7 (Core)</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Installed on a miniconda environment running Python 3.9</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Not all filters seem to be broken. "Starts with" seems to work well, meanwhile "Ends with" does not. They both do add a request to the URL, however the "ends with" one seems to add <code class="notranslate">?_flt_undefined_key=</code> whereas the "starts with" adds <code class="notranslate">?_flt_0_key=</code>. The filters that do not work also do not appear on the filter list.</p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>