Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Tutorial dataset #4789

Open
gampleman opened this issue Oct 27, 2020 · 6 comments
Open

Tutorial dataset #4789

gampleman opened this issue Oct 27, 2020 · 6 comments

Comments

@gampleman
Copy link
Contributor

Since we seem to have some difficulty keeping our docs up to date or not misleading, I wonder if we could build something like this:

  1. Produce a dataset with some nice interesting data (with clear labels, etc)
  2. Add it as a data source called tutorial or demo that ships with cloak (perhaps as an embedded psql db ala shadow db)
  3. Rewrite our example queries in the documentation to be against this dataset.
  4. Run the queries against the dataset (on build or release) and verify that they actually work (or fail) as expected.
  5. Have a button next to each example that would load the query in the Air interface allowing the reader to experiment with said query and see live results.
@fjab
Copy link

fjab commented Nov 2, 2020

I really like this suggestion! We'll consider when is the best time to make it happen.

@sebastian
Copy link
Member

Since we seem to have some difficulty keeping our docs up to date or not misleading

Wouldn't a meaningful safe guard against this be to have a mechanism in place which executes the queries we use in our docs? I.e. something like the regular doctests supported in Elixir? That way we ensure the examples actually are a) valid from a restrictions point of view, and b) don't rely on mechanisms we have deprecated.

@sebastian
Copy link
Member

That being said: having a demo database that people can play and experiment with is useful in any case!

@fjab
Copy link

fjab commented Nov 2, 2020

@sebastian I think that's what Jakub meant by

Run the queries against the dataset (on build or release) and verify that they actually work (or fail) as expected.

@sebastian
Copy link
Member

Ah, yes, he spelled it out pretty clearly 😄 I was reading too fast.

@gampleman
Copy link
Contributor Author

Another benefit of this would be that having a consistent dataset across all installations would make reproducing certain issues easier - as long as you can demonstrate the issue with the tutorial data source, anyone else can run the same query on their local version trivially.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants