ThePsyjo opened a new issue, #40220:
URL: https://github.com/apache/airflow/issues/40220
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.7.3
### What happened?
Web-interface > Admin > Connections
When saving a float value in `extra`, it is getting stored correctly as
float. Upon loading the connection again, the float is converted to int if it
can be represented as int. After saving the connection again, i.e. after
updating the password, the value is stored as int.
### What you think should happen instead?
Data types in extra should be preserved.
### How to reproduce
- in the web interface
- go to Admin > Connections
- add connection
- insert `{"version": 18.0}` in extra
- save
- edit this connection
- find it being `{"version": 18}`
### Operating System
na
### Versions of Apache Airflow Providers
https://cloud.google.com/composer/docs/concepts/versioning/composer-versions?hl=en
composer-2.8.1-airflow-2.7.3
### Deployment
Google Cloud Composer
### Deployment details
_No response_
### Anything else?
_No response_
### 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]