Skip to content

feat: added GetFeatureVariableJSON. #317

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
Apr 28, 2020
Merged

Conversation

yasirfolio3
Copy link
Contributor

@yasirfolio3 yasirfolio3 commented Apr 22, 2020

Summary

  • added GetFeatureVariableJSON API.

Test Plan

  • FSC should pass.
  • Added Unit tests.

@yasirfolio3 yasirfolio3 requested a review from a team as a code owner April 22, 2020 05:54
@yasirfolio3 yasirfolio3 removed their assignment Apr 22, 2020
@coveralls
Copy link

coveralls commented Apr 22, 2020

Coverage Status

Coverage increased (+0.07%) to 98.78% when pulling 61d905b on yasir/featurevariablejson into 534c8a7 on master.

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

A slight change suggested. All other look good.

Comment on lines +51 to +53
if type == "string" && subType == "json" {
type = "json"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The same mapping should be in the other init() as well?

Comment on lines +27 to +34
enum CodingKeys: String, CodingKey {
case id
case key
case type
case subType
case defaultValue
}

Copy link
Contributor

Choose a reason for hiding this comment

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

We can drop this since all default names

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CodingKeys (Even if exactly the same as defaultNames) are required to be defined if we override init(from decoder: Decoder).

@yasirfolio3 yasirfolio3 removed their assignment Apr 24, 2020
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@pawels-optimizely pawels-optimizely left a comment

Choose a reason for hiding this comment

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

lgtm

@jaeopt jaeopt merged commit 943f8b9 into master Apr 28, 2020
@yasirfolio3 yasirfolio3 deleted the yasir/featurevariablejson branch April 29, 2020 07:32
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.

5 participants