-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Generalize switch between different datasources #1078
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
d73e9a0
Generalize switch between different datasources.
383ffe4
Fix previous migration since slice model changed
22caae3
Fix warm up cache and other small stuff
44d0e6f
Adding modules and datasources through config
81ffb89
Replace tabs w/ spaces
1f60b8d
Fix other style issues
9d82efa
Change add method for SliceModelView to pick the first non-empty ds
b96628f
Remove tests on slice add redirect
2991bbd
Change way of db migration
4587349
Fix styling
36bd979
Merge branch 'master' into src_reg
88c91a3
Merge branch 'master' into src_reg
b6ed8fc
Merge branch 'master' into src_reg
68e054a
Merge branch 'master' into src_reg
3068bf2
Fix create slice
eda117b
Small fixes
a30722c
Fix code climate check
c24de2f
Merge branch 'master' into src_reg
c053a4b
Adding notes on how to create new datasource in CONTRIBUTING.md
5e7e9fb
Merge branch 'master' into src_reg
092caaa
Fix last merge
12f149d
Merge branch 'master' into src_reg
c7a41e9
A commit just to trigger travis build again
efe185e
Merge branch 'master' into src_reg
ab60779
Add migration to merge two heads
328cbe7
Fix codeclimate
9da4358
Simplify source_registry
49e8369
Fix codeclimate
d4b2976
Remove all getter methods
05e80ef
Merge branch 'master' into src_reg
cad85ae
Merge branch 'master' into src_reg
a386f60
Merge branch 'master' into src_reg
0e4f221
Merge branch 'master' into src_reg
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
created_by
does not exist as a column in theslice
ordashboard
tables causing an exception to be raised two lines below this ifobjects
is not empty.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.
Does it make sense to modify existing migration files? Existing environments would not rerun this script right?
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.
@the-dcruz could you please open a new issue with the stacktrace please?
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.
@the-dcruz I added a column datasource_id in Slice and Dashboard. If it uses models.Slice and models.Dashboard the session.query would fail because it couldn't find this column at this migration point. It would be helpful if you can share the stacktrace. Thank you
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.
@the-dcruz I run into some problem as well and I think it's what you have. I think the tests run on empty databases that's why I didn't catch it the first time. When there's existing data, you'd see the error. I've created a pull request for the fix. Can you take a look to see if it fixes what you have? #1262