Skip to content

[Maps] remove toasts for layer add and layer load error#30584

Merged
nreese merged 4 commits intoelastic:masterfrom
nreese:remove_maps_toasts
Feb 12, 2019
Merged

[Maps] remove toasts for layer add and layer load error#30584
nreese merged 4 commits intoelastic:masterfrom
nreese:remove_maps_toasts

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Feb 8, 2019

fixes #30550 and #28022

The layer TOC provides feed back when there are errors loading layers so toasts are not needed. Same with adding a layer. This PR removes the Toasts component.

@nreese nreese added v7.0.0 Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v6.7.0 v7.2.0 labels Feb 8, 2019
@nreese nreese requested a review from a team as a code owner February 8, 2019 21:46
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-gis

@thomasneirynck
Copy link
Copy Markdown
Contributor

Can you find one more line to delete
image?

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

this is a nice PR.

Together with https://github.com/elastic/kibana/pull/30542/files, layer-addition is really getting tidied up nicely

return state;
}

return {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shudders that reducer-code ...

},
...layerList.slice(layerIdx + 1)
]
};
Copy link
Copy Markdown
Contributor

@kindsun kindsun Feb 11, 2019

Choose a reason for hiding this comment

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

I'm wondering if it's time we revisit the updateLayerInList function and update it to accept multiple attributes so we don't have to repeat this chunk of logic in the reducer

Copy link
Copy Markdown
Contributor

@kindsun kindsun left a comment

Choose a reason for hiding this comment

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

Some minor feedback. Overall, a nice cleanup. lgtm!

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Just reviewed the SASS edits, and removals will always LGTM

@nreese nreese merged commit 7a0c227 into elastic:master Feb 12, 2019
nreese added a commit to nreese/kibana that referenced this pull request Feb 12, 2019
* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
nreese added a commit to nreese/kibana that referenced this pull request Feb 12, 2019
* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
nreese added a commit that referenced this pull request Feb 12, 2019
)

* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
nreese added a commit that referenced this pull request Feb 12, 2019
)

* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
nreese added a commit to nreese/kibana that referenced this pull request Feb 13, 2019
* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
nreese added a commit that referenced this pull request Feb 13, 2019
)

* [Maps] remove toasts for layer add and layer load error

* remove side-effects of LAYER_DATA_LOAD_ERROR action

* more cleanup
@nreese nreese added the release_note:skip Skip the PR/issue when compiling release notes label Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v6.7.0 v7.0.0 v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maps] Multiple "Error adding layer" toasts clutter screen

5 participants