Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[TypeScript][Virtual Assistant & Skill] Implement Dependency Injection #3559

Conversation

Batta32
Copy link
Collaborator

@Batta32 Batta32 commented Jul 15, 2020

Fix #3496

Purpose

What is the context of this pull request? Why is it being done?
We introduced inversifyjs library in order to add Dependency Injection functionality following parity with C#.

Changes

Are there any changes that need to be called out as significant or particularly difficult to grasp? (Include illustrative screenshots for context if applicable.)
The following changes were replicated in Virtual Assistant and Skill:

  • Refactor of index/dialogs folder in order to integrate Dependency Injection
  • Update tsconfig.json to be able to use Dependency Injection
  • Add constant and inversify.config.ts files to configure Dependency Injection functionality
  • Update package.json adding inversifyjs and reflect-metadata libraries
  • Fix tests VA/Skill and generator
  • Replicate changes in template

Tests

Is this covered by existing tests or new ones? If no, why not?
-

Feature Plan

Are there any remaining steps or dependencies before this issue can be fully resolved? If so, describe and link to any relevant pull requests or issues.
-

Checklist

General

  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the appropriate tests
  • I have updated related documentation

@peterinnesmsft peterinnesmsft added the Language: Typescript This issue is specifically related to C# implementations. label Sep 1, 2020
@peterinnesmsft peterinnesmsft self-assigned this Sep 1, 2020
Copy link
Contributor

@peterinnesmsft peterinnesmsft left a comment

Choose a reason for hiding this comment

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

Some formatting to fixes to apply, and also just some general questions about InversifyJS since I'm not overly familiar with it.

@Batta32
Copy link
Collaborator Author

Batta32 commented Sep 2, 2020

Thanks @peterinnesmsft for the feedback! We will be reviewing this as soon as possible.

@Batta32
Copy link
Collaborator Author

Batta32 commented Sep 10, 2020

@peterinnesmsft - we already applied the requested changes mentioned above!

@Batta32 Batta32 closed this Jan 8, 2021
@Batta32 Batta32 deleted the feature/southworks/dependency-injection-implementation branch June 2, 2021 22:17
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.

QnAMakerDialog is not created for different languages
5 participants