Skip to content

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

Merged
mistercrunch merged 4 commits into
apache:masterfrom
mistercrunch:edit_mode
Apr 7, 2018
Merged

mistercrunch merged 4 commits into
apache:masterfrom
mistercrunch:edit_mode

Conversation

@mistercrunch

Copy link
Copy Markdown
Member

No description provided.

@codecov-io

codecov-io commented Apr 6, 2018 •

Copy link
Copy Markdown

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.

@betodealmeida betodealmeida left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

awesomesauce

// Go to new slice url or dashboard url
if (gotodash) {
window.location = data.dashboard;
window.location = data.dashboard + '&edit=true';

Copy link
Copy Markdown
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 First shipped in 0.25.0 labels Feb 27, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* [dashboard] open in edit mode when adding a chart

* Move dashboard unit tests to their own file

* fix tests

* Better URL management
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 First shipped in 0.25.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants