-
Notifications
You must be signed in to change notification settings - Fork 14
feat(Preview): add preview for topics #2292
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
Conversation
@artemmufazalov @astandrik design review passed. |
export function PreviewContainer(props: PreviewContainerProps) { | ||
const {type} = props; | ||
const isTable = isTableType(type); | ||
const isTopic = type === EPathType.EPathTypePersQueueGroup; |
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.
Please, rebase you PR and check whether it works for topics inside CDC. If it doesn't work, create an issue and disable preview for them
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.
I mean EPathSubType.EPathSubTypeStreamImpl
, I restored them here: #2281
98e2a1b
to
285f8db
Compare
@@ -71,7 +74,7 @@ export const getSchemaControls = | |||
column_table: openPreview, | |||
|
|||
index_table: undefined, | |||
topic: undefined, | |||
topic: isTopicPreviewAvailable && !meta?.subType ? openPreview : undefined, |
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.
@artemmufazalov fixed, stand redeployed |
if (isTopic && isTopicPreviewAvailable) { | ||
|
||
// preview is not available for topics inside CDC (has subtype) | ||
if (isTopic && !subType && isTopicPreviewAvailable) { |
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.
You turned off preview for every topic.
Every element has subtype, in most cases it is EPathSubTypeEmpty
, so you should check EPathSubTypeStreamImpl
explicitly
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.
Thanks! Fixed
Closes #1943
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
😟 No changes in tests. 😕
Bundle Size: 🔺
Current: 83.58 MB | Main: 83.57 MB
Diff: +0.02 MB (0.02%)
ℹ️ CI Information