-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
✨ Data pages: enable rendering of data pages on all eligible data pages, remove old datapage #2848
✨ Data pages: enable rendering of data pages on all eligible data pages, remove old datapage #2848
Conversation
fd8f210
to
2e669d1
Compare
50ac8bf
to
2b18987
Compare
2b18987
to
0ff197c
Compare
0ff197c
to
b8fea76
Compare
56d05e8
to
807e17d
Compare
b8fea76
to
69a0883
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.
Looks good to me!
If it's easy to do, should we rename DataPageV2 to DataPage?
} | ||
// If we have a single Y variable and that one has a schema version >= 2, | ||
// meaning it has the metadata to render a datapage, then we show the datapage | ||
// based on this information. Otherwise we see if there is a legacy datapage.json |
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.
Support for legacy datapage.json configs is dropped, no?
Would also be good to update the code comment above 👆
return await renderDataPageV2({ | ||
variableId, | ||
variableMetadata, | ||
isPreviewing: true, |
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.
Is isPreviewing=true
right?
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.
No the code as is works as intended - this is in the function that shows the preview so we do want to set isPreviewing to true here
807e17d
to
6d8259d
Compare
69a0883
to
b35fc80
Compare
6d8259d
to
d621e18
Compare
b35fc80
to
8104801
Compare
d621e18
to
83c169b
Compare
8104801
to
fb3c4d8
Compare
83c169b
to
35f763f
Compare
fb3c4d8
to
b7a6976
Compare
66ecb88
to
dd9778f
Compare
485f87a
to
68b16a6
Compare
dd9778f
to
ad1ddab
Compare
This PR removes the old prototype data page code and switches rendering of eligible charts to show data pages.
☣️ should only be merged once the team is happy with this as it will start rendering data pages on public /grapher/ urls