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

Bugfix: Prevent API calls when Brightcove has not been configured yet #323

Merged
merged 5 commits into from
Jun 21, 2023

Conversation

oscarssanchez
Copy link
Contributor

@oscarssanchez oscarssanchez commented Jun 16, 2023

Description of the Change

This PR checks if the Brightcove accounts have been set, and if they are not, it prevents loading code that doesn't make sense to be loaded before.

The fix specifically targets #198 and #231 where remote requests are being fired. It doesn't make sense to fire these if the plugin has not been configured with a valid Brightcove Account first.

It also solves a bug related to the account data when we do not have that yet.

Closes #198
Closes #231

How to test the Change

Changelog Entry

Fixed - Prevent API calls when Brightcove has not been configured yet

Credits

Props @oscarssanchez

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@oscarssanchez oscarssanchez changed the title Bugfix: do not instantiate BC_Accounts if no accounts were set Bugfix: Prevent API calls when Brightcove has not been configured yet Jun 21, 2023
@oscarssanchez oscarssanchez merged commit 7e39944 into develop Jun 21, 2023
10 of 11 checks passed
@oscarssanchez oscarssanchez deleted the fix/api-calls branch June 21, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants