Skip to content

[FFM-1848]: Functional and performance testing#198

Merged
akiraqb merged 6 commits intoFFM-11844from
FFM-11848
Aug 14, 2024
Merged

[FFM-1848]: Functional and performance testing#198
akiraqb merged 6 commits intoFFM-11844from
FFM-11848

Conversation

@akiraqb
Copy link
Contributor

@akiraqb akiraqb commented Aug 14, 2024

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

public FeatureConfig GetFeatureConfigFromFile() throws Exception {
try {
String relativePath =
"./src/test/resources/local-test-cases/basic_bool_string_for_repository.json";
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this file already exist ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

FeatureConfig pFlag = (FeatureConfig) cache.get(pFlagKey);
FeatureConfig cFlag = (FeatureConfig) cache.get(flagKey);

if (cFlag != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be a null check for pFlag as well here? I'm assuming there is an assumption that if we dont have the current then we wont have the previous.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if the previous flag does not exist we still want to package that to the snapshot even if its null.

Copy link
Contributor

@davejohnston davejohnston left a comment

Choose a reason for hiding this comment

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

This looks good, a minor comment just to check, but if youre happy go for it.

@akiraqb akiraqb marked this pull request as ready for review August 14, 2024 10:56
@akiraqb akiraqb merged commit fbd3ce1 into FFM-11844 Aug 14, 2024
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