Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-3221

RBAC-date filter mangles input sub-second datetimes in JS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: ui
    • Labels:
      None

      Description

      The JS used to generate the DateTime picker for the "Search"/filter actions for any date time coluum will not accept sub-second precision - even if you manually type it in, the JS will "helpfully" parse and reformat the input by deleting the subsecond part.

      To reproduce:

      • Browse -> Task Instances
      • Expand "Search"
      • Add a filter on a date column (Start Date say)
      • Type/paste 2018-10-16 20:24:26.375717+01:00 in the box
      • tab to move focus elsewhere
      • See the value change to 2018-10-17 09:44:32!! (note different day and time!)

      If you manually edit the URL then the original input is accepted fine.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ash Ash Berlin-Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: