Skip to content

Conversation

lahirumaramba
Copy link
Member

@lahirumaramba lahirumaramba commented Aug 27, 2021

go/admin-sdk-rc-parameter-value-types

  • Add RC Parameter Value Type.

  • Update unit tests.
    - Integration tests will be added following the REST API launch.
    - Added release:stage to trigger existing integration tests (to test backward compatibility).
    - Do not merge until the BE is updated.

  • Update integration tests.

RELEASE NOTE: Added Remote Config Parameter Value Type Support.

@lahirumaramba lahirumaramba force-pushed the lm-rc-param-valuetype branch from 896c9fa to 63d2de2 Compare August 27, 2021 21:42
@lahirumaramba lahirumaramba marked this pull request as ready for review September 7, 2021 18:36
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM with a couple of nits.

assertNotEquals(parameterOne, parameterFive);
assertNotEquals(parameterOne, parameterSeven);
assertNotEquals(parameterThree, parameterFive);
assertNotEquals(parameterThree, parameterSeven);
Copy link
Contributor

Choose a reason for hiding this comment

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

May be also test for Equals() with parameter value types?

Copy link
Member Author

Choose a reason for hiding this comment

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

Line 100 has an assertEquals() for parameter value types. Would that work?

.setDefaultValue(ParameterValue.inAppDefault())
.setDescription("greeting text")
.setConditionalValues(CONDITIONAL_VALUES)
.setValueType(ParameterValueType.STRING)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have coverage here for parameters without types?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Updated to have a parameter without a type.

@lahirumaramba lahirumaramba merged commit 18826db into master Sep 22, 2021
@lahirumaramba lahirumaramba deleted the lm-rc-param-valuetype branch September 22, 2021 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate release-note

3 participants