Skip to content

add copy dashboard page feature#5232

Closed
gaecoli wants to merge 1 commit intogetredash:masterfrom
gaecoli:add-copy-dashboard-feature
Closed

add copy dashboard page feature#5232
gaecoli wants to merge 1 commit intogetredash:masterfrom
gaecoli:add-copy-dashboard-feature

Conversation

@gaecoli
Copy link
Copy Markdown
Member

@gaecoli gaecoli commented Oct 24, 2020

What type of PR is this? (check all applicable)

  • Feature

Description

This PR is feature of copy dashboard page with widgets!

Copy link
Copy Markdown
Collaborator

@kravets-levko kravets-levko left a comment

Choose a reason for hiding this comment

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

Hi @yankeeguyu! Thank you for your contribution, that's really a cool feature 🎉 Please see my comments

Comment thread client/app/pages/dashboards/components/DashboardHeader.jsx Outdated
Comment on lines 160 to 165
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please refer to the similar function we have for queries. It's implemented in a bit cumbersome way not because we were high, but because that was the only way to make it reliable. E.g. if you'll try to open a popup in some async handler (like here) - 50/50 browser will block it, because JS can show popups only as a response to user interaction. Also it's important to disable menu item while action is in progress. And so on.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry, i am going to modify this later!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@yankeeguyu Please address this one too. Use this for the reference: https://github.com/getredash/redash/blob/83726da48a0d1768a8f726f007ce0c6fd594c2de/client/app/pages/queries/hooks/useDuplicateQuery.js

Hi @kravets-levko , i modified this comment, but it can't work! So someone can help me? Thank you!

Comment thread client/app/services/dashboard.js Outdated
@gaecoli
Copy link
Copy Markdown
Member Author

gaecoli commented Nov 16, 2020

Hi @kravets-levko , i addressed all comments! Please check this PR, thank you!

@gaecoli gaecoli closed this Nov 16, 2020
@gaecoli gaecoli deleted the add-copy-dashboard-feature branch November 16, 2020 07:45
@kravets-levko
Copy link
Copy Markdown
Collaborator

Replaced with #5274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants