From 16477d271239415814ec52be13122d45201e160f Mon Sep 17 00:00:00 2001 From: nsdeschenes Date: Wed, 14 Jan 2026 15:13:35 -0400 Subject: [PATCH 1/3] :bulb: Add in forgotten comment --- src/sentry/api/endpoints/organization_attribute_mappings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sentry/api/endpoints/organization_attribute_mappings.py b/src/sentry/api/endpoints/organization_attribute_mappings.py index a91a790101def5..fe10e9b43ed920 100644 --- a/src/sentry/api/endpoints/organization_attribute_mappings.py +++ b/src/sentry/api/endpoints/organization_attribute_mappings.py @@ -32,6 +32,12 @@ class AttributeMappingResponse(TypedDict): searchType: str +# The role of this endpoint is to provide a list of attributes that include their +# mappings from internal name to public alias and search type. This is used to make the +# connection between internal names in the Sentry Conventions to their public aliases and +# search types. + + @region_silo_endpoint class OrganizationAttributeMappingsEndpoint(OrganizationEndpoint): publish_status = { From ebd854af1ab1cbf24d001214b513954bba8aee6a Mon Sep 17 00:00:00 2001 From: nsdeschenes Date: Wed, 14 Jan 2026 15:17:55 -0400 Subject: [PATCH 2/3] :wrench: Update codeowners --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a16a2ff1782d99..23a29f79a4f567 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -213,6 +213,7 @@ pnpm-lock.yaml @getsentry/owners-js-de /src/sentry/api/endpoints/organization_events_stats.py @getsentry/data-browsing /src/sentry/api/endpoints/organization_events_timeseries.py @getsentry/data-browsing /src/sentry/api/endpoints/organization_measurements_meta.py @getsentry/data-browsing +src/sentry/api/endpoints/organization_attribute_mappings.py @getsentry/data-browsing /tests/snuba/api/endpoints/* @getsentry/data-browsing /tests/snuba/api/endpoints/test_organization_tags.py @getsentry/data-browsing @@ -225,6 +226,7 @@ pnpm-lock.yaml @getsentry/owners-js-de /tests/sentry/api/endpoints/test_organization_events_trends_v2.py @getsentry/data-browsing /tests/snuba/api/endpoints/test_organization_events_vitals.py @getsentry/data-browsing /tests/snuba/api/endpoints/test_organization_tagkey_values.py @getsentry/data-browsing +tests/sentry/api/endpoints/test_organization_attribute_mappings.py @getsentry/data-browsing /src/sentry/api/serializers/snuba.py @getsentry/data-browsing From 06b8221b8707cc46455d3e50922db12a816c0b3c Mon Sep 17 00:00:00 2001 From: nsdeschenes Date: Wed, 14 Jan 2026 15:22:47 -0400 Subject: [PATCH 3/3] :bulb: Update comment to be a doc string --- .../endpoints/organization_attribute_mappings.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/sentry/api/endpoints/organization_attribute_mappings.py b/src/sentry/api/endpoints/organization_attribute_mappings.py index fe10e9b43ed920..19687145b9dc0e 100644 --- a/src/sentry/api/endpoints/organization_attribute_mappings.py +++ b/src/sentry/api/endpoints/organization_attribute_mappings.py @@ -32,14 +32,17 @@ class AttributeMappingResponse(TypedDict): searchType: str -# The role of this endpoint is to provide a list of attributes that include their -# mappings from internal name to public alias and search type. This is used to make the -# connection between internal names in the Sentry Conventions to their public aliases and -# search types. - - @region_silo_endpoint class OrganizationAttributeMappingsEndpoint(OrganizationEndpoint): + """ + Return a static list of attributes and their mappings to public aliases and search types. + + The role of this endpoint is to provide a list of attributes that include their + mappings from internal name to public alias and search type. This is used to make the + connection between internal names in the Sentry Conventions to their public aliases + and search types. + """ + publish_status = { "GET": ApiPublishStatus.EXPERIMENTAL, }