-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(hog): refactor code editors, hog validation #23054
Conversation
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
], | ||
})), | ||
selectors({ | ||
isValidView: [(s) => [s.metadata], (metadata) => !!(metadata && metadata[1]?.isValidView)], |
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.
metadata isn't updating now -> hogQLQueryEditorLogic connection to this field isn't updating either so this value is always false. Trying to debug right now but noting for visibility
Changes
HogQLQueryEditor
and moves it intoCodeEditor
. The reason is thatHogQLQueryEditor
exploded in scope, now containing data warehouse and AI features we don't need.codeEditorLogic
that takes care of errors and validation based on the languageprogram
to theHogQLMetadata
query and uses it to validate Hog programsNotImplementedError
s (not exposed) intoQueryError
/SyntaxError
(exposed to users)Not yet here (coming soon):
How did you test this code?
Show don't tell
With the python parser (syntax errors are parsed correctly, is slow)
With the CPP parser (syntax errors are not parsed, is fast)