This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Integration with google pubsub * temp ignore * updating topic name * Update versions * Log more info about pub sub * Add file name and remove upload to sftp/gcs * Removing template, gcs and sftp services from the export processor * delete everything related to sftp, redis and freemarker * Removing the event publisher * Remove template mapping service * fix missing rabbit template bean * Delteing unused classes * Drop template mapping table * incorrectly changed release 21 * Removing feedback publisher and cancel action functionality * renaming cron jobs to match helm chart convention * Removing commented out test * Removing integration test as it no longer makes sense
- Loading branch information
1 parent
500f104
commit 9963d19
Showing
57 changed files
with
341 additions
and
1,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
src/main/java/uk/gov/ons/ctp/common/util/InputStreamUtils.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
src/main/java/uk/gov/ons/ctp/response/action/export/config/DataGrid.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/main/java/uk/gov/ons/ctp/response/action/export/config/DataSourceConfiguration.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/uk/gov/ons/ctp/response/action/export/config/ExportSchedule.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/main/java/uk/gov/ons/ctp/response/action/export/config/GCS.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/main/java/uk/gov/ons/ctp/response/action/export/config/PubsubConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package uk.gov.ons.ctp.response.action.export.config; | ||
|
||
import com.google.cloud.pubsub.v1.Publisher; | ||
import com.google.pubsub.v1.TopicName; | ||
import java.io.IOException; | ||
import lombok.extern.log4j.Log4j; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Log4j | ||
@Configuration | ||
public class PubsubConfig { | ||
|
||
@Bean | ||
public Publisher publisherSupplier( | ||
@Value("${gcp.project}") String project, @Value("${gcp.topic}") String topic) | ||
throws IOException { | ||
log.info("creating pubsub publish for topic " + topic + " in project " + project); | ||
TopicName topicName = TopicName.of(project, topic); | ||
return Publisher.newBuilder(topicName).build(); | ||
} | ||
} |
33 changes: 0 additions & 33 deletions
33
src/main/java/uk/gov/ons/ctp/response/action/export/domain/TemplateMapping.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/main/java/uk/gov/ons/ctp/response/action/export/message/ActionFeedbackPublisher.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/main/java/uk/gov/ons/ctp/response/action/export/message/EventPublisher.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.