dstandish opened a new pull request #22520: URL: https://github.com/apache/airflow/pull/22520
We namespaced custom connection fields (which are stored in the `extra` json field) with prefix `extra__<conn type>__` in order to keep them unique in a global dictionary of fields. This made it ugly and clunky to use these fields when you deal with the `extra` field directly, e.g. when using an external secrets backend or storing connections in env vars. With a slight change in logic, we can keep this namespacing (which ensures that different connections can have fields with the same name and different labels) and strip the prefix prior to saving (and add it back on read) so that the `extra` JSON doesn't have the prefix. That's the easy part. What was a little more challenging (or at least tedious) was to preserve backward compatibility, so users will be warned when their extras still have the deprecated prefix, but it will continue to work. -- 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]
