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

feat(app): add value key to RTP type #14692

Merged
merged 5 commits into from
Mar 19, 2024
Merged

feat(app): add value key to RTP type #14692

merged 5 commits into from
Mar 19, 2024

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Mar 19, 2024

closes AUTH-216

Overview

Add the top level value key to the run time parameters type.

Test Plan

  • just check the code. i updated the mocks and the type

Changelog

  • update mocks
  • update type

Review requests

see test plan

Risk assessment

low

@jerader jerader requested a review from a team as a code owner March 19, 2024 16:53
@jerader jerader requested review from smb2268, koji, a team, y3rsh and ncdiehl11 and removed request for a team and smb2268 March 19, 2024 16:53
Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

lgtm
thank you for updating

@jerader jerader force-pushed the app_add-value-type-rtp branch from 37a21e8 to 735988f Compare March 19, 2024 17:17
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.35%. Comparing base (583dcf6) to head (c599644).
Report is 114 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #14692      +/-   ##
==========================================
- Coverage   67.56%   67.35%   -0.21%     
==========================================
  Files        2521     2485      -36     
  Lines       72251    71342     -909     
  Branches     9311     9012     -299     
==========================================
- Hits        48815    48053     -762     
+ Misses      21240    21146      -94     
+ Partials     2196     2143      -53     
Flag Coverage Δ
shared-data 75.94% <ø> (+0.62%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
app/src/pages/Protocols/hooks/index.ts 71.64% <ø> (ø)

... and 219 files with indirect coverage changes

@@ -621,6 +621,7 @@ interface BaseRunTimeParameter {
variableName: string
description: string
type: RunTimeParameterType
value: unknown
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe

Suggested change
value: unknown
value: string | number | boolean

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@shlokamin mentioned in standup that the value should be type any or unknown (but unknown is better) since i guess technically, a user could specify anything for their parameters. The value type in the choice object is also unknown for the same reason.

@jerader jerader merged commit b2e9b7b into edge Mar 19, 2024
35 checks passed
@jerader jerader deleted the app_add-value-type-rtp branch March 19, 2024 19:11
Carlos-fernandez pushed a commit that referenced this pull request May 20, 2024
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.

2 participants