Skip to content

Commit b5f83ff

Browse files
committed
Merge branch '7.3' into 8.0.3
# Conflicts: # avni-server-api/src/main/java/org/avni/server/importer/batch/csv/writer/SubjectWriter.java
2 parents 13a6b5e + 8b351c2 commit b5f83ff

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ jobs:
233233
- image: cimg/deploy:2023.09
234234
working_directory: ~/
235235
steps:
236+
- aws-cli/setup:
237+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
238+
region: "ap-south-1"
239+
- setup_server_access:
240+
instance-id: "i-0879e9c88952968ea"
241+
availability-zone: "ap-south-1a"
236242
- deploy_as_service:
237243
env: "staging"
238244

@@ -249,6 +255,12 @@ jobs:
249255
- image: cimg/deploy:2023.09
250256
working_directory: ~/
251257
steps:
258+
- aws-cli/setup:
259+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
260+
region: "ap-south-1"
261+
- setup_server_access:
262+
instance-id: "i-0cdce9ae698eb3462"
263+
availability-zone: "ap-south-1b"
252264
- deploy_as_service:
253265
env: "prerelease"
254266

@@ -257,6 +269,12 @@ jobs:
257269
- image: circleci/openjdk:8-jdk
258270
working_directory: ~/
259271
steps:
272+
- aws-cli/setup:
273+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
274+
region: "ap-south-1"
275+
- setup_server_access:
276+
instance-id: "i-0f30399b30e24a49b"
277+
availability-zone: "ap-south-1a"
260278
- deploy:
261279
hostname: "ssh.perf.avniproject.org"
262280

@@ -265,6 +283,12 @@ jobs:
265283
- image: cimg/deploy:2023.09
266284
working_directory: ~/
267285
steps:
286+
- aws-cli/setup:
287+
role_arn: "arn:aws:iam::118388513628:role/avni_circleci_instance_connect"
288+
region: "ap-south-1"
289+
- setup_server_access:
290+
instance-id: "i-07df2679f68762a68"
291+
availability-zone: "ap-south-1a"
268292
- deploy_as_service:
269293
env: "prod"
270294

avni-server-api/src/main/java/org/avni/server/domain/AddressLevel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public boolean containsSubLocation(String title, AddressLevelType type) {
126126
return null !=
127127
subLocations
128128
.stream()
129-
.filter(location -> location.getTitle().equals(title) &&
129+
.filter(location -> location.getTitle().equalsIgnoreCase(title) &&
130130
location.getType().equals(type)
131131
).findFirst()
132132
.orElse(null);
@@ -137,7 +137,7 @@ public boolean containsSubLocationExcept(String title, AddressLevelType type, Ad
137137
subLocations
138138
.stream()
139139
.filter(location -> !location.getId().equals(exclude.getId()))
140-
.filter(location -> location.getTitle().equals(title) &&
140+
.filter(location -> location.getTitle().equalsIgnoreCase(title) &&
141141
location.getType().equals(type)
142142
).findFirst()
143143
.orElse(null);

0 commit comments

Comments
 (0)