-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix: Columns not passing properly from SQL Lab to Explore #20975
Conversation
@@ -151,6 +151,7 @@ export const SaveDatasetModal: FunctionComponent<SaveDatasetModalProps> = ({ | |||
openWindow = true, | |||
formData = {}, | |||
}) => { | |||
console.log('FINDME SaveDatasetModal', datasource); |
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.
remove this
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.
This was just debugging, it wasn't ready for review yet. I pushed up a "clean up" commit here
.
...qe, | ||
columns: this.props.latestQuery?.results?.columns || [], | ||
}); | ||
console.log('findme SqlEditor', qe, queryWithColumns()); |
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.
remove this
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.
This was just debugging, it wasn't ready for review yet. I pushed up a "clean up" commit here
.
@@ -166,6 +167,7 @@ export default function SaveQuery({ | |||
</Form> | |||
); | |||
|
|||
console.log('FINDME SaveQuery', query, queryPayload()); |
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.
remove this
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.
This was just debugging, it wasn't ready for review yet. I pushed up a "clean up" commit here
.
Codecov Report
@@ Coverage Diff @@
## master #20975 +/- ##
==========================================
- Coverage 66.38% 66.18% -0.20%
==========================================
Files 1766 1767 +1
Lines 67225 67246 +21
Branches 7137 7142 +5
==========================================
- Hits 44625 44509 -116
- Misses 20774 20909 +135
- Partials 1826 1828 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. 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.
LGTM
/testenv up |
@hughhhh Ephemeral environment spinning up at http://34.220.152.102:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
* debugging columns * Clean up code * Fix test (cherry picked from commit d42cf4e)
SUMMARY
Columns were not passing properly from SQL Lab to Explore. This PR fixes that by passing the columns from
latestQuery.results.columns
into SaveQuery from SqlEditor.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
v
button on the save button and click Save DatasetADDITIONAL INFORMATION