Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to enable test connection #34905

Merged
merged 11 commits into from
Oct 16, 2023
2 changes: 2 additions & 0 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ paths:
summary: Test a connection
description: |
Test a connection.
Testing Connections is disabled by default set test_connection flag to enabled in Airflow configuration (airflow.cfg).
vatsrahul1001 marked this conversation as resolved.
Show resolved Hide resolved
It can also be controlled by the environment variable AIRFLOW__CORE__TEST_CONNECTION.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: |
Test a connection.
Testing Connections is disabled by default set test_connection flag to enabled in Airflow configuration (airflow.cfg).
It can also be controlled by the environment variable AIRFLOW__CORE__TEST_CONNECTION.
description: >
Test a connection.
Testing Connections is disabled by default set test_connection flag to enabled in Airflow configuration (airflow.cfg).
It can also be controlled by the environment variable `AIRFLOW__CORE__TEST_CONNECTION`.

This fixes the rendering issues in the generated ts comment. (Don’t apply this on GitHub, you need to do this locally to go through pre-commit)


*New in version 2.2.0*
x-openapi-router-controller: airflow.api_connexion.endpoints.connection_endpoint
Expand Down
5 changes: 3 additions & 2 deletions airflow/www/static/js/types/api-generated.ts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated from openapi/v1.yaml and you should not modify it correctly. Modify the specification file instead and use pre-commit to sync the files instead. See the contribution guide located in the repository root to learn how to set up the dev toolchain.

Original file line number Diff line number Diff line change
Expand Up @@ -2567,8 +2567,9 @@ export interface operations {
};
/**
* Test a connection.
* Testing Connections is disabled by default set test_connection flag to enabled in Airflow configuration (airflow.cfg).
* It can also be controlled by the environment variable AIRFLOW__CORE__TEST_CONNECTION.
* Testing Connections is disabled by default set test_connection flag to enabled in Airflow configuration (airflow.cfg).
* It can also be controlled by the environment variable AIRFLOW__CORE__TEST_CONNECTION.
*
* *New in version 2.2.0*
*/
test_connection: {
Expand Down