Skip to content

Commit f48675b

Browse files
authored
chore(explore): Add attribute mapping endpoint description (#106296)
Originally forgot to provide this description comment about this endpoint, as well as updating the codeowners to assign data browsing to own this endpoint.
1 parent 83490bc commit f48675b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ pnpm-lock.yaml @getsentry/owners-js-de
213213
/src/sentry/api/endpoints/organization_events_stats.py @getsentry/data-browsing
214214
/src/sentry/api/endpoints/organization_events_timeseries.py @getsentry/data-browsing
215215
/src/sentry/api/endpoints/organization_measurements_meta.py @getsentry/data-browsing
216+
src/sentry/api/endpoints/organization_attribute_mappings.py @getsentry/data-browsing
216217

217218
/tests/snuba/api/endpoints/* @getsentry/data-browsing
218219
/tests/snuba/api/endpoints/test_organization_tags.py @getsentry/data-browsing
@@ -225,6 +226,7 @@ pnpm-lock.yaml @getsentry/owners-js-de
225226
/tests/sentry/api/endpoints/test_organization_events_trends_v2.py @getsentry/data-browsing
226227
/tests/snuba/api/endpoints/test_organization_events_vitals.py @getsentry/data-browsing
227228
/tests/snuba/api/endpoints/test_organization_tagkey_values.py @getsentry/data-browsing
229+
tests/sentry/api/endpoints/test_organization_attribute_mappings.py @getsentry/data-browsing
228230

229231
/src/sentry/api/serializers/snuba.py @getsentry/data-browsing
230232

src/sentry/api/endpoints/organization_attribute_mappings.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ class AttributeMappingResponse(TypedDict):
3434

3535
@region_silo_endpoint
3636
class OrganizationAttributeMappingsEndpoint(OrganizationEndpoint):
37+
"""
38+
Return a static list of attributes and their mappings to public aliases and search types.
39+
40+
The role of this endpoint is to provide a list of attributes that include their
41+
mappings from internal name to public alias and search type. This is used to make the
42+
connection between internal names in the Sentry Conventions to their public aliases
43+
and search types.
44+
"""
45+
3746
publish_status = {
3847
"GET": ApiPublishStatus.EXPERIMENTAL,
3948
}

0 commit comments

Comments
 (0)