Skip to content

Commit 54ab737

Browse files
authored
Merge pull request #22 from Eppo-exp/eric/always-full-refresh
Allow fact sources to always fully refresh
2 parents 9849482 + 0081916 commit 54ab737

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

eppo_metrics_sync/eppo_metrics_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from eppo_metrics_sync.dbt_model_parser import DbtModelParser
1414
from eppo_metrics_sync.helper import load_yaml
1515

16-
API_ENDPOINT = 'https://eppo.cloud/api/v1/metrics/sync'
17-
16+
host = os.getenv('EPPO_API_HOST', 'https://eppo.cloud')
17+
API_ENDPOINT = f'{host}/api/v1/metrics/sync'
1818

1919
class EppoMetricsSync:
2020
def __init__(

eppo_metrics_sync/schema/eppo_metric_schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
}
101101
}
102102
}
103+
},
104+
"always_full_refresh": {
105+
"description": "If true, this fact source will always be fully refreshed (optional)",
106+
"type": "boolean"
103107
}
104108
}
105109
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='eppo_metrics_sync',
5-
version='0.0.8',
5+
version='0.1.0',
66
packages=find_packages(),
77
install_requires=[
88
'PyYAML', 'jsonschema', 'requests'

tests/yaml/valid/global_kpis/upgrades.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fact_sources:
1818
column: event_value
1919
- name: upgrade_value
2020
column: upgrade_value
21+
always_full_refresh: true
2122

2223
metrics:
2324
- name: Total Upgrades to Paid Plan

0 commit comments

Comments
 (0)