-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Saving slices and adding them to dashboards directly from explore view (
#680) * Saving slices from explore view * Addressing comments
- Loading branch information
1 parent
7a7f61a
commit bd68378
Showing
7 changed files
with
260 additions
and
72 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,12 @@ | |
left: 0; | ||
top: 0; | ||
} | ||
|
||
.header hr { | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.navbar { | ||
margin-bottom: 10px; | ||
} |
31 changes: 31 additions & 0 deletions
31
caravel/migrations/versions/27ae655e4247_make_creator_owners.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Make creator owners | ||
Revision ID: 27ae655e4247 | ||
Revises: d8bc074f7aad | ||
Create Date: 2016-06-27 08:43:52.592242 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '27ae655e4247' | ||
down_revision = 'd8bc074f7aad' | ||
|
||
from alembic import op | ||
from caravel import db, models | ||
|
||
|
||
def upgrade(): | ||
bind = op.get_bind() | ||
session = db.Session(bind=bind) | ||
|
||
objects = session.query(models.Slice).all() | ||
objects += session.query(models.Dashboard).all() | ||
for obj in objects: | ||
if obj.created_by and obj.created_by not in obj.owners: | ||
obj.owners.append(obj.created_by) | ||
session.commit() | ||
session.close() | ||
|
||
|
||
def downgrade(): | ||
pass |
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.