Skip to content

Commit 2ef2970

Browse files
Merge branch 'master' into constantinius/ref/analytics/tet-834
2 parents 9a79120 + 6f18d89 commit 2ef2970

File tree

323 files changed

+3796
-2336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

323 files changed

+3796
-2336
lines changed

.github/file-filters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typecheckable_rules_changed: &typecheckable_rules_changed
3131
# Trigger to apply the 'Scope: Frontend' label to PRs
3232
frontend_all: &frontend_all
3333
- added|modified: '**/*.{ts,tsx,js,jsx,mjs}'
34-
- added|modified: 'static/**/*.{less,json,yml,md}'
34+
- added|modified: 'static/**/*.{less,json,yml,md,mdx}'
3535
- added|modified: '{.volta,vercel,tsconfig,biome,package}.json'
3636

3737
# Also used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ Sentry is a developer-first error tracking and performance monitoring platform t
3535
- [Objective-C/Swift](https://github.com/getsentry/sentry-cocoa)
3636
- [C\#/F\#](https://github.com/getsentry/sentry-dotnet)
3737
- [C/C++](https://github.com/getsentry/sentry-native)
38-
- [Dart](https://github.com/getsentry/sentry-dart)
38+
- [Dart/Flutter](https://github.com/getsentry/sentry-dart)
3939
- [Perl](https://github.com/getsentry/perl-raven)
4040
- [Clojure](https://github.com/getsentry/sentry-clj/)
4141
- [Elixir](https://github.com/getsentry/sentry-elixir)
4242
- [Unity](https://github.com/getsentry/sentry-unity)
4343
- [Unreal Engine](https://github.com/getsentry/sentry-unreal)
44+
- [Godot Engine](https://github.com/getsentry/sentry-godot)
4445
- [PowerShell](https://github.com/getsentry/sentry-powershell)
4546

4647
# Resources

knip.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const config: KnipConfig = {
8181
enumMembers: 'off',
8282
unlisted: 'off',
8383
},
84+
include: ['nsExports', 'nsTypes'],
8485
};
8586

8687
export default config;

migrations_lockfile.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ ahead of you.
55
To resolve this, rebase against latest master and regenerate your migration. This file
66
will then be regenerated, and you should be able to merge without conflicts.
77

8-
discover: 0001_move_discover_models
8+
discover: 0002_link_migrated_explore_query_in_discover
99

10-
explore: 0005_explore_django_json_field
10+
explore: 0006_add_changed_reason_field_explore
1111

1212
feedback: 0001_squashed_0004_index_together
1313

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ module = [
8888
"confluent_kafka.*",
8989
"cssselect.*",
9090
"django_zero_downtime_migrations.backends.postgres.schema.*",
91-
"docker.*",
9291
"fido2.*",
9392
"google.auth.*",
9493
"google.cloud.*",

requirements-dev-frozen.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ trio==0.25.0
217217
trio-websocket==0.11.1
218218
types-beautifulsoup4==4.11.6
219219
types-cachetools==5.3.0.5
220+
types-docker==7.1.0.20250705
220221
types-jsonschema==4.16.1
221222
types-oauthlib==3.2.0.8
222223
types-parsimonious==0.10.0.8

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ msgpack-types>=0.2.0
4646
mypy>=1.15
4747
types-beautifulsoup4
4848
types-cachetools
49+
types-docker
4950
types-jsonschema
5051
types-oauthlib
5152
types-parsimonious

rspack.config.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,19 @@ const appConfig: Configuration = {
534534
// This only runs in production mode
535535
minimizer: [
536536
new rspack.LightningCssMinimizerRspackPlugin(),
537-
new rspack.SwcJsMinimizerRspackPlugin(),
537+
new rspack.SwcJsMinimizerRspackPlugin({
538+
minimizerOptions: {
539+
compress: {
540+
// We are turning off these 3 minifier options because it has caused
541+
// unexpected behaviour. See the following issues for more details.
542+
// - https://github.com/swc-project/swc/issues/10822
543+
// - https://github.com/swc-project/swc/issues/10824
544+
reduce_vars: false,
545+
inline: 0,
546+
collapse_vars: false,
547+
},
548+
},
549+
}),
538550
],
539551
},
540552
devtool: IS_PRODUCTION ? 'source-map' : 'eval-cheap-module-source-map',
@@ -767,9 +779,8 @@ if (IS_UI_DEV_ONLY) {
767779
rewrites: [{from: /^\/.*$/, to: '/_assets/index.html'}],
768780
},
769781
};
770-
appConfig.optimization = {
771-
runtimeChunk: 'single',
772-
};
782+
// Hot reloading breaks if we aren't using a single runtime chunk
783+
appConfig.optimization!.runtimeChunk = 'single';
773784
}
774785

775786
if (IS_UI_DEV_ONLY || SENTRY_EXPERIMENTAL_SPA) {

src/sentry/analytics/event.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,13 @@ def from_instance(cls, instance: Any, **kwargs: Any) -> Self:
113113
**{
114114
f.name: kwargs.get(f.name, getattr(instance, f.name, None))
115115
for f in fields(cls)
116-
if f.name not in ("type", "uuid_", "datetime_")
116+
if f.name
117+
not in (
118+
"type",
119+
"uuid_",
120+
"datetime_",
121+
"data", # TODO: remove this data field once migrated
122+
)
117123
}
118124
)
119125

src/sentry/api/endpoints/organization_events_meta.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from sentry.models.organization import Organization
2424
from sentry.search.eap.types import SearchResolverConfig
2525
from sentry.search.events.types import SnubaParams
26-
from sentry.snuba import spans_indexed, spans_metrics, spans_rpc
26+
from sentry.snuba import ourlogs, spans_indexed, spans_metrics, spans_rpc
2727
from sentry.snuba.query_sources import QuerySource
2828
from sentry.snuba.referrer import Referrer
2929

@@ -97,6 +97,17 @@ def get(self, request: Request, organization) -> Response:
9797
sampling_mode=None,
9898
)
9999

100+
return Response({"count": result["data"][0]["count()"]})
101+
elif dataset == ourlogs:
102+
result = ourlogs.query(
103+
selected_columns=["count()"],
104+
snuba_params=snuba_params,
105+
query=request.query_params.get("query"),
106+
orderby=None,
107+
offset=0,
108+
limit=1,
109+
referrer=Referrer.API_ORGANIZATION_EVENTS_META,
110+
)
100111
return Response({"count": result["data"][0]["count()"]})
101112
else:
102113
result = dataset.query(

0 commit comments

Comments
 (0)