Skip to content

Commit

Permalink
cleanup for test merge
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Dec 9, 2024
1 parent 2d116dd commit 9fd868a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const today = (dataform.projectConfig.vars.today ? dataform.projectConfig.vars.today : new Date().toISOString()).substring(0, 10)
const currentMonth = '2024-11-01' // TODO: today.substring(0, 8) + '01'
const currentMonth = today.substring(0, 8) + '01'
function fnDateUnderscored (dateStr) {
return dateStr.replaceAll('-', '_')
}
Expand Down
3 changes: 1 addition & 2 deletions infra/tf/function_dataform_export.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ resource "google_pubsub_topic" "bigquery_data_updated" {
}

# Logs sink for Dataform triggers
# TODO change dataform_repository_id to PROD
resource "google_logging_project_sink" "dataform_export_triggers" {
name = "dataform-export-triggers"
destination = "pubsub.googleapis.com/projects/${local.project}/topics/bigquery-data-updated"
filter = <<EOT
-- PROD dataform
protoPayload.authenticationInfo.principalEmail="[email protected]"
protoPayload.serviceData.jobCompletedEvent.job.jobConfiguration.labels.dataform_repository_id="crawl-data-test"
protoPayload.serviceData.jobCompletedEvent.job.jobConfiguration.labels.dataform_repository_id="crawl-data"
--successful query
protoPayload.resourceName=~"projects/httparchive/jobs/dataform-gcp-"
Expand Down

0 comments on commit 9fd868a

Please sign in to comment.