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

[dashboard] open in edit mode when adding a chart #4772

Merged
merged 4 commits into from
Apr 7, 2018

Conversation

mistercrunch
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Apr 6, 2018

Codecov Report

Merging #4772 into master will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4772      +/-   ##
==========================================
+ Coverage   72.59%   72.67%   +0.08%     
==========================================
  Files         205      205              
  Lines       15401    15402       +1     
  Branches     1183     1183              
==========================================
+ Hits        11180    11194      +14     
+ Misses       4218     4205      -13     
  Partials        3        3
Impacted Files Coverage Δ
superset/views/core.py 74.45% <ø> (+0.97%) ⬆️
superset/assets/javascripts/dashboard/reducers.js 50% <100%> (ø) ⬆️
...ssets/javascripts/explore/components/SaveModal.jsx 93.82% <100%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92230b8...cd11186. Read the comment docs.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

awesomesauce

@@ -107,7 +107,7 @@ class SaveModal extends React.Component {
.then((data) => {
// Go to new slice url or dashboard url
if (gotodash) {
window.location = data.dashboard;
window.location = data.dashboard + '&edit=true';
Copy link
Member

Choose a reason for hiding this comment

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

We might wanna use the URL object every where we manipulate URLs to make it more robust, eg:

const url = new URL(data.dashboard);
url.searchParams.set('edit', 'true');
window.location = url.href;

@mistercrunch mistercrunch merged commit 627bdb2 into apache:master Apr 7, 2018
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Apr 11, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* [dashboard] open in edit mode when adding a chart

* Move dashboard unit tests to their own file

* fix tests

* Better URL management
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
* [dashboard] open in edit mode when adding a chart

* Move dashboard unit tests to their own file

* fix tests

* Better URL management
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* [dashboard] open in edit mode when adding a chart

* Move dashboard unit tests to their own file

* fix tests

* Better URL management
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.25.0 labels Feb 27, 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.25.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants