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

fix(FEC-8657): add buffer start/end events #28

Merged
merged 3 commits into from
Nov 14, 2018
Merged

fix(FEC-8657): add buffer start/end events #28

merged 3 commits into from
Nov 14, 2018

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Nov 14, 2018

Description of the Changes

Need to add BUFFER_START (45) & BUFFER_END (46) events.
Send only common params.

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 dan-ziv self-assigned this Nov 14, 2018
@dan-ziv dan-ziv requested a review from a team November 14, 2018 13:56
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.

please add tests.

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.

the test is more like - when event of buffer start arrives then see that _sendAnalytics is called with the event and same for buffer end.
I don't think the tests that were just added are useful.

I see 3 tests:

  1. When buffer start event arrives see we call _sendAnalytics with buffer start
  2. When buffer end event arrives see we call _sendAnalytics with buffer end only if previous state was buffer start
  3. When buffer end event arrives see we don't call _sendAnalytics with buffer end if previous state wasn't start(which should be impossible)

@dan-ziv dan-ziv merged commit e87af3a into master Nov 14, 2018
@dan-ziv dan-ziv deleted the FEC-8657 branch November 14, 2018 15:08
DanilMolchanovKaltura pushed a commit that referenced this pull request Nov 28, 2024
### Description of the Changes

**the issue:**
in image entry case, there are no flavors and no captions, but there might be attachments. in case there are no attachments as well, the request to BE to get the downloadUrls is failing; therefore, the download icon is absent.

**solution:**
make the multiRequest to get the download urls, only if at least 1 of the arrays (flavors/captions/attachments) is not empty.

Solves FEC-13452
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.

2 participants