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: experimentation RUM API method #133

Merged
merged 18 commits into from
Feb 7, 2024
Merged

feat: experimentation RUM API method #133

merged 18 commits into from
Feb 7, 2024

Conversation

raji-unni
Copy link
Contributor

…xperimentation data

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

Copy link

github-actions bot commented Feb 6, 2024

This PR will trigger a minor release when merged.

…SITES-18784

Merged the latest changes from main branch
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (52ec442) 100.00% compared to head (06f4f90) 100.00%.
Report is 16 commits behind head on main.

❗ Current head 06f4f90 differs from pull request most recent head edd5d08. Consider uploading reports for the commit edd5d08 to get more accurate results

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.
📢 Have feedback on the report? Share it here.

Comment on lines +124 to +132
createExperimentationURL(params = {}) {
return createUrl(
APIS.RUM_EXPERIMENTS,
{
domainkey: this.domainkey, ...RUM_DEFAULT_PARAMS, ...params,
},
);
}

Copy link
Member

Choose a reason for hiding this comment

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

it should rather be:

Suggested change
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' });

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@ekremney ekremney changed the title feat: Changes for including Experimentation RUM API url call for fetching E… feat: experimentation RUM API method Feb 6, 2024
renovate bot and others added 10 commits February 6, 2024 15:58
[![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
@raji-unni raji-unni merged commit f95eded into main Feb 7, 2024
6 checks passed
@raji-unni raji-unni deleted the SITES-18784 branch February 7, 2024 15:37
adobe-bot pushed a commit that referenced this pull request Feb 7, 2024
@adobe-bot
Copy link

🎉 This PR is included in version @adobe/spacecat-shared-rum-api-client-v1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants