You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/23 12:05:15 UTC

[GitHub] [airflow] VBhojawala opened a new pull request #13860: Added missing extra field in REST API Connection Endpoint

VBhojawala opened a new pull request #13860:
URL: https://github.com/apache/airflow/pull/13860


   Added missing extra field  in REST API Connection Endpoint
   
   ![Screenshot from 2021-01-23 17-30-24](https://user-images.githubusercontent.com/11897651/105577704-3d083d00-5da1-11eb-909e-21ef21d8ad3b.png)
   
   closes : #13744 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] VBhojawala closed pull request #13860: Added missing extra field in REST API Connection Endpoint

Posted by GitBox <gi...@apache.org>.
VBhojawala closed pull request #13860:
URL: https://github.com/apache/airflow/pull/13860


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #13860: Added missing extra field in REST API Connection Endpoint

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #13860:
URL: https://github.com/apache/airflow/pull/13860#issuecomment-766076291


   [The Workflow run](https://github.com/apache/airflow/actions/runs/505793944) is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on pull request #13860: Added missing extra field in REST API Connection Endpoint

Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #13860:
URL: https://github.com/apache/airflow/pull/13860#issuecomment-766393850


   @VBhojawala I looked at the ticket you referred to and I understood better the problem we have.
   `/connections/` **should not** return extra field
   `/connections/{conn_id}` **should** return this field
   
   To change that, you have to make changes this line.
   https://github.com/VBhojawala/airflow/blob/b8264e11f926897e34077373888d53909ce18317/airflow/api_connexion/endpoints/connection_endpoint.py#L61
   ```diff
   -    return connection_collection_item_schema.dump(connection)
   +    return connection_schema.dump(connection)
   ```
   I have already mentioned this solution in the ticket before
   https://github.com/apache/airflow/issues/13744#issuecomment-762789676
   https://github.com/apache/airflow/pull/13684#issuecomment-760550566


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on pull request #13860: Added missing extra field in REST API Connection Endpoint

Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #13860:
URL: https://github.com/apache/airflow/pull/13860#issuecomment-766393850


   @VBhojawala I looked at the ticket you referred to and I understood better the problem we have.
   `/connections/` **should not** return extra field
   `/connections/{conn_id}` **should** return this field
   
   To change that, you have to make changes this line.
   https://github.com/VBhojawala/airflow/blob/b8264e11f926897e34077373888d53909ce18317/airflow/api_connexion/endpoints/connection_endpoint.py#L61
   ```diff
   -    return connection_collection_item_schema.dump(connection)
   +    return connection_schema.dump(connection)
   ```
   I have already mentioned this solution in the ticket before
   https://github.com/apache/airflow/issues/13744#issuecomment-762789676
   https://github.com/apache/airflow/pull/13684#issuecomment-760550566


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org