You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ourlogs): Limit manual refresh to one hour or less (#97527)
### Summary
Manual refresh otherwise hits our backend caching which effectively
doesn't refresh the data for a small period of time no matter how
quickly you click the button.
@@ -93,6 +97,7 @@ export function LogsTabContent({
93
97
relativeOptions,
94
98
}: LogsTabProps){
95
99
constorganization=useOrganization();
100
+
constpageFilters=usePageFilters();
96
101
constlogsSearch=useLogsSearch();
97
102
constfields=useLogsFields();
98
103
constgroupBy=useLogsGroupBy();
@@ -251,6 +256,28 @@ export function LogsTabContent({
251
256
sortBys,
252
257
});
253
258
259
+
/**
260
+
* Manual refresh doesn't work for longer relative periods as it hits cacheing. Only allow manual refresh if the relative period or absolute time range is less than 1 day.
0 commit comments