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

Check if a preview provider is available before using it #10712

Merged
merged 1 commit into from
Aug 20, 2018

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Aug 16, 2018

Else if a preview provider is registerd but not available (for example
missing support in some external lib). It will do 💥. This way the
providers can at least do the sanity checks required.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

@rullzer rullzer added this to the Nextcloud 14 milestone Aug 16, 2018
@rullzer rullzer mentioned this pull request Aug 16, 2018
3 tasks
Copy link
Contributor

@denismosolov denismosolov left a comment

Choose a reason for hiding this comment

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

Does this quick change require a unit test?

Else if a preview provider is registerd but not available (for example
missing support in some external lib). It will do 💥. This way the
providers can at least do the sanity checks required.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the fix/noid/check_if_provider_is_available_before_use branch from ec06b87 to 5b10374 Compare August 17, 2018 18:51
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Changes make sense, code looks good 👍

@blizzz blizzz merged commit 4b92a09 into master Aug 20, 2018
@blizzz blizzz deleted the fix/noid/check_if_provider_is_available_before_use branch August 20, 2018 11:21
@MorrisJobke MorrisJobke mentioned this pull request Aug 24, 2018
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.

4 participants