Skip to content

[Merged by Bors] - fix: add optional platform data to nodes (PL-000)#353

Closed
DecathectZero wants to merge 2 commits into
masterfrom
tyler/add-platform-type/PL-000
Closed

[Merged by Bors] - fix: add optional platform data to nodes (PL-000)#353
DecathectZero wants to merge 2 commits into
masterfrom
tyler/add-platform-type/PL-000

Conversation

@DecathectZero

@DecathectZero DecathectZero commented Aug 15, 2022

Copy link
Copy Markdown
Member

Fixes or implements PL-000

Brief description. What is this change?

I noticed in https://github.com/voiceflow/general-service/pull/384 we were casting many nodes:
} as GoogleNode.Capture.Node;
} as GoogleNode.Interaction.Node;

using as is usual not the best pattern and we should want to define the type so everything is expected.

I looked everywhere where we write platform: context.platform,

@DecathectZero

Copy link
Copy Markdown
Member Author

bors r+

bors-vf Bot pushed a commit that referenced this pull request Aug 15, 2022
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements PL-000**

### Brief description. What is this change?
I noticed in voiceflow/general-service#384 we were casting many nodes:
`} as GoogleNode.Capture.Node;`
`} as GoogleNode.Interaction.Node;`

using `as` is usual not the best pattern and we should want to define the type so everything is expected.

I looked everywhere where we write `platform: context.platform,`


Co-authored-by: Tyler Han <tylerhan97@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bors-vf

bors-vf Bot commented Aug 15, 2022

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors-vf bors-vf Bot changed the title fix: add optional platform data to nodes (PL-000) [Merged by Bors] - fix: add optional platform data to nodes (PL-000) Aug 15, 2022
@bors-vf bors-vf Bot closed this Aug 15, 2022
@bors-vf bors-vf Bot deleted the tyler/add-platform-type/PL-000 branch August 15, 2022 14:52
filipemerker pushed a commit that referenced this pull request Aug 19, 2022
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements PL-000**

### Brief description. What is this change?
I noticed in https://github.com/voiceflow/general-service/pull/384 we were casting many nodes:
`} as GoogleNode.Capture.Node;`
`} as GoogleNode.Interaction.Node;`

using `as` is usual not the best pattern and we should want to define the type so everything is expected.

I looked everywhere where we write `platform: context.platform,`


Co-authored-by: Tyler Han <tylerhan97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants