File tree 2 files changed +8
-3
lines changed
static/app/views/explore/logs
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ function FeedbackButton() {
44
44
45
45
export default function LogsPage ( ) {
46
46
const organization = useOrganization ( ) ;
47
- const { defaultPeriod, maxPickableDays, relativeOptions} = logsPickableDays ( ) ;
47
+ const { defaultPeriod, maxPickableDays, relativeOptions} =
48
+ logsPickableDays ( organization ) ;
48
49
49
50
const prefersStackedNav = usePrefersStackedNav ( ) ;
50
51
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as Sentry from '@sentry/react';
2
2
3
3
import { t } from 'sentry/locale' ;
4
4
import type { TagCollection } from 'sentry/types/group' ;
5
+ import type { Organization } from 'sentry/types/organization' ;
5
6
import { defined } from 'sentry/utils' ;
6
7
import type { EventsMetaType } from 'sentry/utils/discover/eventView' ;
7
8
import {
@@ -190,14 +191,17 @@ export function adjustLogTraceID(traceID: string) {
190
191
return traceID . replace ( / - / g, '' ) ;
191
192
}
192
193
193
- export function logsPickableDays ( ) : PickableDays {
194
+ export function logsPickableDays ( organization : Organization ) : PickableDays {
194
195
const relativeOptions : Array < [ string , React . ReactNode ] > = [
195
196
[ '1h' , t ( 'Last hour' ) ] ,
196
197
[ '24h' , t ( 'Last 24 hours' ) ] ,
197
198
[ '7d' , t ( 'Last 7 days' ) ] ,
198
- [ '14d' , t ( 'Last 14 days' ) ] ,
199
199
] ;
200
200
201
+ if ( organization . features . includes ( 'visibility-explore-range-high' ) ) {
202
+ relativeOptions . push ( [ '14d' , t ( 'Last 14 days' ) ] ) ;
203
+ }
204
+
201
205
return {
202
206
defaultPeriod : '24h' ,
203
207
maxPickableDays : 14 ,
You can’t perform that action at this time.
0 commit comments