Skip to content
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

[FF-4069] Update plain and obfuscated configs for flags for variation of type STRING with special characters in values #119

Conversation

sgdreamer7
Copy link
Collaborator

Eppo Internal:
🎟️ Ticket: FF-4069 - Adjust Shared SDK Test Data to Ensure SDKs can handle non-alphanumeric characters in String values

Description:
SDKs need to be able to handle special characters in values for the variations of type STRING. This PR adds a test cases to check all possible allowed special characters as values of the variations. Test cases cover single inclusion of special character, multiple special characters divided by regular ones, multiple repeating special characters as a whole variation value.

@@ -1355,6 +1355,1799 @@
"doLog": false
}
]
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

💪

Copy link
Collaborator

@typotter typotter left a comment

Choose a reason for hiding this comment

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

My only regret is that we have no README in this repo for you to update with instructions on how to update the obfuscated testing config. (feel free to add ;))

@@ -0,0 +1,98 @@
export interface ITargetingRuleCondition {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be useful to get these types from the Eppo js-common-sdk package?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It would be nice. But I couldn't find them in https://github.com/Eppo-exp/js-sdk-common.

import { obfuscateUniversalFlagConfig } from "./obfuscation.helper";
import { UniversalFlagConfig } from "./ufc.dto";

describe('Obfuscate UFC config', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🚀

@sgdreamer7
Copy link
Collaborator Author

My only regret is that we have no README in this repo for you to update with instructions on how to update the obfuscated testing config. (feel free to add ;))

Sure, I will add/updated README in this PR.

@MagicMarka
Copy link
Collaborator

I think @typotter knows this repo the best, so if he approves, you are good to go.

@sgdreamer7
Copy link
Collaborator Author

My only regret is that we have no README in this repo for you to update with instructions on how to update the obfuscated testing config. (feel free to add ;))

Readme updated here b18b1d1.

@sgdreamer7 sgdreamer7 merged commit 08704a9 into main Mar 5, 2025
36 of 40 checks passed
@sgdreamer7 sgdreamer7 deleted the vlod/ff-4069-adjust-shared-sdk-test-data-to-ensure-sdks-can-handle-non branch March 5, 2025 13:35
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