Gollum999 opened a new issue, #35414:
URL: https://github.com/apache/airflow/issues/35414

   ### Apache Airflow version
   
   2.7.2
   
   ### What happened
   
   On the "Details" tab on a DAGs "Grid" page, all numeric DAG attributes are 
rendered as timestamps instead of numbers.  For example:
   
   
![image](https://github.com/apache/airflow/assets/7269927/9a99ccab-2d20-4a57-9fa8-63447e14444b)
   
   I have noticed this behavior with the following fields, though there may be 
more:
   * Max active runs
   * Max active tasks
   * Concurrency
   
   ### What you think should happen instead
   
   Numeric fields should be rendered as numbers.
   
   ### How to reproduce
   
   Go to any DAG's Grid page.  Don't select a DAG Run or Task Instance.  Click 
the Details tab if it is not already selected.
   
   ### Operating System
   
   CentOS Stream 8
   
   ### Versions of Apache Airflow Providers
   
   N/A
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   Standalone + self-hosted
   
   ### Anything else
   
   I think the bug is 
[here](https://github.com/apache/airflow/blob/0a257afd031289062c76e7b77678337e88e10b93/airflow/www/static/js/dag/details/Dag.tsx#L133):
   ```
     // parse value for each key if date or not
     const parseStringData = (value: string) =>
       Number.isNaN(Date.parse(value)) ? value : <Time dateTime={value} />;
   ```
   `Date.parse(1)` returns a number that is not NaN.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to