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 all anomaly vars on all configuration levels #660

Conversation

ofek1weiss
Copy link
Contributor

No description provided.

Copy link

linear bot commented Feb 8, 2024

Copy link
Contributor

github-actions bot commented Feb 8, 2024

👋 @ofek1weiss
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in the elementary repository.

@@ -13,6 +13,7 @@

def pytest_addoption(parser):
parser.addoption("--target", action="store", default="postgres")
parser.addoption("--skip-init", action="store_true", default=False)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the tests i added just do run-operation and did not need the models, this flag was quite useful

@@ -1,13 +1,12 @@
{% macro get_test_argument(argument_name, value, model_graph_node) %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

differentiate between undefined and None

@@ -19,8 +19,6 @@
{# We use this macro to define and call vars, as the global vars defined in dbt_project.yml
of the package are not accessible at on-run-start and on-run-end #}
{% set default_config = {
'detection_period': elementary.get_period_default_var(period='day', count=2),
'training_period': elementary.get_period_default_var(period='day', count=14),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as these overwrite days_back and backfill_days, these default var values overwrite model/test values

@ofek1weiss ofek1weiss marked this pull request as ready for review February 8, 2024 13:49
@ofek1weiss ofek1weiss merged commit f154cfb into master Feb 12, 2024
11 checks passed
@ofek1weiss ofek1weiss deleted the ele-2478-support-all-anomaly-detection-parameters-on-a-model-and-vars branch February 12, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants