Skip to content

Commit d073838

Browse files
author
Sachin Maheshwari
committed
jira-plat-130
1 parent 4437412 commit d073838

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ workflows:
8888
branches:
8989
only:
9090
- dev
91-
- dev-msinteg
91+
- feature/jira-plat-130
9292
- dev-ecs
9393
- "build-prod":
9494
context : org-global
9595
filters:
9696
branches:
9797
only:
9898
- master
99-
- master-ecs
99+
- master-ecs

service/src/main/java/com/appirio/service/review/manager/ScoreManager.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public ScoreManager() throws SupplyException {
7272
ReviewItemDAO.class);
7373
this.scoreDAO = DAOFactory.getInstance().createDAO(ScoreDAO.class);
7474
this.projectResultDAO = DAOFactory.getInstance().createDAO(ProjectResultDAO.class);
75-
this.eventProducer = EventProducer.getInstance();
75+
/**
76+
//jira-plat-130, hard cut the legacy publishing
77+
this.eventProducer = EventProducer.getInstance();
78+
*/
79+
this.eventProducer = null;
7680
}
7781

7882
/**
@@ -356,7 +360,13 @@ public void updateScores(List<ReviewItem> reviewItems, AuthUser auth) throws Exc
356360
private void publishKafkaEvent(JsonNode json, String topic) {
357361
// fire an event on to the kafka bus
358362
try {
359-
eventProducer.publish(topic, json);
363+
if (eventProducer != null) {
364+
eventProducer.publish(topic, json);
365+
} else {
366+
// jira-plat-130, hard cut the leagacy kafka
367+
368+
logger.info("jira-plat-130, hard cut the legacy publishing for topic: " + topic);
369+
}
360370
} catch (EmptyEventException e) {
361371
logger.info("Failed to publish message " + e.getMessage());
362372
} catch (EncodingEventException e) {

0 commit comments

Comments
 (0)