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-10615): support sending Kava beacons as POST #86

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Conversation

yairans
Copy link
Contributor

@yairans yairans commented Oct 29, 2020

Description of the Changes

add requestMethod config (GET by default) and send it to OVPAnalyticsService.trackEvent

Depends on kaltura/playkit-js-providers#125

Solves FEC-10615

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

@yairans yairans requested a review from a team October 29, 2020 11:56
@yairans yairans self-assigned this Oct 29, 2020
@@ -206,7 +207,7 @@ class Kava extends BasePlugin {
*/
sendAnalytics(model: Object): Promise<*> {
return new Promise((resolve, reject) => {
OVPAnalyticsService.trackEvent(this.config.serviceUrl, model)
OVPAnalyticsService.trackEvent(this.config.serviceUrl, model, this.config.requestMethod)
Copy link
Contributor

Choose a reason for hiding this comment

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

@yairans does the service is case sensitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to add toUpper... and not to force it.
Seems reasonable to pass also get/post.

Copy link
Contributor

Choose a reason for hiding this comment

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

use an enum and expose it

@yairans yairans merged commit 5a9452c into master Oct 29, 2020
@yairans yairans deleted the FEC-10615 branch October 29, 2020 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants