-
Notifications
You must be signed in to change notification settings - Fork 270
feat: add diff view when transpiling query #1010
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
querybook/webapp/components/TranspileQueryModal/TranspileQueryModal.tsx
Outdated
Show resolved
Hide resolved
const [addedRanges, removedRanges] = useMemo(() => { | ||
const added: IHighlightRange[] = []; | ||
const removed: IHighlightRange[] = []; | ||
const diffObjects = diffWordsWithSpace(fromQuery, toQuery); |
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.
maybe codemirror 6, it is kind of a hassle to use MergeView right now
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 tried diffLines, but there is too much detail missing
querybook/webapp/components/TranspileQueryModal/TranspileQueryModal.tsx
Outdated
Show resolved
Hide resolved
## [0.22.0](https://github.expedia.biz/eg-analytics-platform/querybook/compare/0.21.1...0.22.0) (2022-09-20) ### Features * add diff view when transpiling query (pinterest#1010) ([225b0ac](https://github.expedia.biz/eg-analytics-platform/querybook/commit/225b0ac20717cd7bad2196387f34e891896003f5)) ### Bug Fixes * automatic serialize sqlalchemy Row (pinterest#1011) ([372ab25](https://github.expedia.biz/eg-analytics-platform/querybook/commit/372ab25436cd0dd7b0846d7545b3255dbe5876c9)) * table validation for sync_table (pinterest#1008) ([760b6ec](https://github.expedia.biz/eg-analytics-platform/querybook/commit/760b6ec0dd3715058b138b528657cc62558d27a5))
* feat: add diff view when transpiling query * comments
add a comparison view before user confirm