Skip to content

Commit 8f5a315

Browse files
author
KIvanow
committed
RI-6336 update naming based on feedback from the PR
1 parent e3f1735 commit 8f5a315

28 files changed

+93
-94
lines changed

redisinsight/api/src/modules/browser/keys/dto/get.keys-info.dto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class GetKeyInfoDto extends KeyDto {
1111
default: false,
1212
})
1313
@IsOptional()
14-
getSize?: boolean;
14+
includeSize?: boolean;
1515
}
1616

1717
export class GetKeysInfoDto {
@@ -46,13 +46,13 @@ export class GetKeysInfoDto {
4646
default: true,
4747
})
4848
@IsOptional()
49-
getSize?: boolean;
49+
includeSize?: boolean;
5050

5151
@ApiPropertyOptional({
5252
description: 'Flag to determine if TTL should be requested and shown in the response',
5353
type: Boolean,
5454
default: true,
5555
})
5656
@IsOptional()
57-
getTtl?: boolean;
57+
includeTTL?: boolean;
5858
}

redisinsight/api/src/modules/browser/keys/key-info/strategies/hash.key-info.strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('HashKeyInfoStrategy', () => {
3535
describe('getInfo', () => {
3636
const key = getKeyInfoResponse.name;
3737

38-
describe('when getSize is true', () => {
38+
describe('when includeSize is true', () => {
3939
it('should return all info in single pipeline', async () => {
4040
when(mockStandaloneRedisClient.sendPipeline)
4141
.calledWith([
@@ -60,7 +60,7 @@ describe('HashKeyInfoStrategy', () => {
6060
});
6161
});
6262

63-
describe('when getSize is false', () => {
63+
describe('when includeSize is false', () => {
6464
it('should return appropriate value', async () => {
6565
when(mockStandaloneRedisClient.sendPipeline)
6666
.calledWith([

redisinsight/api/src/modules/browser/keys/key-info/strategies/hash.key-info.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export class HashKeyInfoStrategy extends KeyInfoStrategy {
1212
client: RedisClient,
1313
key: RedisString,
1414
type: string,
15-
getSize: boolean,
15+
includeSize: boolean,
1616
): Promise<GetKeyInfoResponse> {
1717
this.logger.debug(`Getting ${RedisDataType.Hash} type info.`);
1818

19-
if (getSize !== false) {
19+
if (includeSize !== false) {
2020
const [
2121
[, ttl = null],
2222
[, length = null],

redisinsight/api/src/modules/browser/keys/key-info/strategies/key-info.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export abstract class KeyInfoStrategy {
1111
client: RedisClient,
1212
key: RedisString,
1313
type: string,
14-
getSize: boolean,
14+
includeSize: boolean,
1515
): Promise<GetKeyInfoResponse>;
1616
}

redisinsight/api/src/modules/browser/keys/key-info/strategies/list.key-info.strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('ListKeyInfoStrategy', () => {
3535
describe('getInfo', () => {
3636
const key = getKeyInfoResponse.name;
3737

38-
describe('when getSize is true', () => {
38+
describe('when includeSize is true', () => {
3939
it('should return all info in single pipeline', async () => {
4040
when(mockStandaloneRedisClient.sendPipeline)
4141
.calledWith([
@@ -60,7 +60,7 @@ describe('ListKeyInfoStrategy', () => {
6060
});
6161
});
6262

63-
describe('when getSize is false', () => {
63+
describe('when includeSize is false', () => {
6464
it('should return appropriate value', async () => {
6565
when(mockStandaloneRedisClient.sendPipeline)
6666
.calledWith([

redisinsight/api/src/modules/browser/keys/key-info/strategies/list.key-info.strategy.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ export class ListKeyInfoStrategy extends KeyInfoStrategy {
1212
client: RedisClient,
1313
key: RedisString,
1414
type: string,
15-
getSize: boolean,
15+
includeSize: boolean,
1616
): Promise<GetKeyInfoResponse> {
1717
this.logger.debug(`Getting ${RedisDataType.List} type info.`);
18-
console.log('getSize getSize getSize')
19-
if (getSize !== false) {
18+
if (includeSize !== false) {
2019
const [
2120
[, ttl = null],
2221
[, length = null],

redisinsight/api/src/modules/browser/keys/key-info/strategies/rejson-rl.key-info.strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('RejsonRlKeyInfoStrategy', () => {
3737
const key = getKeyInfoResponse.name;
3838
const path = '.';
3939

40-
describe('when getSize is true', () => {
40+
describe('when includeSize is true', () => {
4141
it('should return all info in single pipeline for object type', async () => {
4242
when(mockStandaloneRedisClient.sendPipeline)
4343
.calledWith([
@@ -74,7 +74,7 @@ describe('RejsonRlKeyInfoStrategy', () => {
7474
});
7575
});
7676

77-
describe('when getSize is false', () => {
77+
describe('when includeSize is false', () => {
7878
it('should return appropriate value for key that store object', async () => {
7979
when(mockStandaloneRedisClient.sendPipeline)
8080
.calledWith([

redisinsight/api/src/modules/browser/keys/key-info/strategies/rejson-rl.key-info.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export class RejsonRlKeyInfoStrategy extends KeyInfoStrategy {
1212
client: RedisClient,
1313
key: RedisString,
1414
type: string,
15-
getSize: boolean,
15+
includeSize: boolean,
1616
): Promise<GetKeyInfoResponse> {
1717
this.logger.debug(`Getting ${RedisDataType.JSON} type info.`);
1818

19-
if (getSize !== false) {
19+
if (includeSize !== false) {
2020
const [
2121
[, ttl = null],
2222
[, size = null],

redisinsight/api/src/modules/browser/keys/key-info/strategies/set.key-info.strategy.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('SetKeyInfoStrategy', () => {
3535
describe('getInfo', () => {
3636
const key = getKeyInfoResponse.name;
3737

38-
describe('when getSize is true', () => {
38+
describe('when includeSize is true', () => {
3939
it('should return all info in single pipeline', async () => {
4040
when(mockStandaloneRedisClient.sendPipeline)
4141
.calledWith([
@@ -60,7 +60,7 @@ describe('SetKeyInfoStrategy', () => {
6060
});
6161
});
6262

63-
describe('when getSize is false', () => {
63+
describe('when includeSize is false', () => {
6464
it('should return appropriate value', async () => {
6565
when(mockStandaloneRedisClient.sendPipeline)
6666
.calledWith([

redisinsight/api/src/modules/browser/keys/key-info/strategies/set.key-info.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export class SetKeyInfoStrategy extends KeyInfoStrategy {
1212
client: RedisClient,
1313
key: RedisString,
1414
type: string,
15-
getSize: boolean,
15+
includeSize: boolean,
1616
): Promise<GetKeyInfoResponse> {
1717
this.logger.debug(`Getting ${RedisDataType.Set} type info.`);
1818

19-
if (getSize !== false) {
19+
if (includeSize !== false) {
2020
const [
2121
[, ttl = null],
2222
[, length = null],

0 commit comments

Comments
 (0)