-
Notifications
You must be signed in to change notification settings - Fork 1
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: experimentation RUM API method #133
Conversation
…xperimentation data
This PR will trigger a minor release when merged. |
…SITES-18784 Merged the latest changes from main branch
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #133 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 36 37 +1
Lines 3605 3772 +167
==========================================
+ Hits 3605 3772 +167 ☔ View full report in Codecov by Sentry. |
createExperimentationURL(params = {}) { | ||
return createUrl( | ||
APIS.RUM_EXPERIMENTS, | ||
{ | ||
domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params, | ||
}, | ||
); | ||
} | ||
|
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.
it should rather be:
createExperimentationURL(params = {}) { | |
return createUrl( | |
APIS.RUM_EXPERIMENTS, | |
{ | |
domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params, | |
}, | |
); | |
} | |
async getExperimentation(params = {}) { | |
return sendRequest(createUrl( | |
APIS.RUM_EXPERIMENTS, | |
{ domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params }, | |
)); | |
} | |
so that, consumer of this API can use the method like:
rumAPIClient.getExperimentation({ url: 'www.adobe.com' });
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.
Ekrem, I am only trying to get a url from the function which I will be calling from the handler. So I have done some changes. Please check.
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.
Have implemented the changes as discussed with you.
…SITES-18784 Getting the latest changes from the main branch.
…SITES-18784 Get the latest changes from the main branch.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---|---|---| | [codecov/codecov-action](https://togithub.com/codecov/codecov-action) | action | major | `v3` -> `v4` | [![age](https://developer.mend.io/api/mc/badges/age/github-tags/codecov%2fcodecov-action/v4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/github-tags/codecov%2fcodecov-action/v4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/github-tags/codecov%2fcodecov-action/v3/v4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/codecov%2fcodecov-action/v3/v4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [dynamo-db-local](https://togithub.com/chrisguttandin/dynamo-db-local) | devDependencies | major | [`7.3.0` -> `8.0.0`](https://renovatebot.com/diffs/npm/dynamo-db-local/7.3.0/8.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/dynamo-db-local/8.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/dynamo-db-local/8.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/dynamo-db-local/7.3.0/8.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/dynamo-db-local/7.3.0/8.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>codecov/codecov-action (codecov/codecov-action)</summary> ### [`v4`](https://togithub.com/codecov/codecov-action/compare/v3...v4) [Compare Source](https://togithub.com/codecov/codecov-action/compare/v3...v4) </details> <details> <summary>chrisguttandin/dynamo-db-local (dynamo-db-local)</summary> ### [`v8.0.0`](https://togithub.com/chrisguttandin/dynamo-db-local/releases/tag/v8.0.0) [Compare Source](https://togithub.com/chrisguttandin/dynamo-db-local/compare/v7.3.0...v8.0.0) [all commits](https://togithub.com/chrisguttandin/dynamo-db-local/compare/v7.3.0...v8.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 2pm on Monday" in timezone Europe/Zurich, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/adobe/spacecat-shared). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Adding this function to be able to use it to store it as fullAuditRef for the cwv audit
# [@adobe/spacecat-shared-rum-api-client-v1.5.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.4.4...@adobe/spacecat-shared-rum-api-client-v1.5.0) (2024-02-06) ### Features * rum client createRUMURL function ([0c68dcc](0c68dcc))
Co-authored-by: Dominique Jäggi <[email protected]>
# [@adobe/spacecat-shared-utils-v1.10.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.9.0...@adobe/spacecat-shared-utils-v1.10.0) (2024-02-07) ### Features * move sqs wrapper to scpacecat-shared ([#136](#136)) ([b9f6d75](b9f6d75))
# [@adobe/spacecat-shared-utils-v1.11.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.10.0...@adobe/spacecat-shared-utils-v1.11.0) (2024-02-07) ### Features * url helpers in utils ([#139](#139)) ([0a90c1b](0a90c1b))
# [@adobe/spacecat-shared-data-access-v1.15.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.15.0...@adobe/spacecat-shared-data-access-v1.15.1) (2024-02-07) ### Bug Fixes * retrieve site candidate by base url ([#140](#140)) ([b37cb0b](b37cb0b))
# [@adobe/spacecat-shared-rum-api-client-v1.6.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v1.5.0...@adobe/spacecat-shared-rum-api-client-v1.6.0) (2024-02-07) ### Features * experimentation RUM API method ([#133](#133)) ([f95eded](f95eded))
🎉 This PR is included in version @adobe/spacecat-shared-rum-api-client-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…xperimentation data
Please ensure your pull request adheres to the following guidelines:
Related Issues
Thanks for contributing!