Skip to content

#1 Added numberwithunitprompt.py & numberwithtype_prompt.py file#2

Merged
arafattehsin merged 5 commits intoBotBuilderCommunity:masterfrom
rvinothrajendran:master
Oct 19, 2019
Merged

#1 Added numberwithunitprompt.py & numberwithtype_prompt.py file#2
arafattehsin merged 5 commits intoBotBuilderCommunity:masterfrom
rvinothrajendran:master

Conversation

@rvinothrajendran
Copy link
Copy Markdown
Member

@rvinothrajendran rvinothrajendran commented Oct 15, 2019

#1 Converted C# Prompt:NumberWithUnitPrompt class to Python class
#3 Converted Port numberWithType JS to Python
two files has added in the same PR #2

@arafattehsin
Copy link
Copy Markdown
Member

Looks good to me. Thanks @rvinothrajendran for the PR.

numberwithtype_prompt class added
@rvinothrajendran rvinothrajendran changed the title #1 Added numberwithunitprompt.py file #1 Added numberwithunitprompt.py & numberwithtype_prompt.py file Oct 15, 2019
@rvinothrajendran
Copy link
Copy Markdown
Member Author

@arafattehsin thanks for you to approved the PR . How to merge code change since I don't have write access

@arafattehsin
Copy link
Copy Markdown
Member

I'll be merging it soon. Just finalizing a few things.

@szul
Copy link
Copy Markdown
Contributor

szul commented Oct 16, 2019

I would like to see some unit tests added before merging, if at all possible, even if you just duplicated the tests from the JS library. A good package is pytest. We could then add the coverage package for code coverage when we get a pipeline set up.

@arafattehsin
Copy link
Copy Markdown
Member

Totally agree with that!

@garypretty garypretty self-requested a review October 16, 2019 11:20
Copy link
Copy Markdown
Member

@garypretty garypretty left a comment

Choose a reason for hiding this comment

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

Thank you very much for your contribution - our first fro the Python repo!
As this is the first we need to ensure we start our naming correctly. Would you mind altering the folder structure to reflect that these are Bot Builder Community packages.
e.g. change 'botbuilder-dialogs-prompts' to 'botbuilder-community-dialogs-prompts'

Thanks again!

Copy link
Copy Markdown
Member

@garypretty garypretty left a comment

Choose a reason for hiding this comment

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

It would also be great if you could add a readme for the prompts package, similar to this one in the JS repo.... https://github.com/BotBuilderCommunity/botbuilder-community-js/tree/master/libraries/botbuilder-dialog-prompts

@szul
Copy link
Copy Markdown
Contributor

szul commented Oct 16, 2019

@garypretty I think he just followed the NodeJS packages, and all ours are "botbuilder-". I've been contemplating removing the "botbuilder-" completely from the NodeJS folder structure since it's actually in a Bot Builder Community package... Would cut down on verbosity. I'm open to either.

@rvinothrajendran I would definitely suggest following Python best practices for file and variable names. I think Python developers primarily like snake case.

@rvinothrajendran
Copy link
Copy Markdown
Member Author

Thanks @garypretty

@szul sure will follow Python best practices

@garypretty
Copy link
Copy Markdown
Member

Thanks @rvinothrajendran

@szul I hadn't spotted it was the same as JS, so thanks for pointing that out. I am happy to remove the botbuilder if it makes things less verbose for folder names. The one thing I want to ensure, hence this original comment, is that our packages are consistently showing botbuilder community so that we do not risk being confused with any official packages and we also maintain the connection to the project.

@szul
Copy link
Copy Markdown
Contributor

szul commented Oct 16, 2019

@garypretty The NPM packages are scoped to “botbuildercommunity”.

Folder name change to  botbuilder-community-dialogs-prompts
unit test script has added
@rvinothrajendran
Copy link
Copy Markdown
Member Author

@arafattehsin @szul @garypretty , Kindly review the changes

Copy link
Copy Markdown
Contributor

@szul szul left a comment

Choose a reason for hiding this comment

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

This is good. We will need to get the CI/CD squared away at some point, but I will add a bunch of issues separate of this PR to address those.

@szul
Copy link
Copy Markdown
Contributor

szul commented Oct 18, 2019

@arafattehsin I'm good with this. You can be gatekeeper for the merge. I'll do some research into Python package structures and CI/CD and then load up the issues load so we can get the maturity on this repo up to the level of the others.

@arafattehsin
Copy link
Copy Markdown
Member

Sure. I'll take care of this.

default locale condition handle in the ctor & removed from the  on_recognize function
@arafattehsin arafattehsin merged commit e703bb1 into BotBuilderCommunity:master Oct 19, 2019
@arafattehsin
Copy link
Copy Markdown
Member

For now, I have merged it with master as we did not want to hold this PR. However, from now on, just like our other repos, develop will be used as the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants