Skip to content

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented Dec 10, 2024

Planning to instrument the new browser featureFlagsIntegration to track internal flag evaluations. We need the latest release for this (https://github.com/getsentry/sentry-javascript/releases/tag/8.43.0).

@sentry/types was deprecated so I've changed imports to use @sentry/core

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 10, 2024
@codecov
Copy link

codecov bot commented Dec 10, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
8352 1 8351 0
View the top 1 failed tests by shortest run time
WidgetBuilderSortBySelector renders and functions correctly
Stack Traces | 0.272s run time
Error: expect(jest.fn()).toHaveBeenLastCalledWith(...expected)

Expected: ObjectContaining {"pathname": ".../org-slug/dashboard/1/", "query": ObjectContaining {"sort": ["-count"]}}
Received: {"pathname": ".../org-slug/dashboard/1/", "query": {"displayType": "line", "fields": ["transaction.duration", "count()", "id"], "sort": ["-count()"]}}

Number of calls: 1
    at Object.<anonymous> (.../widgetBuilder/components/sortBySelector.spec.tsx:111:26)

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@aliu39 aliu39 marked this pull request as ready for review December 10, 2024 19:55
@aliu39 aliu39 requested a review from a team as a code owner December 10, 2024 19:55
@aliu39 aliu39 requested a review from billyvg December 10, 2024 19:55
@aliu39 aliu39 requested review from a team as code owners December 10, 2024 20:05
Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

why did import order change?

Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

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

Looks like you need to fix the import in featureObserver

@aliu39 aliu39 requested review from a team as code owners December 10, 2024 20:12
@aliu39
Copy link
Member Author

aliu39 commented Dec 10, 2024

why did import order change?

From my pre-commit, maybe cause it's sorted by module name?

@billyvg
Copy link
Member

billyvg commented Dec 10, 2024

why did import order change?

From my pre-commit, maybe cause it's sorted by module name?

Yeah we had to change imports from @sentry/types to @sentry/core so it resorted. In the future I would split up package upgrades from refactors (unless it's a breaking change, though we should have a more graceful upgrade process in that case).

@@ -1,4 +1,4 @@
import type {FeatureFlagContext} from '@sentry/types/build/types/context';
import type {FeatureFlagContext} from '@sentry/core/build/types/types-hoist/context';
Copy link
Member

Choose a reason for hiding this comment

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

Should it not be

Suggested change
import type {FeatureFlagContext} from '@sentry/core/build/types/types-hoist/context';
import type {FeatureFlagContext} from '@sentry/core';

Copy link
Member Author

@aliu39 aliu39 Dec 10, 2024

Choose a reason for hiding this comment

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

I get an error importing directly, this is from vscode autocomplete. Looks like it's not exported in index

Copy link
Member

@billyvg billyvg Dec 10, 2024

Choose a reason for hiding this comment

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

Let's make sure this gets exported and updated, we shouldn't rely on importing from this

@aliu39 aliu39 requested a review from billyvg December 10, 2024 21:06
@@ -1,4 +1,4 @@
import type {FeatureFlagContext} from '@sentry/types/build/types/context';
import type {FeatureFlagContext} from '@sentry/core/build/types/types-hoist/context';
Copy link
Member

@billyvg billyvg Dec 10, 2024

Choose a reason for hiding this comment

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

Let's make sure this gets exported and updated, we shouldn't rely on importing from this

@aliu39 aliu39 merged commit 524f5ca into master Dec 10, 2024
42 checks passed
@aliu39 aliu39 deleted the aliu/bump-sentry-sdk branch December 10, 2024 21:26
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants