Skip to content

add copy dashboard page feature#5274

Closed
gaecoli wants to merge 2 commits intogetredash:masterfrom
gaecoli:add-copy-dashboard-page-feature
Closed

add copy dashboard page feature#5274
gaecoli wants to merge 2 commits intogetredash:masterfrom
gaecoli:add-copy-dashboard-page-feature

Conversation

@gaecoli
Copy link
Copy Markdown
Member

@gaecoli gaecoli commented Nov 16, 2020

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

  • Feature

Description

add copy dashboard page feature

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.

I'm not sure why you preferred to replace previous PR with this one - they look pretty the same. Anyway, please see my comments

Comment on lines +6 to +9
const dashboardSlug = dashboard.slug;
Dashboard.copy({ slug: dashboardSlug }).then(({ slug }) => {
window.open(`dashboard/${slug}`);
});
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 address this according to my comment in your previous PR: #5232 (comment) There is a link to similar function we use for Fork Query - just implement everything in the same way (I also explained why this is needed).

Copy link
Copy Markdown
Member Author

@gaecoli gaecoli Nov 17, 2020

Choose a reason for hiding this comment

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

Hi, i modefied your comment, but i found that query and dashboard have different structures, so the lack of geturl method makes the current dashboard unable to reposition! So maybe someone can help me to check this problem! Thank you!

setIsDuplicating(true);
Dashboard.fork({ slug: dashboard.slug })
.then(newDashboard => {
tab.location = keepCurrentUrlParams(newDashboard.getUrl(true));
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.

This getUrl() should be rewrite!

@jhult
Copy link
Copy Markdown
Contributor

jhult commented Jan 31, 2021

@gaecoli, any updates on this? It would be a nice feature to have available.

@gaecoli
Copy link
Copy Markdown
Member Author

gaecoli commented Jan 31, 2021

@gaecoli, any updates on this? It would be a nice feature to have available.

I will update, but the encoding format should not meet the requirements of the redash community.

@gaecoli gaecoli closed this by deleting the head repository Apr 19, 2023
@gaecoli
Copy link
Copy Markdown
Member Author

gaecoli commented Nov 12, 2023

@gaecoli, any updates on this? It would be a nice feature to have available.

It merged in master! @jhult

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.

3 participants