Skip to content

Commit 528b92d

Browse files
committed
fix: add request tags for all dashboard widget api requests
1 parent 36c6882 commit 528b92d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/widgets/projectInfo/ProjectInfo.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export function ProjectInfo(props: ProjectInfoProps) {
8383
.request({
8484
method: 'HEAD',
8585
uri: `/graphql/${dataset}/default`,
86+
tag: 'dashboard.project-info.graphql-api',
8687
})
8788
.subscribe({
8889
next: () => setGraphQlApi(getGraphQlUrl(projectId, dataset)),

src/widgets/projectUsers/ProjectUsers.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export function ProjectUsers() {
3838
const subscription = versionedClient.observable
3939
.request<Project>({
4040
uri: `/projects/${projectId}`,
41+
tag: 'dashboard.project-users',
4142
})
4243
.pipe(
4344
switchMap((_project) =>

src/widgets/sanityTutorials/dataAdapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export function useDataAdapter() {
3838
: '/addons/dashboard'
3939
return versionedClient.observable.request<{items: FeedItem[]}>({
4040
uri,
41+
tag: 'dashboard.sanity-tutorials',
4142
withCredentials: false,
4243
})
4344
},

0 commit comments

Comments
 (0)