Skip to content

Commit

Permalink
fix: removed real id's from code base
Browse files Browse the repository at this point in the history
  • Loading branch information
RajuGujjalapati committed May 23, 2024
1 parent 3866dfe commit 3960564
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion brickflow/engine/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class SqlTask(JobsTasksSqlTask):
For SQL dashboards: SqlTask(dashboard_id="Your_Dashboard_ID",
dashboard_custom_subject="Raju Legacy Dashboard Test", pause_subscriptions=True,
subscriptions={"usernames":["YOUR_USERNAME", 'YOUR_USERNAME'],
"destination_id":["434354545"]},warehouse_id="your_warehouse_id")
"destination_id":["your_destination_id"]},warehouse_id="your_warehouse_id")
"""

dashboard_id: Optional[str] = None
Expand Down
6 changes: 3 additions & 3 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Here's an example of how to use the `SQL` Task type:
@wf.sql_task
def sample_sql_task_query():
return SqlTask(
query_id="4e16dc24-e30d-4683-96d7-cf7da4e263ad", warehouse_id="your_warehouse_id"
query_id="your_sql_query_id", warehouse_id="your_warehouse_id"
)


Expand Down Expand Up @@ -377,7 +377,7 @@ def sample_sql_dashboard() -> any:
pause_subscriptions=True,
subscriptions={
"usernames": ["YOUR_USERNAME", "YOUR_USERNAME"],
"destination_id": ["434354545"],
"destination_id": ["your_destination_id"],
},
warehouse_id="your_warehouse_id",
)
Expand All @@ -391,7 +391,7 @@ def sample_sql_dashboard_task() -> any:
pause_subscriptions=True,
subscriptions={
"usernames": ["YOUR_USERNAME", "YOUR_USERNAME"],
"destination_id": ["434354545"],
"destination_id": ["your_destination_id"],
},
warehouse_id="your_warehouse_id",
)
Expand Down
4 changes: 2 additions & 2 deletions examples/brickflow_examples/workflows/demo_wf.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def sample_sql_task_query() -> any:
SqlTask: A SqlTask object with a query_id and warehouse_id.
"""
return SqlTask(
query_id="4e16dc24-e30d-4683-96d7-cf7da4e263ad",
query_id="your_sql_query_id",
warehouse_id="your_warehouse_id",
)

Expand Down Expand Up @@ -407,7 +407,7 @@ def sample_sql_dashboard() -> any:
pause_subscriptions=True,
subscriptions={
"usernames": ["YOUR_USERNAME", "YOUR_USERNAME"],
"destination_id": ["434354545"],
"destination_id": ["your_destination_id"],
},
warehouse_id="your_warehouse_id",
)
Expand Down
4 changes: 2 additions & 2 deletions tests/codegen/expected_bundles/dev_bundle_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ targets:
subscriptions:
- user_name: "YOUR_USERNAME"
- user_name: "YOUR_USERNAME"
- destination_id: "434354545"
- destination_id: "your_destination_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_dashboard"
timeout_seconds: null
Expand All @@ -373,7 +373,7 @@ targets:
retry_on_timeout: null
sql_task:
query:
query_id: "4e16dc24-e30d-4683-96d7-cf7da4e263ad"
query_id: "your_sql_query_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_task_query"
timeout_seconds: null
Expand Down
4 changes: 2 additions & 2 deletions tests/codegen/expected_bundles/dev_bundle_polyrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ targets:
subscriptions:
- user_name: "YOUR_USERNAME"
- user_name: "YOUR_USERNAME"
- destination_id: "434354545"
- destination_id: "your_destination_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_dashboard"
timeout_seconds: null
Expand All @@ -373,7 +373,7 @@ targets:
retry_on_timeout: null
sql_task:
query:
query_id: "4e16dc24-e30d-4683-96d7-cf7da4e263ad"
query_id: "your_sql_query_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_task_query"
timeout_seconds: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ targets:
subscriptions:
- user_name: "YOUR_USERNAME"
- user_name: "YOUR_USERNAME"
- destination_id: "434354545"
- destination_id: "your_destination_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_dashboard"
timeout_seconds: null
Expand All @@ -467,7 +467,7 @@ targets:
retry_on_timeout: null
sql_task:
query:
query_id: "4e16dc24-e30d-4683-96d7-cf7da4e263ad"
query_id: "your_sql_query_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_task_query"
timeout_seconds: null
Expand Down
4 changes: 2 additions & 2 deletions tests/codegen/expected_bundles/local_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ targets:
subscriptions:
- user_name: "YOUR_USERNAME"
- user_name: "YOUR_USERNAME"
- destination_id: "434354545"
- destination_id: "your_destination_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_dashboard"
timeout_seconds: null
Expand All @@ -369,7 +369,7 @@ targets:
retry_on_timeout: null
sql_task:
query:
query_id: "4e16dc24-e30d-4683-96d7-cf7da4e263ad"
query_id: "your_sql_query_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_task_query"
timeout_seconds: null
Expand Down
4 changes: 2 additions & 2 deletions tests/codegen/expected_bundles/local_bundle_prefix_suffix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ targets:
subscriptions:
- user_name: "YOUR_USERNAME"
- user_name: "YOUR_USERNAME"
- destination_id: "434354545"
- destination_id: "your_destination_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_dashboard"
timeout_seconds: null
Expand All @@ -370,7 +370,7 @@ targets:
retry_on_timeout: null
sql_task:
query:
query_id: "4e16dc24-e30d-4683-96d7-cf7da4e263ad"
query_id: "your_sql_query_id"
warehouse_id: "your_warehouse_id"
task_key: "sample_sql_task_query"
timeout_seconds: null
Expand Down
4 changes: 2 additions & 2 deletions tests/codegen/sample_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run_job_task_a():
@wf.sql_task
def sample_sql_task_query() -> any:
return SqlTask(
query_id="4e16dc24-e30d-4683-96d7-cf7da4e263ad",
query_id="your_sql_query_id",
warehouse_id="your_warehouse_id",
)

Expand Down Expand Up @@ -113,7 +113,7 @@ def sample_sql_dashboard() -> any:
pause_subscriptions=True,
subscriptions={
"usernames": ["YOUR_USERNAME", "YOUR_USERNAME"],
"destination_id": ["434354545"],
"destination_id": ["your_destination_id"],
},
warehouse_id="your_warehouse_id",
)
Expand Down

0 comments on commit 3960564

Please sign in to comment.