-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Sample content #40753
Sample content #40753
Conversation
|
This is a very good question, and I don't have a great answer. My worry is any code that depends on an initialized metabase instance having no content may pass tests but fail in production. As far as I'm aware there's no existing code of this nature but it's possible this could exist in the future. At least in development, we would catch the issue. |
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.
- It looks like we could tweak a few of the question names - @vbenedetti ?
- Some questions have
- Maz
in the name. We should probably drop that - (not binned yet) - is this question used or was it replaced with a new one
- Maybe we should not use the auto-generated names?
- Some questions have
Also, is it me? But I can't seem to find the dashboard itself?
@albertoperdomo @vbenedetti I've tweaked the content to incorporate these changes:
|
@albertoperdomo @vbenedetti I combed through the content and realised there were a few errors in the queries and places where the dashboard could be improved. I've made the following changes:
I'd appreciate if you (or one of you) double-checked these changes, comparing against stats, and approve this PR when you're done. |
@calherries Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone? |
Epic: #40066
Follows #40907, which was a pre-requisite for this change
To verify:
During setup, we insert sample content from
resources/sample-content.edn
into the app DB as a migration.The sample content includes the "Examples" collection, which contains the "E-commerce insights" dashboard and its dependencies.
The approach avoids having to maintain any code to generate the collection and its contents, because it's just data. This approach ensures the contents is forward compatible to the same extent that any dashboard/card/collection is forward compatible, because we have to keep these entities forward compatible anyway.
The content comes from this collection: https://stats.metabase.com/collection/1449-example-dashboard-prototype
Testing strategy
The testing strategy for this is controversial, and worth questioning. There's two things you should know:
There are two reasons for this:
(a) we don't want to couple e2e tests to the sample content to make it easy to update
(b) updating the e2e tests are a pain, because there are a lot of tests that depend on the sample content not being there
However, I would argue we can get away with minimal test coverage using the following logic:
Also