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

feat(FEC-10233): plugin async loading support #372

Merged
merged 17 commits into from
Nov 26, 2020

Conversation

RoyBregman
Copy link
Contributor

@RoyBregman RoyBregman commented Nov 12, 2020

Description of the Changes

Added a new getter "Ready" in BasePlugin which is resolved by default.
If a plugin wants to make sure load and play don't occur before some async event in the plugin he can override the getter and return a new promise which will be resolved accordingly.

A new Middleware "PluginReadinessMiddleware" was created and added to the beginning of the middlewares chain reaction to make sure all plugin promises are resolved before starting the load / play middleware chain reaction

resolves FEC-10233

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@dan-ziv
Copy link
Contributor

dan-ziv commented Nov 17, 2020

@RoyBregman please run prettier:fix

OrenMe
OrenMe previously requested changes Nov 23, 2020
Copy link
Contributor

@OrenMe OrenMe left a comment

Choose a reason for hiding this comment

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

can we add a test here?

@RoyBregman RoyBregman merged commit 716e8c0 into master Nov 26, 2020
@RoyBregman RoyBregman deleted the FEC-10233-Plugin-async-loading-support branch November 26, 2020 07:05
@RoyBregman RoyBregman restored the FEC-10233-Plugin-async-loading-support branch November 26, 2020 07:23
@SivanA-Kaltura SivanA-Kaltura deleted the FEC-10233-Plugin-async-loading-support branch December 12, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants