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

Fix issue with shared link auth with /current-visitors and segments requests #5154

Merged
merged 6 commits into from
Mar 6, 2025

Conversation

apata
Copy link
Contributor

@apata apata commented Mar 6, 2025

Changes

  • Fixes issue current-visitors and segments loading on dashboard accessed via shared link.
  • Removes feature gate as feature is available for all.
  • Removes feature gate plug.

Tests

Manually tested

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@apata apata added the preview label Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

Preview environment👷🏼‍♀️🏗️
PR-5154

@apata apata added preview and removed preview labels Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

Preview environment👷🏼‍♀️🏗️
PR-5154

@apata apata changed the title Remove Segments API feature gate since flag is globally true Fix issue with shared link auth with /current-visitors and segments requests Mar 6, 2025
@apata apata force-pushed the saved-segments/should-load-on-shared-links branch from 27c0396 to 04f613b Compare March 6, 2025 12:24
@apata apata force-pushed the saved-segments/should-load-on-shared-links branch from 04f613b to 032aa43 Compare March 6, 2025 12:25
@apata apata requested a review from macobo March 6, 2025 12:31
@@ -15,7 +15,7 @@ export class ApiError extends Error {
}
}

function serialize(obj: Record<string, string | boolean | number>) {
export function serialize(obj: Record<string, string | boolean | number>) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Given we now export this, the name is kind of hard to grok.

Suggested change
export function serialize(obj: Record<string, string | boolean | number>) {
export function serializeUrlParams(params: Record<string, string | boolean | number>): string {

Copy link
Contributor

@macobo macobo left a comment

Choose a reason for hiding this comment

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

One suggestion to consider, otherwise LGTM. :shipit:

@apata apata added this pull request to the merge queue Mar 6, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 6, 2025
@apata apata added this pull request to the merge queue Mar 6, 2025
Merged via the queue into master with commit 964ca85 Mar 6, 2025
8 checks passed
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.

2 participants