-
Notifications
You must be signed in to change notification settings - Fork 256
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/import dashboard sources #4068
Conversation
…sers to map sources from imported dashboard to current sources
Co-authored-by: Alex Paxton <[email protected]>
Much less screamy Co-Authored-By: Iris Scholten <[email protected]>
Co-Authored-By: Iris Scholten <[email protected]>
Co-Authored-By: Iris Scholten <[email protected]>
…e with Dynamic Source
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.
Loooking gooood!
@@ -0,0 +1,103 @@ | |||
import React from 'react' | |||
import {shallow} from 'enzyme' |
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.
YAYY! thanks for tests!
onImportDashboard(dashboard) | ||
onDismissOverlay() | ||
const cells = _.get(dashboard, 'cells', []) | ||
const importedSources = _.get(meta, 'sources', {}) |
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.
get deep on these two lines plzz?
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.
word. fyi these don't need to be getDeep since they're not nested. has our convention become that we prefer getDeep
generally?
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.
changed - thanks
b3e3083
to
e031ef4
Compare
Instantiate source id regex only once & use const name convention.
1c7f7d4
to
80e0e01
Compare
I ran EDIT: We figured it out and are going to resolve Circle issues first so that other branches don't check out a failing master. |
Co-Authored-By: Jared Scheib <[email protected]>
…chronograf into fix/import-dashboard-sources
Co-authored-by: Iris Scholten <[email protected]> Co-authored-by: Alex Paxton <[email protected]>
Closes #3980
What was the problem?
If you have different sources than the dashboard you are importing from, there is no way to map the sources from your import to your current chronograf.
What was the solution?
Add a source mapping page as a part of the import dashboard process.