Skip to content

[FFM-11856]: Store and retrieve previous and current version of the feature config from the fileStore.#195

Merged
akiraqb merged 3 commits intoFFM-11844from
FFM-11856
Aug 8, 2024
Merged

[FFM-11856]: Store and retrieve previous and current version of the feature config from the fileStore.#195
akiraqb merged 3 commits intoFFM-11844from
FFM-11856

Conversation

@akiraqb
Copy link
Contributor

@akiraqb akiraqb commented Aug 7, 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.

@akiraqb akiraqb marked this pull request as ready for review August 7, 2024 15:18
@akiraqb akiraqb changed the base branch from FFM-11844 to main August 7, 2024 15:19
@akiraqb akiraqb changed the base branch from main to FFM-11844 August 7, 2024 15:20
final String previousFlagKey = formatPrevFlagKey(identifier);
if (store != null) {
store.set(previousFlagKey, previousFeatureConfig);
cache.delete(previousFlagKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

question: When store is present, do we also need to delete the current flag key from the cache?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apparently so - i did not find any documentation about that but the log statement in the previous version of the code says - stored and cache invalidated.

Copy link
Contributor

@erdirowlands erdirowlands 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! again just a small query.

@akiraqb akiraqb merged commit 80307b1 into FFM-11844 Aug 8, 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