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

[Merged by Bors] - feat: added types for compiled cms variables (CV3-942) #501

Closed

Conversation

zhihil
Copy link
Contributor

@zhihil zhihil commented Feb 7, 2024

Fixes or implements CV3-942

Brief description. What is this change?

Adds serialized .cmsVariables mapping to the surveyor context type. This is necessary to provide strict typing to

Implementation details. How do you make this change?

Added .cmsVariables property to the surveyor context. Added additional typings for CMS variables to support this change.

This change duplicates a similar change in @voiceflow/dtos. The changes in @voiceflow/dtos should be the canonical way of implementing the types, but the change was duplicated here to reduce the effort required to refactor the general-runtime. In the future, the general-runtime should be refactored to use @voiceflow/dtos.

Setup information

N/A

Deployment Notes

N/A

Related PRs

Checklist

  • Breaking changes have been communicated, including:
    • New required environment variables
    • Renaming of interfaces (API routes, request/response interface, etc)
  • New environment variables have been deployed
  • Appropriate tests have been written
    • Bug fixes are accompanied by an updated or new test
    • New features are accompanied by a new test

@zhihil zhihil added the in progress In progress, should not be merged label Feb 7, 2024
@zhihil zhihil self-assigned this Feb 7, 2024
@zhihil zhihil force-pushed the brennan/add-default-value-to-initialization/CV3-942 branch from 88cfeef to 8443cee Compare February 7, 2024 15:51
@zhihil zhihil added ready for review and removed in progress In progress, should not be merged labels Feb 7, 2024
@zhihil zhihil force-pushed the brennan/add-default-value-to-initialization/CV3-942 branch from 1aa83d8 to 1df171d Compare February 7, 2024 16:43
Copy link

sonarqubecloud bot commented Feb 7, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@zhihil
Copy link
Contributor Author

zhihil commented Feb 9, 2024

bors r+

bors-vf bot pushed a commit that referenced this pull request Feb 9, 2024
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements CV3-942**

### Brief description. What is this change?

<!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion -->

Adds serialized `.cmsVariables` mapping to the surveyor context type. This is necessary to provide strict typing to
@bors-vf
Copy link

bors-vf bot commented Feb 9, 2024

Pull request successfully merged into master.

Build succeeded:

@bors-vf bors-vf bot changed the title feat: added types for compiled cms variables (CV3-942) [Merged by Bors] - feat: added types for compiled cms variables (CV3-942) Feb 9, 2024
@bors-vf bors-vf bot closed this Feb 9, 2024
@bors-vf bors-vf bot deleted the brennan/add-default-value-to-initialization/CV3-942 branch February 9, 2024 21:20
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