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

Fix Atlassian Confluence API parameter #4539

Merged
merged 18 commits into from Oct 25, 2022
Merged

Conversation

nevermoe
Copy link

Required items, please complete

Change(s):

  • Fix Atlassian Confluence API parameter

Reason for Change(s):

Version Updated:

  • N/A

Testing Completed:

  • Only tested in my personal environment

Checked that the validations are passing and have addressed any issues that are present:

  • N/A

@ghost
Copy link

ghost commented Mar 30, 2022

CLA assistant check
All CLA requirements met.

@v-spadarthi v-spadarthi added the Connector Connector specialty review needed label Mar 30, 2022
@v-marimanda
Copy link
Contributor

@nevermoe Please update the changes in zip file. thanks!!!

@nevermoe nevermoe requested a review from haim-na as a code owner April 1, 2022 03:31
@nevermoe
Copy link
Author

nevermoe commented Apr 1, 2022

@vmanojreddy Hi, I just updated the init.py and host.json in the zip file. I don't know if I should update the .python_packages directory in the zip file so I just leave it unchanged.
Thanks!

@v-marimanda
Copy link
Contributor

Tested the data connector by deploying the function app. we see error for function. Please check and update. Thanks.
image

@nevermoe
Copy link
Author

nevermoe commented Apr 1, 2022

@vmanojreddy Hi, sorry I didn't test that case. I think I fixed this bug. Would you please test deploy again? Thanks!

@v-marimanda
Copy link
Contributor

@nevermoe Tested the data connector by deploying the function app. Still we are getting error for function. Please check and update. Thanks!!!
image

@nevermoe
Copy link
Author

nevermoe commented Apr 4, 2022

@vmanojreddy
Hi, thank you for testing. I checked the zip file and the init.py is successfully updated. However, from the error message, it indicates that it's using an old version of init.py. Is the init.py cached somewhere else?

@nevermoe
Copy link
Author

nevermoe commented Apr 7, 2022

@vmanojreddy Hi, Any updates here?

@v-marimanda
Copy link
Contributor

@nevermoe Tested the data connector by deploying the function app. Still we are getting error in function. Please check and update. Thanks!!!
image

@nevermoe
Copy link
Author

nevermoe commented Apr 7, 2022

@vmanojreddy Hi, The error code is 404 which indicates there is something wrong with the confluence URL. Are you sure the tested confluence domain is correct? Because I made no change in this function, it's probably some configuration problem. If you can provide more information of the http request/response log, it would be more easy for me to locate the problem.

@nevermoe
Copy link
Author

@vmanojreddy Hi, do we have any progress here?

@v-marimanda
Copy link
Contributor

Hi @nevermoe sorry for late, I deployed the function app again with proper Confluence URL. Still we are getting error in function. Please check and update. Thanks!!!
image

@nevermoe
Copy link
Author

@vmanojreddy Hi, the time format written to the funcstatemarkerfile in storage account is in old format. I am doubting that some old version of function apps is running and writing strings to this file. Would you please have a check that all the function apps and the storage accounts deployed previously are deleted and deploy this new version again?

@nevermoe
Copy link
Author

@vmanojreddy Hi, how's everything going

@v-marimanda
Copy link
Contributor

Hi @nevermoe I am working and trying to deploy i am facing issues. I will check and update you. thanks!!!

@nevermoe
Copy link
Author

@vmanojreddy Thank you very much for your help! Looking forward to hearing good news!

@nevermoe
Copy link
Author

@vmanojreddy Hi, just to check, how's everything going?

@v-mchatla
Copy link
Contributor

Hi @nevermoe
I have tried deleting and redeploying the function app, storage account and dependent resources. As you have applied condition on the past_time in the file init.py line:38, that issue was fixed. But we are still getting other errors, please add not null or empty check on the result variable on line 84 and also it would be great if you can add more custom exceptions wherever you feel like breaking, so that it will be easier to identify the issue.

image

@v-spadarthi
Copy link
Contributor

Hi @nevermoe
Could you please resolve the above comments and conflicts as well. Thanks!!

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Do we have any update on the changes requested. Please let us know if you need any clarification
Thanks

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Could you please resolve the comments, so that we can verify and merge your changes.
Thanks

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Sorry for multiple follow ups, can you please resolve the comments.
Thanks

@nevermoe
Copy link
Author

@v-mchatla @v-spadarthi Hi, thank GOD you guys finally come back to review this issue. You got a 404 error so it's likely you entered a wrong confluence url when using the ARM. E.g. for site like https://xxxxxxxxx.atlassian.net/, you should only enter the xxxxxxxxx part in ConfluenceHomeSiteName.

@v-mchatla
Copy link
Contributor

@v-mchatla @v-spadarthi Hi, thank GOD you guys finally come back to review this issue. You got a 404 error so it's likely you entered a wrong confluence url when using the ARM. E.g. for site like https://xxxxxxxxx.atlassian.net/, you should only enter the xxxxxxxxx part in ConfluenceHomeSiteName.

Hi @nevermoe,
We don't have any test data for this to test. Can you please provide some test data if you have, otherwise I will check with team on how to proceed in this case and update you.
Thanks.

@nevermoe
Copy link
Author

@v-mchatla I don't have any test data. The test should be run with a JIRA service and I think you have tested the JIRA connection successfully before according to this thread.

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Please resolve the conflicts. I will try to test once again and let you know the result.
Thanks

@v-mchatla v-mchatla assigned v-mchatla and unassigned v-marimanda Sep 30, 2022
@nevermoe nevermoe requested a review from a team as a code owner September 30, 2022 12:17
@nevermoe
Copy link
Author

@v-mchatla Hi, I think the conflicts are resolved.

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Thanks for resolving the conflicts. I will check with my team on how to proceed in this case as we don't have test data to do thorough testing and will update you soon.
Thanks

@v-mchatla
Copy link
Contributor

Hi @nevermoe
We are still working on it, will update you soon.
Thanks

@v-spadarthi
Copy link
Contributor

@v-mchatla : Please have a look and update

@v-mchatla
Copy link
Contributor

Hi @nevermoe
Sorry for the delay. I will be working on it today and provide you the update.
Thanks

@v-mchatla
Copy link
Contributor

Hi @nevermoe,
I tried retesting the function app by redeploying but still getting the same error. I don't have test Confluence URL. If this function app is working fine in your environment, then we are good. Please confirm on the same so that we can proceed further.
image

Thanks

@nevermoe
Copy link
Author

@v-mchatla Hi, the errors shows HOMESITENAME.atlassian.net.atlassian.net is NOT a valid URL and apparently you didn't input a valid HOMESITENAME. I think in some previous comments some guy in your team managed to test it with your own Confluence URL. Anyway, these codes run good in my environment but if you can't test it, I can't help with that.

@v-mchatla
Copy link
Contributor

Hi @nevermoe,
Thanks for the confirmation. I will just validate all the files and approve this PR in sometime.
Thanks

@v-mchatla
Copy link
Contributor

Hi @nevermoe,
I could see 2 host.json files. Do we need both or just keep which one is required?
Thanks

@nevermoe
Copy link
Author

@v-mchatla Hi, I removed the unnecessary host.json.

@v-mchatla
Copy link
Contributor

Hi @nevermoe,
Thanks for the quick response. Checks are running at my end. Once all the checks are passed, I will approve and merge the PR

Copy link
Contributor

@v-mchatla v-mchatla left a comment

Choose a reason for hiding this comment

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

Approving the PR

@v-mchatla v-mchatla merged commit 1f92576 into Azure:master Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Connector Connector specialty review needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants