-
Notifications
You must be signed in to change notification settings - Fork 1
[FME-11056] Added fallback treatment and calculator #256
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
Conversation
|
SonarQube Quality Gate |
| type FallbackTreatment struct { | ||
| Treatment string | ||
| Config string | ||
| Label *string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If an instance of FallbackTreatment can be created by the customer, make sure they can't set the Label. Label is for our internal use only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I update go-client with these changes, I'll check this. But for now, this struct is internal.
| GlobalFallbackTreatment: &FallbackTreatment{ | ||
| Treatment: "global_treatment", | ||
| Config: "global_config", | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, we should be able to set fallbacks without Config with just a String representing the treatment. For example:
GlobalFallbackTreatment: "global_treatment",equals
GlobalFallbackTreatment: &FallbackTreatment{
Treatment: "global_treatment",
Config: nil,
},There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated test cases to include 'nil' in the config.








GO SPLIT COMMONS
What did you accomplish?
How do we test the changes introduced in this PR?
Extra Notes