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: #6343 use d.GetOk to get qname_runtime_endpoint #6344

Conversation

johejo
Copy link
Contributor

@johejo johejo commented Apr 3, 2020

fix #6343

@ghost ghost added the size/XS label Apr 3, 2020
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @johejo

Thanks for this PR :)

Taking a look through this is looking good - if we can add an acceptance test to confirm this works then this should otherwise be good 👍

Thanks!

qnaRuntimeEndpoint, exists := d.GetOk("qna_runtime_endpoint")
if exists {
props.Properties.APIProperties.QnaRuntimeEndpoint = utils.String(qnaRuntimeEndpoint.(string))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could we add an acceptance test to confirm this works when the qna_runtime_endpoint field is unset?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I will try. This is my first contribution. Is there any existing test code similar to this change I can refer to?

@ghost ghost added size/S and removed size/XS labels Apr 4, 2020
@johejo
Copy link
Contributor Author

johejo commented Apr 4, 2020

Hmm, temporarily I reverted the fix after adding the test, but the test seems to pass. I am confused.

@ghost ghost removed the waiting-response label Apr 4, 2020
@katbyte
Copy link
Collaborator

katbyte commented Apr 7, 2020

@johejo, could it be the service's API changed behaviour and fix the bug? The tests used to pass with the current code

@johejo
Copy link
Contributor Author

johejo commented Apr 7, 2020

@katbyte
I read the surrounding code and thought this fix was fine.
However, adding tests, it appears that the bug never existed in the first place.

If the bug report is wrong, close this PR.

@katbyte
Copy link
Collaborator

katbyte commented Apr 10, 2020

closing as requested.

@katbyte katbyte closed this Apr 10, 2020
@ghost
Copy link

ghost commented May 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to create Cognitive Service Account when qname_runtime_endpoint is not set
3 participants