Skip to content

Commit

Permalink
dbt: revert required fields, the UI now allow removing the object
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Nov 8, 2024
1 parent 40ad877 commit a492d45
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/dbt/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
)

type JobConfig struct {
JobID string `json:"job_id,omitempty" jsonschema:"title=Job ID,description=dbt job ID"`
AccountID string `json:"account_id,omitempty" jsonschema:"title=Account ID,description=dbt account ID"`
JobID string `json:"job_id" jsonschema:"title=Job ID,description=dbt job ID"`
AccountID string `json:"account_id" jsonschema:"title=Account ID,description=dbt account ID"`
AccessURL string `json:"access_url,omitempty" jsonschema:"title=Access URL,description=dbt access URL can be found in your Account Settings. See go.estuary.dev/dbt-cloud-trigger" jsonschema_extras:"pattern=^https://.+$"`
AccountPrefix string `json:"account_prefix,omitempty" jsonschema:"-"`
APIKey string `json:"api_key,omitempty" jsonschema:"title=API Key,description=dbt API Key" jsonschema_extras:"secret=true"`
AccountPrefix string `json:"account_prefix" jsonschema:"-"`
APIKey string `json:"api_key" jsonschema:"title=API Key,description=dbt API Key" jsonschema_extras:"secret=true"`
Cause string `json:"cause,omitempty" jsonschema:"title=Cause Message,description=You can set a custom 'cause' message for the job trigger. Defaults to 'Estuary Flow'."`
Mode string `json:"mode,omitempty" jsonschema:"title=Job Trigger Mode,description=Specifies how should already-running jobs be treated. Defaults to 'skip' which skips the trigger if a job is already running; 'replace' cancels the running job and runs a new one; while 'ignore' triggers a new job regardless of existing jobs.,enum=skip,enum=replace,enum=ignore,default=skip"`
Interval string `json:"interval,omitempty" jsonschema:"title=Minimum Run Interval,description=Minimum time between dbt job triggers. This interval is only triggered if data has been materialized by your task.,default=30m"`
Expand Down
5 changes: 5 additions & 0 deletions materialize-bigquery/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt job when new data is available"
}
Expand Down
5 changes: 5 additions & 0 deletions materialize-databricks/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
}
Expand Down
5 changes: 5 additions & 0 deletions materialize-mysql/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
},
Expand Down
5 changes: 5 additions & 0 deletions materialize-postgres/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
},
Expand Down
5 changes: 5 additions & 0 deletions materialize-redshift/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
},
Expand Down
5 changes: 5 additions & 0 deletions materialize-snowflake/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
}
Expand Down
5 changes: 5 additions & 0 deletions materialize-sqlserver/.snapshots/TestSpecification
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
},
"additionalProperties": false,
"type": "object",
"required": [
"job_id",
"account_id",
"api_key"
],
"title": "dbt Cloud Job Trigger",
"description": "Trigger a dbt Job when new data is available"
},
Expand Down

0 comments on commit a492d45

Please sign in to comment.