Skip to content

Conversation

@bkyryliuk
Copy link
Member

Adds creator as a owner of the dashboard.
Tested locally.

Issue:
#780

Reviewers:

caravel/views.py Outdated
if obj.slug:
obj.slug = obj.slug.replace(" ", "-")
obj.slug = re.sub(r'\W+', '', obj.slug)
obj.owners.append(g.user)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if creator puts himself into the owners - it will create 2 entries in the DB.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if g.user not in obj.owners:
    obj.owners.append(g.user)

@bkyryliuk
Copy link
Member Author

@mistercrunch - done.

@mistercrunch
Copy link
Member

Lgtm

@mistercrunch mistercrunch merged commit b855e2f into apache:master Sep 22, 2016
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 First shipped in 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 First shipped in 0.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants