Akshat | TP-12345 | handle npe (#53)

* TP-12345 | handle npe when variants is null

* TP-12345 | handle npe when strategies is null

* TP-12345 | change back local_core.env

* TP-12345 | remove credentials from local_core.env

* TP-12345 | add dummy creds
This commit is contained in:
Akshat Soni
2023-04-13 12:58:14 +05:30
committed by GitHub Enterprise
parent 0c5830db16
commit baf5162b40
2 changed files with 12 additions and 7 deletions

View File

@@ -65,8 +65,12 @@ public class ExperimentMapper {
.experimentId(experimentEntity.getExperimentId())
.experimentName(experimentEntity.getName())
.description(experimentEntity.getDescription())
.strategies(jacksonUtils.stringToListObject(experimentEntity.getStrategies(), ActivationStrategy.class))
.variants(jacksonUtils.stringToListObject(experimentEntity.getVariants(), VariantDefinition.class))
.strategies(Objects.nonNull(experimentEntity.getStrategies())
? jacksonUtils.stringToListObject(experimentEntity.getStrategies(), ActivationStrategy.class)
: null)
.variants(Objects.nonNull(experimentEntity.getVariants())
? jacksonUtils.stringToListObject(experimentEntity.getVariants(), VariantDefinition.class)
: null)
.type(experimentEntity.getType())
.experimentInfo(mapExperimentInfoEntityToExperimentInfoDTO(experimentEntity.getExperimentInfo()))
.vertical(experimentEntity.getVertical())

View File

@@ -1,6 +1,7 @@
DATASOURCE_URL=jdbc:postgresql://dev-db-service-db.np.navi-tech.in:5432/litmus
DATASOURCE_USERNAME=service_user
DATASOURCE_PASSWORD=JRCFCMXUXBJHGZVTPBNTXHYCCFVMWN
REDIS_HOST=dev-env-redis.twod4l.0001.aps1.cache.amazonaws.com
DATASOURCE_URL=jdbc:postgresql://localhost:5432/litmus
DATASOURCE_USERNAME=postgres
DATASOURCE_PASSWORD=
REDIS_HOST=localhost
SEGMENT_S3_BUCKET=
DEFAULT_POLLING_TIME_SECONDS=300
DEFAULT_POLLING_TIME_SECONDS=300
LITMUS_PORTAL_BASE_URL=http://localhost:4000