Skip to content

Conversation

@axelsrz
Copy link
Member

@axelsrz axelsrz commented Feb 19, 2020

fixes #665
fixes #831
fixes #825
fixes #834

The features of this PR were e2e tested with the code in #853

axelsrz and others added 23 commits February 18, 2020 18:10
…e some classes to botbuilder.integration.aiohttp
Copy link
Contributor

@gabog gabog left a comment

Choose a reason for hiding this comment

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

Check my comments and see if they are worth addressing.
FYI, I went very light on the samples (I assume those are for dev testing) and also skipped reviewing *aiohttp (not sure I can add any value in reviewing that).

tracyboehrer and others added 7 commits March 10, 2020 10:50
# Conflicts:
#	libraries/botbuilder-core/botbuilder/core/activity_handler.py
#	libraries/botbuilder-core/botbuilder/core/adapters/test_adapter.py
#	libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py
#	libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_client.py
@microsoft microsoft deleted a comment from axelsrz Mar 11, 2020
Copy link
Member

@carlosscastro carlosscastro left a comment

Choose a reason for hiding this comment

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

Looks good. Please my mini-rant around constants. Sorry, I know I'm annoying but I'd value consistency on this. Thanks!

)

# Inspect the skill response status
if not 200 <= response.status <= 299:
Copy link
Member

Choose a reason for hiding this comment

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

In all languages we have a statuscodes set of constants, so you can do StatusCodes.OK. Can we have that in python? Not a fan of writing numbers where we could have semantically more meaningful code.

Also, C# has a method on responses called IsSuccessStatusCode which internally checks between 200 and 299. On top of te constants you could do that, optionally. If we do this in at least 2 places, I'd introduce the method right away,

Copy link
Member

Choose a reason for hiding this comment

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

i had similar feedback on the other review we have constants so we should use them - in fact we seem to be using two different constants for http status code. Having said that - this is obviously a code quality issue rather than functionality - if this is an issue across more of the code don't block on this - just open a R9 bug for global clean up - not a big deal.

@carlosscastro
Copy link
Member

I didn't check the samples but the rest of the stuff looks good. I'd love @tracyboehrer to take a look since he is more acquainted with python specific things and @gabog since he is the king of skills :). From Gabo's review I think we were already pretty close, so I don't expect much churn, but he may spot subtle details on the latest skill changes.

Copy link
Member

@johnataylor johnataylor left a comment

Choose a reason for hiding this comment

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

assuming the etag issue is now gone - i.e. we don't fail on etag ("last one wins" FWIW) I'm approving, however, it would be great if mr skills (aka gabo) signs off.

)

# Inspect the skill response status
if not 200 <= response.status <= 299:
Copy link
Member

Choose a reason for hiding this comment

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

i had similar feedback on the other review we have constants so we should use them - in fact we seem to be using two different constants for http status code. Having said that - this is obviously a code quality issue rather than functionality - if this is an issue across more of the code don't block on this - just open a R9 bug for global clean up - not a big deal.

@axelsrz axelsrz merged commit d282ea3 into master Mar 11, 2020
@axelsrz axelsrz deleted the axsuarez/skill-dialog branch March 11, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

7 participants