-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cb1b07
commit 6e9347e
Showing
8 changed files
with
108 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Adding datasets to the Export Data page | ||
slug: /dataset-to-ui | ||
--- | ||
|
||
You can allow users to export your data from the UI's Export Data page. To do this, add a YAML file to `~/.pioreactor/plugins/exportable_datasets` with the following information: | ||
|
||
```yaml | ||
dataset_name: some_unique_dataset_name | ||
default_order_by: timestamp # for example | ||
description: A lovely description which shows up in the UI | ||
display_name: A lovely name which shows up in the UI | ||
has_experiment: true # does your SQL table have an experiment column.? | ||
has_unit: true # does your SQL table have an pioreactor_unit column.? | ||
source: app | ||
table: the_target_table # see also query below | ||
timestamp_columns: | ||
- timestamp | ||
always_partition_by_unit: false | ||
query: SELECT * FROM the_target_table WHERE reading < 4 AND ... # optional: you can specify a query. | ||
``` | ||
After adding this file, visit the Export Page in the UI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.