Skip to content

Commit

Permalink
Fixes small bug on persistence config parse
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Dec 7, 2023
1 parent e81f691 commit 290f512
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/Caches/Create/ReviewCacheConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ReviewCacheConfig = (props: {
onChange={onChangeConfig}
isLineNumbersVisible
code={config}
height="sizeToFit"
height={"400px"}
isCopyEnabled
isDarkTheme={theme === 'dark'}
copyButtonSuccessTooltipText={t('caches.create.review.copied-tooltip')}
Expand Down
12 changes: 9 additions & 3 deletions src/services/cacheConfigUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,15 @@ export class CacheConfigUtils {
cache[cacheType]['persistence'] = {};
}
cache[cacheType]['persistence'].passivation = data.feature.persistentCache.passivation;
cache[cacheType]['persistence']['connection-attempts'] = data.feature.persistentCache.connectionAttempts;
cache[cacheType]['persistence']['connection-interval'] = data.feature.persistentCache.connectionInterval;
cache[cacheType]['persistence']['availability-interval'] = data.feature.persistentCache.availabilityInterval;
if (data.feature.persistentCache.connectionAttempts) {
cache[cacheType]['persistence']['connection-attempts'] = data.feature.persistentCache.connectionAttempts;
}
if (data.feature.persistentCache.connectionInterval) {
cache[cacheType]['persistence']['connection-interval'] = data.feature.persistentCache.connectionInterval;
}
if (data.feature.persistentCache.availabilityInterval) {
cache[cacheType]['persistence']['availability-interval'] = data.feature.persistentCache.availabilityInterval;
}
};

if (data.advanced.concurrencyLevel || data.advanced.striping || data.advanced.lockAcquisitionTimeout) locking();
Expand Down

0 comments on commit 290f512

Please sign in to comment.