Skip to content

Commit

Permalink
✨ wizard: improve app flow (#3407)
Browse files Browse the repository at this point in the history
* ✨ wizard: improve app flow

* add option to drop table when creating

* adapt to new api

* new function to create tables in anomalist

* improve comments

* checkfirst flag when creating table

* re-order code

* bug fixes in app flow

* improve pagination ui

* tweak internal grapher_chart flow

* entity selection

* module for chart configs

* adjust for indicator upgrades

* enable re-scan

* help text, anomaly types, upgrade anomalies
  • Loading branch information
lucasrodes authored Oct 15, 2024
1 parent 47ac33e commit 8a6569b
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 316 deletions.
23 changes: 1 addition & 22 deletions apps/anomalist/anomalist_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,28 +187,7 @@ def anomaly_detection(
dry_run: bool = False,
reset_db: bool = False,
) -> None:
"""TBD
TBD
**Example 1:** Create random anomaly for a dataset
```
$ etl anomalist --anomaly-type sample --dataset-ids 6369
```
**Example 2:** Create GP anomalies
```
$ etl anomalist --anomal-_type gp --dataset-ids 6369
```
**Example 3:** Create anomalies by comparing dataset to its previous version
```
$ etl anomalist --anomaly-type gp --dataset-ids 6589
```
"""
"""Detect anomalies."""
engine = get_engine()

# Ensure the 'anomalies' table exists. Optionally reset it if reset_db is True.
Expand Down
22 changes: 22 additions & 0 deletions apps/anomalist/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ def cli(
dry_run: bool,
reset_db: bool,
) -> None:
"""TBD
TBD
**Example 1:** Create random anomaly for a dataset
```
$ etl anomalist --anomaly-type sample --dataset-ids 6369
```
**Example 2:** Create GP anomalies
```
$ etl anomalist --anomaly-type gp --dataset-ids 6369
```
**Example 3:** Create anomalies by comparing dataset to its previous version
```
$ etl anomalist --anomaly-type gp --dataset-ids 6589
```
"""
# Convert variable mapping from JSON to dictionary.
if variable_mapping:
try:
Expand Down
Loading

0 comments on commit 8a6569b

Please sign in to comment.