Skip to content
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

Redirect to list on delete table vis #2697

Merged
merged 4 commits into from
Mar 10, 2015

Conversation

viddo
Copy link
Contributor

@viddo viddo commented Mar 10, 2015

Fixes #2568

Depending on if user has new dashboard or not he/she is redirected to /dashboard/datasets or /dashboard/tables

Nicklas Gummesson added 3 commits March 10, 2015 17:24
Depends on user feature flag of new dashboard
@viddo
Copy link
Contributor Author

viddo commented Mar 10, 2015

@xavijam code review please. don't think it's worth adding a test because it's a minimal change and non-critical code path, and since setting up a test case would require setting up a lot of stuff. :/

Since new dashboard will render it as datasets as fallback (already
done)
if (self.user.featureEnabled('new_dashboard')) {
window.location = self.user.viewUrl().dashboard().datasets();
} else {
window.location = cdb.config.prefixUrl() + "/dashboard/tables"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd only redirect to dashboard/tables because new-dashboard knows how to display datasets although url says tables

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 069ab45

@xavijam
Copy link
Contributor

xavijam commented Mar 10, 2015

👍

@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

viddo added a commit that referenced this pull request Mar 10, 2015
…-table-vis

Redirect to list on delete table vis
@viddo viddo merged commit 5d8d0cb into master Mar 10, 2015
@viddo viddo deleted the 2568-redirect-to-list-on-delete-table-vis branch March 10, 2015 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If you delete a dataset from the dataset view, you should get redirected to /datasets and not /maps
3 participants