From f6ebf649d66719e201db61400b2ff927e3878893 Mon Sep 17 00:00:00 2001 From: Nisanthan Nanthakumar Date: Wed, 22 Nov 2023 10:55:28 -0800 Subject: [PATCH] fix(alerts): Add date period to tags query --- static/app/actionCreators/tags.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/app/actionCreators/tags.tsx b/static/app/actionCreators/tags.tsx index a3723f08b28c18..ed05ce34e3634b 100644 --- a/static/app/actionCreators/tags.tsx +++ b/static/app/actionCreators/tags.tsx @@ -65,7 +65,8 @@ export function fetchOrganizationTags( TagStore.reset(); const url = `/organizations/${orgId}/tags/`; - const query: Query = {use_cache: '1'}; + // Default fetching the last 7 days of tags + const query: Query = {use_cache: '1', statsPeriod: '7d'}; if (projectIds) { query.project = projectIds; }