Skip to content

Improve method to generate segment test url #20542

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

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Improve method to generate segment test url #20542

merged 1 commit into from
Apr 11, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Mar 31, 2023

Description:

fixes #20532

Review

@sgiehl sgiehl added the Needs Review PRs that need a code review label Mar 31, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Mar 31, 2023
action: 'getLastVisitsDetails',
segment: encSegment,
inPopover: 1,
});
Copy link
Member Author

Choose a reason for hiding this comment

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

That one had been a bit too complex before. The URL for the visits log doesn't need to be built of the current url hash. Doing that actually caused comparison parameters and other unneeded parameters to be part of the loaded url. And in case the url or hash contained an unexpected count of ? this might even have failed and an incorrect url was loaded.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 8, 2023

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Apr 8, 2023
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

Makes sense to me, much better to create a new clean URL with known parameters rather than attempting to adjust an existing URL in a potentially unknown format 👍

@bx80 bx80 merged commit 73e5f26 into 5.x-dev Apr 11, 2023
@bx80 bx80 deleted the m20532 branch April 11, 2023 03:00
@bx80 bx80 added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Stale The label used by the Close Stale Issues action
Development

Successfully merging this pull request may close these issues.

Test button in segment editor might throw an error
2 participants