Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pelias synonyms file #547

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ private String makeWebhookRequest() {
PeliasWebhookRequestBody peliasWebhookRequestBody = new PeliasWebhookRequestBody();
peliasWebhookRequestBody.gtfsFeeds = gtfsFeeds;
peliasWebhookRequestBody.csvFiles = deployment.peliasCsvFiles;
peliasWebhookRequestBody.peliasSynonymsBase64 = deployment.peliasSynonymsBase64;
peliasWebhookRequestBody.logUploadUrl = logUploadS3URI.toString();
peliasWebhookRequestBody.deploymentId = deployment.id;
peliasWebhookRequestBody.resetDb = deployment.peliasResetDb;
Expand Down Expand Up @@ -218,6 +219,8 @@ private static class PeliasWebhookRequestBody {
public String logUploadUrl;
public String deploymentId;
public boolean resetDb;

public String peliasSynonymsBase64;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public class Deployment extends Model implements Serializable {
public boolean peliasResetDb;
public List<String> peliasCsvFiles = new ArrayList<>();

public String peliasSynonymsBase64;

/**
* Get parent project for deployment. Note: at one point this was a JSON property of this class, but severe
* performance issues prevent this field from scaling to be fetched/assigned to a large collection of deployments.
Expand Down
Loading