-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(experiments): add mgmt cmd to generate experiment data #26770
Conversation
Nice! What do you think about including a few sample configurations too, so you don't necessarily have to futz with a JSON file each time? |
Good idea! We can add the typical cases that we need during development. |
23ea359
to
d81ee0d
Compare
Neither of the default commands work for me 🤔 I'm getting the following:
|
yeah, I had forgotten to push the latest commits, sorry about that |
c8cbcf3
to
a669c95
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
Where would be a good place to put an example config file so it's easy to reference?
Locally you mean, or to share between us? |
@andehen It's an open question - if I'm going to run this command, how do I know what the input config file should look like? For example, we could add a Or maybe we could store a couple of example config files somewhere in the posthog repo, so it's easy to reference them them locally. |
Ah, it's baked into the code so you generate one with the default values like this
and then you can modify that as you like. There is also a
|
Problem
make it easy to generate data with known statistics.
It can be further improved, but it's already very useful so I would like to merge this to master as I use it a lot already.
Then we can iterate from there.
Changes
added mgmt cmd that generates events, so now you can do
to generate with the default configs.
Or you can do
the json conf file can easily be edited to suite your test purpose.
the default currently looks like this:
How did you test this code?