-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
refactor(cubesql): Improve EGraph debugger, part 3: parsing and data preparation in UI side #8934
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8934 +/- ##
==========================================
+ Coverage 82.69% 82.75% +0.05%
==========================================
Files 221 221
Lines 78467 78413 -54
==========================================
+ Hits 64888 64889 +1
+ Misses 13579 13524 -55
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
👍🏻 LGTM! Left minor note.
@@ -18,6 +18,7 @@ import type { | |||
NodeProps, | |||
} from 'reactflow'; | |||
import 'reactflow/dist/style.css'; | |||
import { z } from 'zod'; |
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.
Probably, not a big deal but still:
We already have a joi scheme validator in our codebase, so maybe we can reuse it here too? I know, node_modules
is a black hole and could hold any number of packages) but... If we can reduce and reuse...Why not?
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'd rather switch to zod
in those places 😅
Joi does not introduce static types in TypeScript along with building parser, so one need to manually support and ensure compatibility for both. There are solutions like joi-to-typescript
, but, given the usual process of working with codegen in JS, it's not very comfortable.
Also egraph debugger is a completely separate package from monorepo, so it wouldn't pollute anything with unnecessary dependencies in "usual" case, and it would install them second time even if dependencies were same.
676b716
to
5212ee8
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 8 Skipped Deployments
|
5212ee8
to
05e20cb
Compare
Used just for Id for now
05e20cb
to
6dcd819
Compare
Check List
Description of Changes Made (if issue reference is not provided)
Add proper parsing on UI side, to catch data format changes.
Move most of data preparation related to UI (like a concepts of edge or combo) to UI completely, simplify data collection on rewriter side.