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

Replace interfaces with Abstract base classes #3602

Merged
merged 4 commits into from
Mar 25, 2020
Merged

Replace interfaces with Abstract base classes #3602

merged 4 commits into from
Mar 25, 2020

Conversation

tomlm
Copy link
Contributor

@tomlm tomlm commented Mar 20, 2020

#3178

  • make sure schema names are consistent and in correct places.
    NOTE: I keep the IXXX nomenclature for defining the union types in the .schema file

Tom Laird-McConnell added 3 commits March 19, 2020 15:41
* Cleanup .schema files to not be interface names (aka Microsoft.Dialog instead of Microsoft.IDialog)
* make sure schema names are consistent and in correct places.
@tomlm tomlm added adaptive R9 Release 9 - May 15th, 2020 labels Mar 20, 2020
@@ -23,7 +23,7 @@
"default": "dialog.result"
},
"recognizer": {
"$kind": "Microsoft.Recognizer",
"$kind": "Microsoft.IRecognizer",
"title": "Recognizer",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not have been renamed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you decided to keep the IX in the schema name to correspond to ABC X.


In reply to: 395802524 [](ancestors = 395802524)

@@ -42,7 +42,7 @@
"description": "List of triggers defined for this dialog.",
"title": "Triggers",
"items": {
"$kind": "Microsoft.ITriggerCondition"
"$kind": "Microsoft.ITrigger"
Copy link
Contributor

@chrimc62 chrimc62 Mar 20, 2020

Choose a reason for hiding this comment

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

$kind": "Microsoft.ITrigger" [](start = 17, length = 28)

Shouldn't this just be Microsoft.Trigger? #Resolved

@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"title": "Microsoft ActivityTemplates",
"description": "Components which are IActivityTemplates",
"description": "Components which are ActivityTemplate",
Copy link
Contributor

Choose a reason for hiding this comment

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

Components which are ActivityTemplat [](start = 20, length = 36)

ActivityTemplate components would be clearer.

"title": "Microsoft ILanguageGenerator",
"description": "Union of components which implement the ILanguageGenerator interface",
"title": "Microsoft LanguageGenerator",
"description": "Components which dervie from the LanguageGenerator class",
Copy link
Contributor

Choose a reason for hiding this comment

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

dervie [](start = 37, length = 6)

spelling

@@ -1,7 +1,7 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you decide to keep the schema names as IX when they are interfaces in the schema?

@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$role": "implements(Microsoft.EntityRecognizers)",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Currency Entity Recognizer",
"description": "Recognizer which recognizes currency.",
Copy link
Contributor

Choose a reason for hiding this comment

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

"Recognizer which recognizes currency.", [](start = 19, length = 40)

"Currency recognizer" and we are inconsistent about period or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would rename all of these, "Recognizer which recognizes X" is just wordy and hides the most important part, i.e. X.


In reply to: 395805747 [](ancestors = 395805747)

@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$role": "implements(Microsoft.EntityRecognizers)",
"$role": "implements(Microsoft.IEntityRecognizer)",
"title": "Mentions Entity Recognizer",
"description": "Recognizer which recognizes @Mentions",
Copy link
Contributor

Choose a reason for hiding this comment

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

Mentions [](start = 49, length = 8)

No period.

@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/botbuilder-dotnet/master/schemas/component.schema",
"$role": "implements(Microsoft.ITriggerCondition)",
"$role": "implements(Microsoft.ITrigger)",
"title": "On cancel dialog",
"description": "Actions to perform on cancel dialog event.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Actions to perform on cancel dialog event. [](start = 20, length = 42)

On cancel event actions

@@ -791,148 +791,8 @@
}
]
},
"Microsoft.SkillDialog": {
Copy link
Contributor

Choose a reason for hiding this comment

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

SkillDialog [](start = 19, length = 11)

Was this deleted?

"title": "Microsoft.SkillDialog",
"description": "Begin a remote skill dialog.",
"$ref": "#/definitions/Microsoft.SkillDialog"
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this in here and not sdk.schema?

Copy link
Contributor

@chrimc62 chrimc62 left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R9 Release 9 - May 15th, 2020
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants