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

MixedDatasource: Shows retrieved data even if a data source fails #27024

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

hugohaggmark
Copy link
Contributor

@hugohaggmark hugohaggmark commented Aug 17, 2020

What this PR does / why we need it:
This PR makes sure that any successful data fetched by MixedDatasource is shown although other data sources are failing. The error will show the first error (enhanced with the data source name) but we could tweak this if we want to show all erroneous data sources in the message.

image

Which issue(s) this PR fixes:
Fixes #26955

Special notes for your reviewer:
You can use this dashboard with TestData and Postgres as a starting point: https://gist.github.com/hugohaggmark/d6ba274ec21085fa34a358a6f8a2b4a6

@hugohaggmark hugohaggmark added this to the 7.2 milestone Aug 17, 2020
@hugohaggmark hugohaggmark requested a review from a team August 17, 2020 05:28
@hugohaggmark hugohaggmark self-assigned this Aug 17, 2020
@hugohaggmark hugohaggmark requested review from torkelo, peterholmberg, ryantxu and mckn and removed request for a team, torkelo and peterholmberg August 17, 2020 05:28
Copy link
Member

@ryantxu ryantxu left a comment

Choose a reason for hiding this comment

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

looks great!

@hugohaggmark
Copy link
Contributor Author

Thank you @ryantxu, anything you want to add @mckn?

@hugohaggmark hugohaggmark changed the title MixedDatasource: Shows retrieved data even if an other data source fails MixedDatasource: Shows retrieved data even if a data source fails Aug 19, 2020
@hugohaggmark hugohaggmark merged commit 0755390 into master Aug 19, 2020
@hugohaggmark hugohaggmark deleted the hugoh/mixed-datasource branch August 19, 2020 06:52
aknuds1 pushed a commit that referenced this pull request Aug 19, 2020
…7024)

* MixedDatasource: Shows data for working data sources and error for erroneous

* Tests: remove funky import

* Tests: fixes types
ryantxu pushed a commit that referenced this pull request Aug 19, 2020
…7024)

* MixedDatasource: Shows data for working data sources and error for erroneous

* Tests: remove funky import

* Tests: fixes types
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.

MixedDatasource: error on one data source prevents showing available data from other data sources
2 participants