Skip to content

Conversation

@nmayorsplit
Copy link
Contributor

GO SPLIT COMMONS

What did you accomplish?

How do we test the changes introduced in this PR?

Extra Notes

@nmayorsplit nmayorsplit marked this pull request as ready for review November 13, 2025 17:59
@nmayorsplit nmayorsplit requested a review from a team as a code owner November 13, 2025 17:59
@sonarqube-pull-requests
Copy link

type FallbackTreatment struct {
Treatment string
Config string
Label *string
Copy link

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.

Copy link
Contributor Author

@nmayorsplit nmayorsplit Nov 14, 2025

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.

Comment on lines 12 to 15
GlobalFallbackTreatment: &FallbackTreatment{
Treatment: "global_treatment",
Config: "global_config",
},
Copy link

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,
},

Copy link
Contributor Author

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.

@nmayorsplit nmayorsplit merged commit c57cb46 into fallback-treatment Nov 14, 2025
2 checks passed
@nmayorsplit nmayorsplit deleted the FME-11056 branch November 14, 2025 21: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.

3 participants