-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issue/3862 cmcd hls live multiple #3875
Issue/3862 cmcd hls live multiple #3875
Conversation
third_party/closure-uri/uri.js
Outdated
/** | ||
* Sets a key value pair and removes all other keys with the same value. | ||
* | ||
* @param {string} key Name. | ||
* @param {string} value Value. | ||
* @return {!goog.Uri.QueryData} Instance of this object. | ||
*/ | ||
goog.Uri.QueryData.prototype.set = function(key, value) { | ||
this.ensureKeyMapInitialized_(); | ||
// Invalidate the cache. | ||
this.encodedQuery_ = null; | ||
|
||
if (!this.keyMap_.hasOwnProperty(key)) { | ||
this.add(key, value); | ||
} | ||
else { | ||
this.keyMap_[key] = [value]; | ||
} | ||
|
||
return this; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying the exact implementation of this function required pulling in too many closure dependencies, so function was ported to match the spirit of the original.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have done the same. Thanks for taking care of this!
@joeyparrish I'm not sure why the CI test are failing. They are DRM and UI related, and I don't think the CMCD changes would have caused them. Maybe they just need to be re-run? |
@joeyparrish can you review it? Thanks! |
We are still working on some flaky tests in the GitHub Actions environment. For now, please ignore those failures, which do not seem to be related to your work. |
Use goog.Uri to append CMCD query data to avoid duplicate query params Fixes #3862 Co-authored-by: Dan Sparacio <[email protected]>
Description
Use
goog.Uri
to append CMCD query data to avoid duplicate query paramsFixes #3862
Screenshots (optional)
Type of change
not work as expected)
Checklist:
./build/all.py
and the build passes./build/test.py
and all tests pass