Skip to content

feat(rc): Add Remote Config Parameter Value Type support #591

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
merged 2 commits into from
Sep 22, 2021

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(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?

"greeting_text", new Parameter()
.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants