Changing atlassian JIRA SDK to official atlassian-python-api SDK#27633
Changing atlassian JIRA SDK to official atlassian-python-api SDK#27633eladkal merged 17 commits intoapache:mainfrom
Conversation
ff59f63 to
86a4c8e
Compare
eladkal
left a comment
There was a problem hiding this comment.
Lets also add entry in the provider change log explaining this breaking change
There was a problem hiding this comment.
I don't think we need to catch the exceptions at all?
It will just raise whatever exception coming from the sdk
There was a problem hiding this comment.
Made the changes here by only keeping the HTTPError to log the response from it. Other will just raise with whatever exception that comes. Thanks for identifying this.
There was a problem hiding this comment.
If we remove the notes since no longer relevant shouldn't the code change as well?
to my understanding this code is a workaround to address the issue in comments
There was a problem hiding this comment.
The official SDK returns 'id' in the output in all jira issue related methods. I have added these https://github.com/apache/airflow/pull/27633/files#diff-85731758409b94fa7ff2ab57860f1d4242f7a196768f003e7b618d88254afba4R84-R85 which takes id from the response and performs xcom_push with that.
There was a problem hiding this comment.
Made the changes here by only keeping the HTTPError to log the response from it. Other will just raise with whatever exception that comes.
Ref: https://github.com/apache/airflow/pull/27633/files#diff-8edbc4ba86e754ffa8636bf167fa0a0e1eb9bd47f134a1d78103b3b7dad55b10R130
There was a problem hiding this comment.
I think we don't really need this warnings?
we are changing SDKs.. parameters of the previous SDK can just cause confusion.
If users didn't change their usage of the hook nothing won't work anyway.
There was a problem hiding this comment.
Makes sense. I have removed these warnings.
|
Can we count on rebase/fixes @Adityamalik123 ? |
8d88ed9 to
967ff3f
Compare
@eladkal Can i add it in the CHANGELOG.rst under a new version or do i have to comment it here and the release manager adds it? |
Yeah. You need to add it. Check opsgenie change log for example as it had similar case of changing sdk |
967ff3f to
8e2ba95
Compare
Thanks! I have made the changes. Please re-review. |
|
Can you also please update |
Sure, I have pushed the same. |
|
Thanks @Adityamalik123 |
The atlassian-jira provider currently uses JIRA> 1.0.7 dependency which is an unofficial Jira SDK, We need to replace it with the official SDK atlassian-python-api to allow more atlassian product operators in Airflow.
closes : #25669