Skip to content

Commit

Permalink
Refactor ServiceConnectionDetails component to handle specific Airflo…
Browse files Browse the repository at this point in the history
…w connection type (open-metadata#18100)
  • Loading branch information
ayush-shah authored Oct 8, 2024
1 parent 1948cf7 commit 221327a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"matillionETL": {
"description": "Matillion ETL Auth Config",
"type": "object",
"title": "Matillion ETL Auth Config",
"properties": {
"type": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ const ServiceConnectionDetails = ({
if (isObject(value)) {
if (
serviceCategory.slice(0, -1) === EntityType.PIPELINE_SERVICE &&
key === 'connection'
key === 'connection' &&
value.type &&
value.type.toLowerCase() === 'airflow'
) {
// Specific to Airflow
const newSchemaPropertyObject = schemaPropertyObject[
key
].oneOf.filter((item) => item.title === `${value.type}Connection`)[0]
Expand Down

0 comments on commit 221327a

Please sign in to comment.