Skip to content

ref(explorer): optionally collect ip in user org context#107553

Merged
aliu39 merged 2 commits intomasterfrom
aliu/ip
Feb 4, 2026
Merged

ref(explorer): optionally collect ip in user org context#107553
aliu39 merged 2 commits intomasterfrom
aliu/ip

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented Feb 3, 2026

No description provided.

@aliu39 aliu39 requested a review from a team as a code owner February 3, 2026 21:59
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 3, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

"user_name": None,
"user_email": None,
"user_timezone": None,
"user_teams": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

Anonymous user context removes fields causing schema inconsistency

Medium Severity

The anonymous user branch now returns a dict with only 2 keys (org_slug, all_org_projects) while the authenticated user branch returns 8 keys. Previously, anonymous users returned the same keys with None/empty values. This schema change in user_org_context sent to Seer could cause API compatibility issues if Seer expects user_id, user_name, user_email, user_timezone, user_teams, and user_projects to always be present.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

schema already has default None or [] for all fields except org slug

@aliu39 aliu39 merged commit 4aa5d29 into master Feb 4, 2026
103 of 105 checks passed
@aliu39 aliu39 deleted the aliu/ip branch February 4, 2026 00:37
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants